DocumentName.java, [...]: New files.
2004-01-09 Michael Koch <konqueror@gmx.de> * javax/print/attribute/standard/DocumentName.java, javax/print/attribute/standard/JobHoldUntil.java, javax/print/attribute/standard/JobMessageFromOperator.java, javax/print/attribute/standard/JobName.java, javax/print/attribute/standard/JobOriginatingUserName.java, javax/print/attribute/standard/OutputDeviceAssigned.java, javax/print/attribute/standard/PrinterInfo.java, javax/print/attribute/standard/PrinterLocation.java, javax/print/attribute/standard/PrinterMakeAndModel.java, javax/print/attribute/standard/PrinterMessageFromOperator.java, javax/print/attribute/standard/PrinterName.java, javax/print/attribute/standard/RequestingUserName.java: New files. * Makefile.am (javax_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r75573
This commit is contained in:
parent
af0088587f
commit
41b19a2d9a
|
@ -1,3 +1,20 @@
|
||||||
|
2004-01-09 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
|
* javax/print/attribute/standard/DocumentName.java,
|
||||||
|
javax/print/attribute/standard/JobHoldUntil.java,
|
||||||
|
javax/print/attribute/standard/JobMessageFromOperator.java,
|
||||||
|
javax/print/attribute/standard/JobName.java,
|
||||||
|
javax/print/attribute/standard/JobOriginatingUserName.java,
|
||||||
|
javax/print/attribute/standard/OutputDeviceAssigned.java,
|
||||||
|
javax/print/attribute/standard/PrinterInfo.java,
|
||||||
|
javax/print/attribute/standard/PrinterLocation.java,
|
||||||
|
javax/print/attribute/standard/PrinterMakeAndModel.java,
|
||||||
|
javax/print/attribute/standard/PrinterMessageFromOperator.java,
|
||||||
|
javax/print/attribute/standard/PrinterName.java,
|
||||||
|
javax/print/attribute/standard/RequestingUserName.java: New files.
|
||||||
|
* Makefile.am (javax_source_files): Added new files.
|
||||||
|
* Makefile.in: Regenerated.
|
||||||
|
|
||||||
2004-01-09 Michael Koch <konqueror@gmx.de>
|
2004-01-09 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* javax/swing/AbstractAction.java,
|
* javax/swing/AbstractAction.java,
|
||||||
|
|
|
@ -1790,20 +1790,32 @@ javax/print/attribute/standard/Copies.java \
|
||||||
javax/print/attribute/standard/DateTimeAtCompleted.java \
|
javax/print/attribute/standard/DateTimeAtCompleted.java \
|
||||||
javax/print/attribute/standard/DateTimeAtCreation.java \
|
javax/print/attribute/standard/DateTimeAtCreation.java \
|
||||||
javax/print/attribute/standard/DateTimeAtProcessing.java \
|
javax/print/attribute/standard/DateTimeAtProcessing.java \
|
||||||
|
javax/print/attribute/standard/DocumentName.java \
|
||||||
|
javax/print/attribute/standard/JobHoldUntil.java \
|
||||||
javax/print/attribute/standard/JobImpressions.java \
|
javax/print/attribute/standard/JobImpressions.java \
|
||||||
javax/print/attribute/standard/JobImpressionsCompleted.java \
|
javax/print/attribute/standard/JobImpressionsCompleted.java \
|
||||||
javax/print/attribute/standard/JobKOctets.java \
|
javax/print/attribute/standard/JobKOctets.java \
|
||||||
javax/print/attribute/standard/JobKOctetsProcessed.java \
|
javax/print/attribute/standard/JobKOctetsProcessed.java \
|
||||||
javax/print/attribute/standard/JobMediaSheets.java \
|
javax/print/attribute/standard/JobMediaSheets.java \
|
||||||
javax/print/attribute/standard/JobMediaSheetsCompleted.java \
|
javax/print/attribute/standard/JobMediaSheetsCompleted.java \
|
||||||
|
javax/print/attribute/standard/JobMessageFromOperator.java \
|
||||||
|
javax/print/attribute/standard/JobName.java \
|
||||||
|
javax/print/attribute/standard/JobOriginatingUserName.java \
|
||||||
javax/print/attribute/standard/JobPriority.java \
|
javax/print/attribute/standard/JobPriority.java \
|
||||||
javax/print/attribute/standard/JobPrioritySupported.java \
|
javax/print/attribute/standard/JobPrioritySupported.java \
|
||||||
javax/print/attribute/standard/NumberOfDocuments.java \
|
javax/print/attribute/standard/NumberOfDocuments.java \
|
||||||
javax/print/attribute/standard/NumberOfInterveningJobs.java \
|
javax/print/attribute/standard/NumberOfInterveningJobs.java \
|
||||||
javax/print/attribute/standard/NumberUp.java \
|
javax/print/attribute/standard/NumberUp.java \
|
||||||
|
javax/print/attribute/standard/OutputDeviceAssigned.java \
|
||||||
javax/print/attribute/standard/PagesPerMinute.java \
|
javax/print/attribute/standard/PagesPerMinute.java \
|
||||||
javax/print/attribute/standard/PagesPerMinuteColor.java \
|
javax/print/attribute/standard/PagesPerMinuteColor.java \
|
||||||
|
javax/print/attribute/standard/PrinterInfo.java \
|
||||||
|
javax/print/attribute/standard/PrinterLocation.java \
|
||||||
|
javax/print/attribute/standard/PrinterMakeAndModel.java \
|
||||||
|
javax/print/attribute/standard/PrinterMessageFromOperator.java \
|
||||||
|
javax/print/attribute/standard/PrinterName.java \
|
||||||
javax/print/attribute/standard/QueuedJobCount.java \
|
javax/print/attribute/standard/QueuedJobCount.java \
|
||||||
|
javax/print/attribute/standard/RequestingUserName.java \
|
||||||
javax/security/auth/x500/X500Principal.java \
|
javax/security/auth/x500/X500Principal.java \
|
||||||
javax/sql/ConnectionEvent.java \
|
javax/sql/ConnectionEvent.java \
|
||||||
javax/sql/ConnectionEventListener.java \
|
javax/sql/ConnectionEventListener.java \
|
||||||
|
|
|
@ -1508,20 +1508,32 @@ javax/print/attribute/standard/Copies.java \
|
||||||
javax/print/attribute/standard/DateTimeAtCompleted.java \
|
javax/print/attribute/standard/DateTimeAtCompleted.java \
|
||||||
javax/print/attribute/standard/DateTimeAtCreation.java \
|
javax/print/attribute/standard/DateTimeAtCreation.java \
|
||||||
javax/print/attribute/standard/DateTimeAtProcessing.java \
|
javax/print/attribute/standard/DateTimeAtProcessing.java \
|
||||||
|
javax/print/attribute/standard/DocumentName.java \
|
||||||
|
javax/print/attribute/standard/JobHoldUntil.java \
|
||||||
javax/print/attribute/standard/JobImpressions.java \
|
javax/print/attribute/standard/JobImpressions.java \
|
||||||
javax/print/attribute/standard/JobImpressionsCompleted.java \
|
javax/print/attribute/standard/JobImpressionsCompleted.java \
|
||||||
javax/print/attribute/standard/JobKOctets.java \
|
javax/print/attribute/standard/JobKOctets.java \
|
||||||
javax/print/attribute/standard/JobKOctetsProcessed.java \
|
javax/print/attribute/standard/JobKOctetsProcessed.java \
|
||||||
javax/print/attribute/standard/JobMediaSheets.java \
|
javax/print/attribute/standard/JobMediaSheets.java \
|
||||||
javax/print/attribute/standard/JobMediaSheetsCompleted.java \
|
javax/print/attribute/standard/JobMediaSheetsCompleted.java \
|
||||||
|
javax/print/attribute/standard/JobMessageFromOperator.java \
|
||||||
|
javax/print/attribute/standard/JobName.java \
|
||||||
|
javax/print/attribute/standard/JobOriginatingUserName.java \
|
||||||
javax/print/attribute/standard/JobPriority.java \
|
javax/print/attribute/standard/JobPriority.java \
|
||||||
javax/print/attribute/standard/JobPrioritySupported.java \
|
javax/print/attribute/standard/JobPrioritySupported.java \
|
||||||
javax/print/attribute/standard/NumberOfDocuments.java \
|
javax/print/attribute/standard/NumberOfDocuments.java \
|
||||||
javax/print/attribute/standard/NumberOfInterveningJobs.java \
|
javax/print/attribute/standard/NumberOfInterveningJobs.java \
|
||||||
javax/print/attribute/standard/NumberUp.java \
|
javax/print/attribute/standard/NumberUp.java \
|
||||||
|
javax/print/attribute/standard/OutputDeviceAssigned.java \
|
||||||
javax/print/attribute/standard/PagesPerMinute.java \
|
javax/print/attribute/standard/PagesPerMinute.java \
|
||||||
javax/print/attribute/standard/PagesPerMinuteColor.java \
|
javax/print/attribute/standard/PagesPerMinuteColor.java \
|
||||||
|
javax/print/attribute/standard/PrinterInfo.java \
|
||||||
|
javax/print/attribute/standard/PrinterLocation.java \
|
||||||
|
javax/print/attribute/standard/PrinterMakeAndModel.java \
|
||||||
|
javax/print/attribute/standard/PrinterMessageFromOperator.java \
|
||||||
|
javax/print/attribute/standard/PrinterName.java \
|
||||||
javax/print/attribute/standard/QueuedJobCount.java \
|
javax/print/attribute/standard/QueuedJobCount.java \
|
||||||
|
javax/print/attribute/standard/RequestingUserName.java \
|
||||||
javax/security/auth/x500/X500Principal.java \
|
javax/security/auth/x500/X500Principal.java \
|
||||||
javax/sql/ConnectionEvent.java \
|
javax/sql/ConnectionEvent.java \
|
||||||
javax/sql/ConnectionEventListener.java \
|
javax/sql/ConnectionEventListener.java \
|
||||||
|
@ -4235,20 +4247,32 @@ DEP_FILES = .deps/$(srcdir)/$(CONVERT_DIR)/gen-from-JIS.P \
|
||||||
.deps/javax/print/attribute/standard/DateTimeAtCompleted.P \
|
.deps/javax/print/attribute/standard/DateTimeAtCompleted.P \
|
||||||
.deps/javax/print/attribute/standard/DateTimeAtCreation.P \
|
.deps/javax/print/attribute/standard/DateTimeAtCreation.P \
|
||||||
.deps/javax/print/attribute/standard/DateTimeAtProcessing.P \
|
.deps/javax/print/attribute/standard/DateTimeAtProcessing.P \
|
||||||
|
.deps/javax/print/attribute/standard/DocumentName.P \
|
||||||
|
.deps/javax/print/attribute/standard/JobHoldUntil.P \
|
||||||
.deps/javax/print/attribute/standard/JobImpressions.P \
|
.deps/javax/print/attribute/standard/JobImpressions.P \
|
||||||
.deps/javax/print/attribute/standard/JobImpressionsCompleted.P \
|
.deps/javax/print/attribute/standard/JobImpressionsCompleted.P \
|
||||||
.deps/javax/print/attribute/standard/JobKOctets.P \
|
.deps/javax/print/attribute/standard/JobKOctets.P \
|
||||||
.deps/javax/print/attribute/standard/JobKOctetsProcessed.P \
|
.deps/javax/print/attribute/standard/JobKOctetsProcessed.P \
|
||||||
.deps/javax/print/attribute/standard/JobMediaSheets.P \
|
.deps/javax/print/attribute/standard/JobMediaSheets.P \
|
||||||
.deps/javax/print/attribute/standard/JobMediaSheetsCompleted.P \
|
.deps/javax/print/attribute/standard/JobMediaSheetsCompleted.P \
|
||||||
|
.deps/javax/print/attribute/standard/JobMessageFromOperator.P \
|
||||||
|
.deps/javax/print/attribute/standard/JobName.P \
|
||||||
|
.deps/javax/print/attribute/standard/JobOriginatingUserName.P \
|
||||||
.deps/javax/print/attribute/standard/JobPriority.P \
|
.deps/javax/print/attribute/standard/JobPriority.P \
|
||||||
.deps/javax/print/attribute/standard/JobPrioritySupported.P \
|
.deps/javax/print/attribute/standard/JobPrioritySupported.P \
|
||||||
.deps/javax/print/attribute/standard/NumberOfDocuments.P \
|
.deps/javax/print/attribute/standard/NumberOfDocuments.P \
|
||||||
.deps/javax/print/attribute/standard/NumberOfInterveningJobs.P \
|
.deps/javax/print/attribute/standard/NumberOfInterveningJobs.P \
|
||||||
.deps/javax/print/attribute/standard/NumberUp.P \
|
.deps/javax/print/attribute/standard/NumberUp.P \
|
||||||
|
.deps/javax/print/attribute/standard/OutputDeviceAssigned.P \
|
||||||
.deps/javax/print/attribute/standard/PagesPerMinute.P \
|
.deps/javax/print/attribute/standard/PagesPerMinute.P \
|
||||||
.deps/javax/print/attribute/standard/PagesPerMinuteColor.P \
|
.deps/javax/print/attribute/standard/PagesPerMinuteColor.P \
|
||||||
|
.deps/javax/print/attribute/standard/PrinterInfo.P \
|
||||||
|
.deps/javax/print/attribute/standard/PrinterLocation.P \
|
||||||
|
.deps/javax/print/attribute/standard/PrinterMakeAndModel.P \
|
||||||
|
.deps/javax/print/attribute/standard/PrinterMessageFromOperator.P \
|
||||||
|
.deps/javax/print/attribute/standard/PrinterName.P \
|
||||||
.deps/javax/print/attribute/standard/QueuedJobCount.P \
|
.deps/javax/print/attribute/standard/QueuedJobCount.P \
|
||||||
|
.deps/javax/print/attribute/standard/RequestingUserName.P \
|
||||||
.deps/javax/rmi/BAD_OPERATION.P .deps/javax/rmi/CORBA/ClassDesc.P \
|
.deps/javax/rmi/BAD_OPERATION.P .deps/javax/rmi/CORBA/ClassDesc.P \
|
||||||
.deps/javax/rmi/CORBA/ObjectImpl.P \
|
.deps/javax/rmi/CORBA/ObjectImpl.P \
|
||||||
.deps/javax/rmi/CORBA/PortableRemoteObjectDelegate.P \
|
.deps/javax/rmi/CORBA/PortableRemoteObjectDelegate.P \
|
||||||
|
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* DocumentName.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.DocAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class DocumentName extends TextSyntax
|
||||||
|
implements DocAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 7883105848533280430L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>DocumentName</code> object.
|
||||||
|
*
|
||||||
|
* @param documentName the document name
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if documentName is null
|
||||||
|
*/
|
||||||
|
public DocumentName(String documentName, Locale locale)
|
||||||
|
{
|
||||||
|
super(documentName, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 DocumentName))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>DocumentName</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return DocumentName.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "document-name"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "document-name";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,96 @@
|
||||||
|
/* JobHoldUntil.java --
|
||||||
|
Copyright (C) 2004 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;
|
||||||
|
import javax.print.attribute.PrintRequestAttribute;
|
||||||
|
|
||||||
|
public final class JobHoldUntil extends DateTimeSyntax
|
||||||
|
implements PrintJobAttribute, PrintRequestAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = -1664471048860415024L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>JobHoldUntil</code> object.
|
||||||
|
*
|
||||||
|
* @param value the date to hold the job until
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if value is null
|
||||||
|
*/
|
||||||
|
public JobHoldUntil(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 JobHoldUntil))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>JobHoldUntil</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return JobHoldUntil.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "job-hold-until"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "job-hold-until";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* JobMessageFromOperator.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintJobAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class JobMessageFromOperator extends TextSyntax
|
||||||
|
implements PrintJobAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = -4620751846003142047L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>JobMessageFromOperator</code> object.
|
||||||
|
*
|
||||||
|
* @param message the message
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if message is null
|
||||||
|
*/
|
||||||
|
public JobMessageFromOperator(String message, Locale locale)
|
||||||
|
{
|
||||||
|
super(message, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 JobMessageFromOperator))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>JobMessageFromOperator</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return JobMessageFromOperator.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "job-message-from-operator"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "job-message-from-operator";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,96 @@
|
||||||
|
/* JobName.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintJobAttribute;
|
||||||
|
import javax.print.attribute.PrintRequestAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class JobName extends TextSyntax
|
||||||
|
implements PrintJobAttribute, PrintRequestAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 4660359192078689545L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>JobName</code> object.
|
||||||
|
*
|
||||||
|
* @param jobName the job name
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if jobName is null
|
||||||
|
*/
|
||||||
|
public JobName(String jobName, Locale locale)
|
||||||
|
{
|
||||||
|
super(jobName, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 JobName))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>JobName</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return JobName.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "job-name"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "job-name";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* JobOriginatingUserName.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintJobAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class JobOriginatingUserName extends TextSyntax
|
||||||
|
implements PrintJobAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = -8052537926362933477L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>JobOriginatingUserName</code> object.
|
||||||
|
*
|
||||||
|
* @param userName the user name
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if userName is null
|
||||||
|
*/
|
||||||
|
public JobOriginatingUserName(String userName, Locale locale)
|
||||||
|
{
|
||||||
|
super(userName, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 JobOriginatingUserName))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>JobOriginatingUserName</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return JobOriginatingUserName.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "job-originating-user-name"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "job-originating-user-name";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* OutputDeviceAssigned.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintJobAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class OutputDeviceAssigned extends TextSyntax
|
||||||
|
implements PrintJobAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 5486733778854271081L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>OutputDeviceAssigned</code> object.
|
||||||
|
*
|
||||||
|
* @param deviceName the user name
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if deviceName is null
|
||||||
|
*/
|
||||||
|
public OutputDeviceAssigned(String deviceName, Locale locale)
|
||||||
|
{
|
||||||
|
super(deviceName, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 OutputDeviceAssigned))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>OutputDeviceAssigned</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return OutputDeviceAssigned.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "output-device-assigened"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "output-device-assigened";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* PrinterInfo.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintServiceAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class PrinterInfo extends TextSyntax
|
||||||
|
implements PrintServiceAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 7765280618777599727L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>PrinterInfo</code> object.
|
||||||
|
*
|
||||||
|
* @param printerInfo the printer info
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if printerInfo is null
|
||||||
|
*/
|
||||||
|
public PrinterInfo(String printerInfo, Locale locale)
|
||||||
|
{
|
||||||
|
super(printerInfo, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 PrinterInfo))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>PrinterInfo</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return PrinterInfo.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "printer-info"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "printer-info";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* PrinterLocation.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintServiceAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class PrinterLocation extends TextSyntax
|
||||||
|
implements PrintServiceAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = -1598610039865566337L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>PrinterLocation</code> object.
|
||||||
|
*
|
||||||
|
* @param printerLocation the printer location
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if printerLocation is null
|
||||||
|
*/
|
||||||
|
public PrinterLocation(String printerLocation, Locale locale)
|
||||||
|
{
|
||||||
|
super(printerLocation, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 PrinterLocation))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>PrinterLocation</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return PrinterLocation.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "printer-location"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "printer-location";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* PrinterMakeAndModel.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintServiceAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class PrinterMakeAndModel extends TextSyntax
|
||||||
|
implements PrintServiceAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 4580461489499351411L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>PrinterMakeAndModel</code> object.
|
||||||
|
*
|
||||||
|
* @param makeAndModel the make and model string
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if makeAndModel is null
|
||||||
|
*/
|
||||||
|
public PrinterMakeAndModel(String makeAndModel, Locale locale)
|
||||||
|
{
|
||||||
|
super(makeAndModel, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 PrinterMakeAndModel))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>PrinterMakeAndModel</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return PrinterMakeAndModel.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "printer-make-and-model"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "printer-make-and-model";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* PrinterMessageFromOperator.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintServiceAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class PrinterMessageFromOperator extends TextSyntax
|
||||||
|
implements PrintServiceAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = -4486871203218629318L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>PrinterMessageFromOperator</code> object.
|
||||||
|
*
|
||||||
|
* @param message the message
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if message is null
|
||||||
|
*/
|
||||||
|
public PrinterMessageFromOperator(String message, Locale locale)
|
||||||
|
{
|
||||||
|
super(message, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 PrinterMessageFromOperator))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>PrinterMessageFromOperator</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return PrinterMessageFromOperator.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "printer-message-from-operator"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "printer-message-from-operator";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* PrinterName.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintServiceAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class PrinterName extends TextSyntax
|
||||||
|
implements PrintServiceAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 299740639137803127L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>PrinterName</code> object.
|
||||||
|
*
|
||||||
|
* @param printerName the printer name
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if printerName is null
|
||||||
|
*/
|
||||||
|
public PrinterName(String printerName, Locale locale)
|
||||||
|
{
|
||||||
|
super(printerName, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 PrinterName))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>PrinterName</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return PrinterName.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "printer-name"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "printer-name";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
/* RequestingUserName.java --
|
||||||
|
Copyright (C) 2004 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.Locale;
|
||||||
|
import javax.print.attribute.PrintRequestAttribute;
|
||||||
|
import javax.print.attribute.TextSyntax;
|
||||||
|
|
||||||
|
public final class RequestingUserName extends TextSyntax
|
||||||
|
implements PrintRequestAttribute
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 4660359192078689545L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a <code>RequestingUserName</code> object.
|
||||||
|
*
|
||||||
|
* @param userName the job name
|
||||||
|
*
|
||||||
|
* @exception NullPointerException if userName is null
|
||||||
|
*/
|
||||||
|
public RequestingUserName(String userName, Locale locale)
|
||||||
|
{
|
||||||
|
super(userName, locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 RequestingUserName))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns category of this class.
|
||||||
|
*
|
||||||
|
* @return the class <code>RequestingUserName</code> itself
|
||||||
|
*/
|
||||||
|
public final Class getCategory()
|
||||||
|
{
|
||||||
|
return RequestingUserName.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns name of this class.
|
||||||
|
*
|
||||||
|
* @return the string "requesting-user-name"
|
||||||
|
*/
|
||||||
|
public final String getName()
|
||||||
|
{
|
||||||
|
return "requesting-user-name";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue