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.
| Modifier and Type | Field and Description |
|---|---|
| private Locale | locale
Locale of this text attribute. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.4 for interoperability. |
| private String | value
String value of this text attribute. |
| Access | Constructor and Description |
|---|---|
| protected | TextSyntax(String
text string value, Locale natural language of the text string. locale)null is
interpreted to mean the default locale for as returned by
Locale.getDefault()Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if object is equivalent to this text
attribute, false otherwiseObject to compare toOverrides java. Returns whether this text attribute is equivalent to the passed in object. |
| public Locale | Returns: the localeReturns this text attribute's text string's natural language (locale). |
| public String | |
| public int | Returns: a hashcode value for this objectOverrides java. Returns a hashcode for this text attribute. |
| public String | Returns: aString identifying this objectOverrides java. Returns a |
| private static String | |
| private static Locale |
| locale | back to summary |
|---|---|
| private Locale locale Locale of this text attribute. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JDK 1.4 for interoperability. | |
| value | back to summary |
|---|---|
| private String value String value of this text attribute. | |
| TextSyntax | back to summary |
|---|---|
| protected TextSyntax(String value, Locale locale) Constructs a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Returns whether this text attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Returns this text attribute's text string's natural language (locale).
| |
| getValue | back to summary |
|---|---|
| public String getValue() Returns this text attribute's text string.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hashcode for this text attribute.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a | |
| verify | back to summary |
|---|---|
| private static String verify(String value) | |
| verify | back to summary |
|---|---|
| private static Locale verify(Locale locale) | |