|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.util.AbstractInternationalString org.geotools.util.ResourceInternationalString
An international string backed by a resource bundle. A resource
bundle can be a Java class or a properties file, one for
each language. The constructor expects the fully qualified class name of the base resource
bundle (the one used when no resource was found in the client's language). The right resource
bundle is loaded at runtime for the client's language by looking for a class or a
properties file with the right suffix ("" for
English or "" for French). This mechanism is explained in J2SE's javadoc for the
getBundle
static method.
Constructor Summary | |
ResourceInternationalString(java.lang.String resources,
java.lang.String key)
Creates a new international string from the specified resource bundle and key. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Compares this international string with the specified object for equality. |
int |
hashCode()
Returns a hash code value for this international text. |
java.lang.String |
toString(java.util.Locale locale)
Returns a string in the specified locale. |
Methods inherited from class org.geotools.util.AbstractInternationalString |
charAt, compareTo, length, subSequence, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ResourceInternationalString(java.lang.String resources, java.lang.String key)
resources
- The name of the resource bundle, as a fully qualified class name.key
- The key for the resource to fetch.Method Detail |
public java.lang.String toString(java.util.Locale locale) throws java.util.MissingResourceException
ResourceBundle
class description.
toString
in interface org.opengis.util.InternationalString
toString
in class AbstractInternationalString
locale
- The locale to look for, or for an unlocalized version.
java.util.MissingResourceException
- is the key given to the constructor is invalid.public boolean equals(java.lang.Object object)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |