|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.print.attribute.TextSyntax
public abstract class TextSyntax
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TextSyntax(String value, Locale locale)
TextSyntax
object with the given value
and locale.
value
- the value for this syntaxlocale
- the locale to use, if null
the default
locale is used.
NullPointerException
- if value is nullMethod Detail |
---|
public String getValue()
public Locale getLocale()
public int hashCode()
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public boolean equals(Object obj)
equals
in class Object
obj
- the object to test
Object.hashCode()
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |