Commit 9ba6f952 by Michael Koch Committed by Michael Koch

DateTimeAtCompleted.java, [...]: New files.

2004-01-06  Michael Koch  <konqueror@gmx.de>

	* javax/print/attribute/standard/DateTimeAtCompleted.java,
	javax/print/attribute/standard/DateTimeAtCreation.java,
	javax/print/attribute/standard/DateTimeAtProcessing.java,
	javax/print/attribute/standard/JobImpressionsCompleted.java,
	javax/print/attribute/standard/JobKOctets.java,
	javax/print/attribute/standard/JobKOctetsProcessed.java,
	javax/print/attribute/standard/JobMediaSheetsCompleted.java,
	javax/print/attribute/standard/JobPrioritySupported.java: New files.
	* Makefile.am (javax_source_files): Added new files.
	* Makefile.in: Regenerated.

From-SVN: r75471
parent b80115c4
2004-01-06 Michael Koch <konqueror@gmx.de>
* javax/print/attribute/standard/DateTimeAtCompleted.java,
javax/print/attribute/standard/DateTimeAtCreation.java,
javax/print/attribute/standard/DateTimeAtProcessing.java,
javax/print/attribute/standard/JobImpressionsCompleted.java,
javax/print/attribute/standard/JobKOctets.java,
javax/print/attribute/standard/JobKOctetsProcessed.java,
javax/print/attribute/standard/JobMediaSheetsCompleted.java,
javax/print/attribute/standard/JobPrioritySupported.java: New files.
* Makefile.am (javax_source_files): Added new files.
* Makefile.in: Regenerated.
2004-01-06 Michael Koch <konqueror@gmx.de>
* java/net/URLConnection.java
(contentHandler): Removed.
(locale): Removed.
......
......@@ -1787,9 +1787,17 @@ javax/print/attribute/TextSyntax.java \
javax/print/attribute/UnmodifiableSetException.java \
javax/print/attribute/URISyntax.java \
javax/print/attribute/standard/Copies.java \
javax/print/attribute/standard/DateTimeAtCompleted.java \
javax/print/attribute/standard/DateTimeAtCreation.java \
javax/print/attribute/standard/DateTimeAtProcessing.java \
javax/print/attribute/standard/JobImpressions.java \
javax/print/attribute/standard/JobImpressionsCompleted.java \
javax/print/attribute/standard/JobKOctets.java \
javax/print/attribute/standard/JobKOctetsProcessed.java \
javax/print/attribute/standard/JobMediaSheets.java \
javax/print/attribute/standard/JobMediaSheetsCompleted.java \
javax/print/attribute/standard/JobPriority.java \
javax/print/attribute/standard/JobPrioritySupported.java \
javax/print/attribute/standard/NumberOfDocuments.java \
javax/print/attribute/standard/NumberOfInterveningJobs.java \
javax/print/attribute/standard/NumberUp.java \
......
/* DateTimeAtCompleted.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.print.attribute.standard;
import java.util.Date;
import javax.print.attribute.DateTimeSyntax;
import javax.print.attribute.PrintJobAttribute;
public final class DateTimeAtCompleted extends DateTimeSyntax
implements PrintJobAttribute
{
private static final long serialVersionUID = 6497399708058490000L;
/**
* Creates a <code>DateTimeAtCompleted</code> object.
*
* @param value the date at completion time
*
* @exception NullPointerException if value is null
*/
public DateTimeAtCompleted(Date value)
{
super(value);
}
/**
* Tests of obj is equal to this object.
*
* @param obj the object to test
*
* @returns true if both objects are equal, false otherwise.
*/
public boolean equals(Object obj)
{
if(! (obj instanceof DateTimeAtCompleted))
return false;
return super.equals(obj);
}
/**
* Returns category of this class.
*
* @return the class <code>DateTimeAtCompleted</code> itself
*/
public final Class getCategory()
{
return DateTimeAtCompleted.class;
}
/**
* Returns name of this class.
*
* @return the string "date-time-at-completed"
*/
public final String getName()
{
return "date-time-at-completed";
}
}
/* DateTimeAtCreation.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.print.attribute.standard;
import java.util.Date;
import javax.print.attribute.DateTimeSyntax;
import javax.print.attribute.PrintJobAttribute;
public final class DateTimeAtCreation extends DateTimeSyntax
implements PrintJobAttribute
{
private static final long serialVersionUID = -2923732231056647903L;
/**
* Creates a <code>DateTimeAtCreation</code> object.
*
* @param value the date at creation time
*
* @exception NullPointerException if value is null
*/
public DateTimeAtCreation(Date value)
{
super(value);
}
/**
* Tests of obj is equal to this object.
*
* @param obj the object to test
*
* @returns true if both objects are equal, false otherwise.
*/
public boolean equals(Object obj)
{
if(! (obj instanceof DateTimeAtCreation))
return false;
return super.equals(obj);
}
/**
* Returns category of this class.
*
* @return the class <code>DateTimeAtCreation</code> itself
*/
public final Class getCategory()
{
return DateTimeAtCreation.class;
}
/**
* Returns name of this class.
*
* @return the string "date-time-at-creation"
*/
public final String getName()
{
return "date-time-at-creation";
}
}
/* DateTimeAtProcessing.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.print.attribute.standard;
import java.util.Date;
import javax.print.attribute.DateTimeSyntax;
import javax.print.attribute.PrintJobAttribute;
public final class DateTimeAtProcessing extends DateTimeSyntax
implements PrintJobAttribute
{
private static final long serialVersionUID = -3710068197278263244L;
/**
* Creates a <code>DateTimeAtProcessing</code> object.
*
* @param value the date at processing time
*
* @exception NullPointerException if value is null
*/
public DateTimeAtProcessing(Date value)
{
super(value);
}
/**
* Tests of obj is equal to this object.
*
* @param obj the object to test
*
* @returns true if both objects are equal, false otherwise.
*/
public boolean equals(Object obj)
{
if(! (obj instanceof DateTimeAtProcessing))
return false;
return super.equals(obj);
}
/**
* Returns category of this class.
*
* @return the class <code>DateTimeAtProcessing</code> itself
*/
public final Class getCategory()
{
return DateTimeAtProcessing.class;
}
/**
* Returns name of this class.
*
* @return the string "date-time-at-processing"
*/
public final String getName()
{
return "date-time-at-processing";
}
}
/* JobImpressionsCompleted.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.print.attribute.standard;
import javax.print.attribute.IntegerSyntax;
import javax.print.attribute.PrintJobAttribute;
/**
* @author Michael Koch
*/
public final class JobImpressionsCompleted extends IntegerSyntax
implements PrintJobAttribute
{
private static final long serialVersionUID = 6722648442432393294L;
/**
* Creates a <code>JobImpressionsCompleted</code> object.
*
* @param value the number of completed impressions
*
* @exception IllegalArgumentException if value < 0
*/
public JobImpressionsCompleted(int value)
{
super(value);
if (value < 0)
throw new IllegalArgumentException("value may not be less than 0");
}
/**
* Tests of obj is equal to this object.
*
* @param obj the object to test
*
* @returns true if both objects are equal, false otherwise.
*/
public boolean equals(Object obj)
{
if(! (obj instanceof JobImpressionsCompleted))
return false;
return super.equals(obj);
}
/**
* Returns category of this class.
*
* @return the class <code>JobImpressionsCompleted</code> itself
*/
public final Class getCategory()
{
return JobImpressionsCompleted.class;
}
/**
* Returns name of this class.
*
* @return the string "job-impressions-completed"
*/
public final String getName()
{
return "job-impressions";
}
}
/* JobKOctets.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.print.attribute.standard;
import javax.print.attribute.IntegerSyntax;
import javax.print.attribute.PrintJobAttribute;
import javax.print.attribute.PrintRequestAttribute;
/**
* @author Michael Koch
*/
public final class JobKOctets extends IntegerSyntax
implements PrintJobAttribute, PrintRequestAttribute
{
private static final long serialVersionUID = -8959710146498202869L;
/**
* Creates a <code>JobKOctets</code> object.
*
* @param value the number of K octets
*
* @exception IllegalArgumentException if value < 0
*/
public JobKOctets(int value)
{
super(value);
if (value < 0)
throw new IllegalArgumentException("value may not be less than 0");
}
/**
* Tests of obj is equal to this object.
*
* @param obj the object to test
*
* @returns true if both objects are equal, false otherwise.
*/
public boolean equals(Object obj)
{
if(! (obj instanceof JobKOctets))
return false;
return super.equals(obj);
}
/**
* Returns category of this class.
*
* @return the class <code>JobKOctets</code> itself
*/
public final Class getCategory()
{
return JobKOctets.class;
}
/**
* Returns name of this class.
*
* @return the string "job-k-octets"
*/
public final String getName()
{
return "job-k-octets";
}
}
/* JobKOctetsProcessed.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.print.attribute.standard;
import javax.print.attribute.IntegerSyntax;
import javax.print.attribute.PrintJobAttribute;
import javax.print.attribute.PrintRequestAttribute;
/**
* @author Michael Koch
*/
public final class JobKOctetsProcessed extends IntegerSyntax
implements PrintJobAttribute, PrintRequestAttribute
{
private static final long serialVersionUID = -6265238509657881806L;
/**
* Creates a <code>JobKOctetsProcessed</code> object.
*
* @param value the number of processed K octets
*
* @exception IllegalArgumentException if value < 0
*/
public JobKOctetsProcessed(int value)
{
super(value);
if (value < 0)
throw new IllegalArgumentException("value may not be less than 0");
}
/**
* Tests of obj is equal to this object.
*
* @param obj the object to test
*
* @returns true if both objects are equal, false otherwise.
*/
public boolean equals(Object obj)
{
if(! (obj instanceof JobKOctetsProcessed))
return false;
return super.equals(obj);
}
/**
* Returns category of this class.
*
* @return the class <code>JobKOctetsProcessed</code> itself
*/
public final Class getCategory()
{
return JobKOctetsProcessed.class;
}
/**
* Returns name of this class.
*
* @return the string "job-k-octets-processed"
*/
public final String getName()
{
return "job-k-octets-processed";
}
}
/* JobMediaSheetsCompleted.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.print.attribute.standard;
import javax.print.attribute.IntegerSyntax;
import javax.print.attribute.PrintJobAttribute;
/**
* @author Michael Koch
*/
public class JobMediaSheetsCompleted extends IntegerSyntax
implements PrintJobAttribute
{
private static final long serialVersionUID = 1739595973810840475L;
/**
* Creates a <code>JobMediaSheetsCompleted</code> object.
*
* @param value the number of completed media sheets for a print job
*
* @exception IllegalArgumentException if value < 0
*/
public JobMediaSheetsCompleted(int value)
{
super(value);
if (value < 0)
throw new IllegalArgumentException("value may not be less than 0");
}
/**
* Tests of obj is equal to this object.
*
* @param obj the object to test
*
* @returns true if both objects are equal, false otherwise.
*/
public boolean equals(Object obj)
{
if(! (obj instanceof JobMediaSheetsCompleted))
return false;
return super.equals(obj);
}
/**
* Returns category of this class.
*
* @return the class <code>JobMediaSheetsCompleted</code> itself
*/
public final Class getCategory()
{
return JobMediaSheetsCompleted.class;
}
/**
* Returns name of this class.
*
* @return the string "job-media-sheets-completed"
*/
public final String getName()
{
return "job-media-sheets-completed";
}
}
/* JobPrioritySupported.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.print.attribute.standard;
import javax.print.attribute.IntegerSyntax;
import javax.print.attribute.SupportedValuesAttribute;
public final class JobPrioritySupported extends IntegerSyntax
implements SupportedValuesAttribute
{
private static final long serialVersionUID = 2564840378013555894L;
/**
* Creates a <code>JobPrioritySupported</code> object.
*
* @param value the priority
*
* @exception IllegalArgumentException if value < 1 or value > 100
*/
public JobPrioritySupported(int value)
{
super(value);
if (value < 1 || value > 100)
throw new IllegalArgumentException("value out of range");
}
/**
* Tests of obj is equal to this object.
*
* @param obj the object to test
*
* @returns true if both objects are equal, false otherwise.
*/
public boolean equals(Object obj)
{
if(! (obj instanceof JobPrioritySupported))
return false;
return super.equals(obj);
}
/**
* Returns category of this class.
*
* @return the class <code>JobPrioritySupported</code> itself
*/
public final Class getCategory()
{
return JobPrioritySupported.class;
}
/**
* Returns name of this class.
*
* @return the string "job-priority-supported"
*/
public final String getName()
{
return "job-priority-supported";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment