Methods Summary |
---|
public boolean | equals(java.lang.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:
-
object is not null.
-
object is an instance of class TextSyntax.
-
This text attribute's underlying string and
object 's
underlying string are equal.
-
This text attribute's locale and
object 's locale are
equal.
return(object != null &&
object instanceof TextSyntax &&
this.value.equals (((TextSyntax) object).value) &&
this.locale.equals (((TextSyntax) object).locale));
|
public java.util.Locale | getLocale()Returns this text attribute's text string's natural language (locale).
return locale;
|
public java.lang.String | getValue()Returns this text attribute's text string.
return value;
|
public int | hashCode()Returns a hashcode for this text attribute.
return value.hashCode() ^ locale.hashCode();
|
public java.lang.String | toString()Returns a String identifying this text attribute. The String is
the attribute's underlying text string.
return value;
|
private static java.lang.String | verify(java.lang.String value)
if (value == null) {
throw new NullPointerException(" value is null");
}
return value;
|
private static java.util.Locale | verify(java.util.Locale locale)
if (locale == null) {
return Locale.getDefault();
}
return locale;
|