< prev index next >
src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMoreInfo.java
Print this page
@@ -44,12 +44,12 @@
* 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>
+ * {@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,11 +61,11 @@
* 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.
+ * (unchecked exception) Thrown if {@code uri} is null.
*/
public PrinterMoreInfo(URI uri) {
super (uri);
}
@@ -73,21 +73,21 @@
* 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.
+ * {@code object} is not null.
* <LI>
- * <CODE>object</CODE> is an instance of class PrinterMoreInfo.
+ * {@code object} is an instance of class PrinterMoreInfo.
* <LI>
- * This printer more info attribute's URI and <CODE>object</CODE>'s URI
+ * 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</CODE> is equivalent to this printer
+ * @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,11 +109,11 @@
/**
* 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>.
+ * category name is {@code "printer-more-info"}.
*
* @return Attribute category name.
*/
public final String getName() {
return "printer-more-info";
< prev index next >