diff options
author | Mark Wielaard <mark@gcc.gnu.org> | 2006-01-17 18:09:40 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2006-01-17 18:09:40 +0000 |
commit | 2127637945ea6b763966398130e0770fa993c860 (patch) | |
tree | c976ca91e3ef0bda3b34b37c0195145638d8d08e /libjava/classpath/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java | |
parent | bcb36c3e02e3bd2843aad1b9888513dfb5d6e337 (diff) | |
download | gcc-2127637945ea6b763966398130e0770fa993c860.tar.gz |
Imported GNU Classpath 0.20
Imported GNU Classpath 0.20
* Makefile.am (AM_CPPFLAGS): Add classpath/include.
* java/nio/charset/spi/CharsetProvider.java: New override file.
* java/security/Security.java: Likewise.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r109831
Diffstat (limited to 'libjava/classpath/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java')
-rw-r--r-- | libjava/classpath/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/libjava/classpath/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java b/libjava/classpath/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java index 0a39b866c7f..df0232e167d 100644 --- a/libjava/classpath/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java +++ b/libjava/classpath/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java @@ -1,5 +1,5 @@ /* PrinterMoreInfoManufacturer.java -- - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -44,7 +44,22 @@ import javax.print.attribute.PrintServiceAttribute; import javax.print.attribute.URISyntax; /** + * The <code>PrinterMoreInfoManufacturer</code> attribute provides a URI that + * can be used to obtain more information about the printer device type and + * its manufacturer. + * <p> + * The URI may for example contain a reference to a website of the + * manufacturer, containing informations and links to the latest firmware, + * printer drivers, manual etc. The information is normally intended for + * end users. + * </p> + * <p> + * <b>IPP Compatibility:</b> PrinterMoreInfoManufacturer is an IPP 1.1 + * attribute. + * </p> + * * @author Michael Koch (konqueror@gmx.de) + * @author Wolfgang Baer (WBaer@gmx.de) */ public final class PrinterMoreInfoManufacturer extends URISyntax implements PrintServiceAttribute @@ -53,16 +68,35 @@ public final class PrinterMoreInfoManufacturer extends URISyntax /** * Constructs a <code>PrinterMoreInfoManufacturer</code> object. + * + * @param uri the URI of the information.. + * @throws NullPointerException if the given uri is null. */ public PrinterMoreInfoManufacturer(URI uri) { super(uri); } + + /** + * Tests if the given object is equal to this object. + * + * @param obj the object to test + * + * @return <code>true</code> if both objects are equal, + * <code>false</code> otherwise. + */ + public boolean equals(Object obj) + { + if(! (obj instanceof PrinterMoreInfoManufacturer)) + return false; + + return super.equals(obj); + } /** * Returns category of this class. * - * @return the class <code>PrinterMoreInfoManufacturer</code> itself + * @return The class <code>PrinterMoreInfoManufacturer</code> itself. */ public Class getCategory() { @@ -72,7 +106,7 @@ public final class PrinterMoreInfoManufacturer extends URISyntax /** * Returns the name of this attribute. * - * @return the name + * @return The name "printer-more-info-manufacturer". */ public String getName() { |