This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.print.attribute
class TextSyntax

java.lang.Object extended by javax.print.attribute.TextSyntax
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
DocumentName, JobMessageFromOperator, JobName, JobOriginatingUserName, OutputDeviceAssigned, PrinterInfo, PrinterLocation, PrinterMakeAndModel, PrinterMessageFromOperator, PrinterName, RequestingUserName

public abstract class TextSyntax
extends Object
implements Serializable, Cloneable

Class TextSyntax is an abstract base class providing the common implementation of all attributes whose value is a string. The text attribute includes a locale to indicate the natural language. Thus, a text attribute always represents a localized string. Once constructed, a text attribute's value is immutable.

See Also (auto-generated):

Locale


Constructor Summary
protected
TextSyntax(String value, Locale locale)

          Constructs a TextAttribute with the specified string and locale.
 
Method Summary
 boolean
equals(Object object)

          Returns whether this text attribute is equivalent to the passed in object.
 Locale

          Returns this text attribute's text string's natural language (locale).
 String

          Returns this text attribute's text string.
 int

          Returns a hashcode for this text attribute.
 String

          Returns a String identifying this text attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSyntax

protected TextSyntax(String value,
                     Locale locale)
Constructs a TextAttribute with the specified string and locale.

Parameters:
value - Text string.
locale - Natural language of the text string. null is interpreted to mean the default locale for as returned by Locale.getDefault()
Method Detail

equals

public boolean equals(Object object)
Returns whether this text attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
  1. object is not null.
  2. object is an instance of class TextSyntax.
  3. This text attribute's underlying string and object's underlying string are equal.
  4. This text attribute's locale and object's locale are equal.

Overrides:
equals in class Object
Parameters:
object - Object to compare to.
Returns:
True if object is equivalent to this text attribute, false otherwise.

getLocale

public Locale getLocale()
Returns this text attribute's text string's natural language (locale).

Returns:
the locale

getValue

public String getValue()
Returns this text attribute's text string.

Returns:
the text string.

hashCode

public int hashCode()
Returns a hashcode for this text attribute.

Overrides:
hashCode in class Object
Returns:
A hashcode value for this object.

toString

public String toString()
Returns a String identifying this text attribute. The String is the attribute's underlying text string.

Overrides:
toString in class Object
Returns:
A String identifying this object.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.