< prev index next >

src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMoreInfo.java

Print this page

        

*** 44,55 **** * In contrast, the {@link PrinterMoreInfoManufacturer * PrinterMoreInfoManufacturer} attribute is used to find out more information * about this general kind of printer rather than this specific printer. * <P> * <B>IPP Compatibility:</B> The string form returned by ! * <CODE>toString()</CODE> gives the IPP uri value. ! * The category name returned by <CODE>getName()</CODE> * gives the IPP attribute name. * * @author Alan Kaminsky */ public final class PrinterMoreInfo extends URISyntax --- 44,55 ---- * In contrast, the {@link PrinterMoreInfoManufacturer * PrinterMoreInfoManufacturer} attribute is used to find out more information * about this general kind of printer rather than this specific printer. * <P> * <B>IPP Compatibility:</B> The string form returned by ! * {@code toString()} gives the IPP uri value. ! * The category name returned by {@code getName()} * gives the IPP attribute name. * * @author Alan Kaminsky */ public final class PrinterMoreInfo extends URISyntax
*** 61,71 **** * Constructs a new printer more info attribute with the specified URI. * * @param uri URI. * * @exception NullPointerException ! * (unchecked exception) Thrown if <CODE>uri</CODE> is null. */ public PrinterMoreInfo(URI uri) { super (uri); } --- 61,71 ---- * Constructs a new printer more info attribute with the specified URI. * * @param uri URI. * * @exception NullPointerException ! * (unchecked exception) Thrown if {@code uri} is null. */ public PrinterMoreInfo(URI uri) { super (uri); }
*** 73,93 **** * Returns whether this printer more info attribute is equivalent to the * passed in object. To be equivalent, all of the following conditions * must be true: * <OL TYPE=1> * <LI> ! * <CODE>object</CODE> is not null. * <LI> ! * <CODE>object</CODE> is an instance of class PrinterMoreInfo. * <LI> ! * This printer more info attribute's URI and <CODE>object</CODE>'s URI * are equal. * </OL> * * @param object Object to compare to. * ! * @return True if <CODE>object</CODE> is equivalent to this printer * more info attribute, false otherwise. */ public boolean equals(Object object) { return (super.equals(object) && object instanceof PrinterMoreInfo); --- 73,93 ---- * Returns whether this printer more info attribute is equivalent to the * passed in object. To be equivalent, all of the following conditions * must be true: * <OL TYPE=1> * <LI> ! * {@code object} is not null. * <LI> ! * {@code object} is an instance of class PrinterMoreInfo. * <LI> ! * This printer more info attribute's URI and {@code object}'s URI * are equal. * </OL> * * @param object Object to compare to. * ! * @return True if {@code object} is equivalent to this printer * more info attribute, false otherwise. */ public boolean equals(Object object) { return (super.equals(object) && object instanceof PrinterMoreInfo);
*** 109,119 **** /** * Get the name of the category of which this attribute value is an * instance. * <P> * For class PrinterMoreInfo, the ! * category name is <CODE>"printer-more-info"</CODE>. * * @return Attribute category name. */ public final String getName() { return "printer-more-info"; --- 109,119 ---- /** * Get the name of the category of which this attribute value is an * instance. * <P> * For class PrinterMoreInfo, the ! * category name is {@code "printer-more-info"}. * * @return Attribute category name. */ public final String getName() { return "printer-more-info";
< prev index next >