javax.print.attribute
public abstract class TextSyntax extends Object implements Cloneable, Serializable
TextSyntax is the abstract base class of all attribute
classes which provide a string as value (e.g. the location of the printer).
A TextSyntax instance consists of a string value and a
locale which indicates the language of the locale of the string.
| Constructor Summary | |
|---|---|
| protected | TextSyntax(String value, Locale locale)
Creates a TextSyntax object with the given value
and locale.
|
| Method Summary | |
|---|---|
| boolean | equals(Object obj)
Tests if the given object is equal to this object.
|
| Locale | getLocale()
Returns the locale of this syntax object.
|
| String | getValue()
Returns the value of this syntax object.
|
| int | hashCode()
Returns the hashcode for this object.
|
| String | toString()
Returns a string representing the object. |
TextSyntax object with the given value
and locale.
Parameters: value the value for this syntax locale the locale to use, if null the default
locale is used.
Throws: NullPointerException if value is null
Parameters: obj the object to test
Returns: true if both objects are equal, false otherwise.
Returns: The locale.
Returns: The value.
Returns: The hashcode.
Returns: The string representation.