org.apache.ws.scout.registry.infomodel
Class LocalizedStringImpl
java.lang.Object
org.apache.ws.scout.registry.infomodel.LocalizedStringImpl
- All Implemented Interfaces:
- LocalizedString
public class LocalizedStringImpl
- extends Object
- implements LocalizedString
Implements JAXR Interface.
For futher details, look into the JAXR API Javadoc.
- Author:
- Anil Saldhana
LocalizedStringImpl
public LocalizedStringImpl()
LocalizedStringImpl
public LocalizedStringImpl(Locale locale,
String value,
String charsetName)
- Constuctor for a LocalizedString.
- Parameters:
locale
- the locale; must not be nullvalue
- the value; may be nullcharsetName
- the charset; must not be null
getCharsetName
public String getCharsetName()
- Specified by:
getCharsetName
in interface LocalizedString
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interface LocalizedString
getValue
public String getValue()
- Specified by:
getValue
in interface LocalizedString
setCharsetName
public void setCharsetName(String charsetName)
- Specified by:
setCharsetName
in interface LocalizedString
setLocale
public void setLocale(Locale locale)
- Specified by:
setLocale
in interface LocalizedString
setValue
public void setValue(String value)
- Specified by:
setValue
in interface LocalizedString
equals
public boolean equals(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.
We define it as locale, charsetName and value being equal.
- Overrides:
equals
in class Object
- Parameters:
o
- the other object
- Returns:
- true if they are equal
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.