public class LocalizedStringImpl
extends java.lang.Object
implements javax.xml.registry.infomodel.LocalizedString
Constructor and Description |
---|
LocalizedStringImpl() |
LocalizedStringImpl(java.util.Locale locale,
java.lang.String value,
java.lang.String charsetName)
Constuctor for a LocalizedString.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
There is a spec ambiguity here as it does not define how equals is determined for LocalizedString
but they are intended to be used in Collections.
|
java.lang.String |
getCharsetName() |
java.util.Locale |
getLocale() |
java.lang.String |
getValue() |
int |
hashCode() |
void |
setCharsetName(java.lang.String charsetName) |
void |
setLocale(java.util.Locale locale) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString() |
public LocalizedStringImpl()
public LocalizedStringImpl(java.util.Locale locale, java.lang.String value, java.lang.String charsetName)
locale
- the locale; must not be nullvalue
- the value; may be nullcharsetName
- the charset; must not be nullpublic java.lang.String getCharsetName()
getCharsetName
in interface javax.xml.registry.infomodel.LocalizedString
public java.util.Locale getLocale()
getLocale
in interface javax.xml.registry.infomodel.LocalizedString
public java.lang.String getValue()
getValue
in interface javax.xml.registry.infomodel.LocalizedString
public void setCharsetName(java.lang.String charsetName)
setCharsetName
in interface javax.xml.registry.infomodel.LocalizedString
public void setLocale(java.util.Locale locale)
setLocale
in interface javax.xml.registry.infomodel.LocalizedString
public void setValue(java.lang.String value)
setValue
in interface javax.xml.registry.infomodel.LocalizedString
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the other objectpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2004-2013 Apache Web Services. All Rights Reserved.