|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.util.AbstractInternationalString
A string that has been internationalized into several
locales. This class is used as a replacement for the
String
type whenever an attribute needs to be internationalization
capable. The default value (as returned by toString()
and other
CharSequence
methods} is the string in the current system default.
The natural ordering is defined by the string in
default locale, as returned by toString()
.
This string also defines the character sequence.
Constructor Summary | |
AbstractInternationalString()
Constructs an international string. |
Method Summary | |
char |
charAt(int index)
Returns the character of the string in the default locale at the specified index. |
int |
compareTo(java.lang.Object object)
Compare this string with the specified object for order. |
int |
length()
Returns the length of the string in the default locale. |
java.lang.CharSequence |
subSequence(int start,
int end)
Returns a subsequence of the string in the default locale. |
java.lang.String |
toString()
Returns this string in the default locale. |
abstract java.lang.String |
toString(java.util.Locale locale)
Returns this string in the given locale. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractInternationalString()
Method Detail |
public int length()
toString()
.
length
in interface java.lang.CharSequence
public char charAt(int index) throws java.lang.IndexOutOfBoundsException
toString()
.
charAt
in interface java.lang.CharSequence
index
- The index of the character.
java.lang.IndexOutOfBoundsException
- if the specified index is out of bounds.public java.lang.CharSequence subSequence(int start, int end)
String
object starting with the character value at the specified
index and ending with the character value at index .
subSequence
in interface java.lang.CharSequence
start
- The start index, inclusive.end
- The end index, exclusive.
java.lang.IndexOutOfBoundsException
- if or is
out of range.public abstract java.lang.String toString(java.util.Locale locale)
toString
in interface org.opengis.util.InternationalString
locale
- The desired locale for the string to be returned, or
for a string in the implementation default locale.
public java.lang.String toString()
toString(Locale.getDefault())
. All
methods from CharSequence
operate on this string. This string is also used as the
criterion for natural ordering.
toString
in interface org.opengis.util.InternationalString
public int compareTo(java.lang.Object object)
toString()
.
compareTo
in interface java.lang.Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |