com.sun.xml.registry.uddi.infomodel
Class LocalizedStringImpl

java.lang.Object
  extended by com.sun.xml.registry.uddi.infomodel.LocalizedStringImpl
All Implemented Interfaces:
Serializable, LocalizedString

public class LocalizedStringImpl
extends Object
implements LocalizedString, Serializable

Implementation of JAXR LocalizedString.

Author:
Bobby Bissett
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.xml.registry.infomodel.LocalizedString
DEFAULT_CHARSET_NAME
 
Constructor Summary
LocalizedStringImpl()
          Default constructor
LocalizedStringImpl(Locale locale, String value)
          Utility constructor sets locale and value
 
Method Summary
 String getCharsetName()
          Get the charset name
 Locale getLocale()
          Get the locale
 String getValue()
          Get the value
 void setCharsetName(String charset)
          Set the charset name
 void setLocale(Locale locale)
          Set the locale
 void setValue(String value)
          Set the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizedStringImpl

public LocalizedStringImpl()
Default constructor


LocalizedStringImpl

public LocalizedStringImpl(Locale locale,
                           String value)
Utility constructor sets locale and value

Parameters:
locale - The locale for this localized string
value - The string value for this localized string
Method Detail

getLocale

public Locale getLocale()
                 throws JAXRException
Get the locale

Specified by:
getLocale in interface LocalizedString
Returns:
the Locale used by this object
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
Locale.getDefault()

setLocale

public void setLocale(Locale locale)
               throws JAXRException
Set the locale

Specified by:
setLocale in interface LocalizedString
Parameters:
locale - the Locale used by this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getValue

public String getValue()
                throws JAXRException
Get the value

Specified by:
getValue in interface LocalizedString
Returns:
the value defined by this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

setValue

public void setValue(String value)
              throws JAXRException
Set the value

Specified by:
setValue in interface LocalizedString
Parameters:
value - the value defined by this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getCharsetName

public String getCharsetName()
                      throws JAXRException
Get the charset name

Specified by:
getCharsetName in interface LocalizedString
Returns:
the character set name for the character set used by this object
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
LocalizedString.DEFAULT_CHARSET_NAME

setCharsetName

public void setCharsetName(String charset)
                    throws JAXRException
Set the charset name

Specified by:
setCharsetName in interface LocalizedString
Parameters:
charset - the character set name for the character set used by this object
Throws:
JAXRException - If the JAXR provider encounters an internal error


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.