java.lang.Object | |
↳ | javax.print.attribute.TextSyntax |
![]() |
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.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a TextAttribute with the specified string and locale.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns whether this text attribute is equivalent to the passed in
object.
| |||||||||||
Returns this text attribute's text string's natural language (locale).
| |||||||||||
Returns this text attribute's text string.
| |||||||||||
Returns a hashcode for this text attribute.
| |||||||||||
Returns a String identifying this text attribute.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a TextAttribute with the specified string and locale.
value | Text string. |
---|---|
locale | Natural language of the text string. null
is interpreted to mean the default locale for as returned
by Locale.getDefault() |
NullPointerException | (unchecked exception) Thrown if value is null.
|
---|
Returns whether this text attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
object
is not null.
object
is an instance of class TextSyntax.
object
's
underlying string are equal.
object
's locale are
equal.
object | Object to compare to. |
---|
object
is equivalent to this text
attribute, false otherwise.
Returns this text attribute's text string's natural language (locale).
Returns a hashcode for this text attribute.
Returns a String identifying this text attribute. The String is the attribute's underlying text string.