com.softwareag.centrasite.appl.framework.beans.standard.impl
Class InternationalStringImpl

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.beans.standard.impl.InternationalStringImpl
All Implemented Interfaces:
InternationalString

public class InternationalStringImpl
extends java.lang.Object
implements InternationalString


Constructor Summary
InternationalStringImpl(javax.xml.registry.infomodel.InternationalString jaxrInternationalString)
          Constructor
 
Method Summary
 void addLocalizedString(LocalizedString localizedString)
          Adds a LocalizedString to this object.
 void addLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings)
          Adds many LocalizedStrings to this object.
 javax.xml.registry.infomodel.InternationalString getJaxrInternationalString()
          Get the the javax.xml.registry.infomodel.InternationalString instance wrapped by this object
 LocalizedString getLocalizedString(java.util.Locale locale, java.lang.String charsetName)
          Gets the LocalizedString for the specified Locale and charsetName.
 java.util.Collection<LocalizedString> getLocalizedStrings()
          Returns the LocalizedStrings associated with this object.
 java.lang.String getValue()
          Gets the String value for the default locale
 java.lang.String getValue(java.util.Locale locale)
          Gets the String value for the specified Locale.
 void removeLocalizedString(LocalizedString localizedString)
          Removes a LocalizedString from this object.
 void removeLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings)
          Removes specified LocalizedStrings to this object.
 void setValue(java.util.Locale locale, java.lang.String value)
          Sets the String value for the specified Locale.
 void setValue(java.lang.String value)
          Sets the String value for the default locale.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternationalStringImpl

public InternationalStringImpl(javax.xml.registry.infomodel.InternationalString jaxrInternationalString)
Constructor

Parameters:
jaxrInternationalString -
Method Detail

addLocalizedString

public void addLocalizedString(LocalizedString localizedString)
                        throws CSAppFrameworkException
Adds a LocalizedString to this object.

Specified by:
addLocalizedString in interface InternationalString
Parameters:
localizedString -
Throws:
CSAppFrameworkException

addLocalizedStrings

public void addLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings)
                         throws CSAppFrameworkException
Adds many LocalizedStrings to this object.

Specified by:
addLocalizedStrings in interface InternationalString
Parameters:
localizedStrings -
Throws:
CSAppFrameworkException

getLocalizedString

public LocalizedString getLocalizedString(java.util.Locale locale,
                                          java.lang.String charsetName)
                                   throws CSAppFrameworkException
Gets the LocalizedString for the specified Locale and charsetName.

Specified by:
getLocalizedString in interface InternationalString
Parameters:
locale -
charsetName -
Returns:
LocalizedString
Throws:
CSAppFrameworkException

getLocalizedStrings

public java.util.Collection<LocalizedString> getLocalizedStrings()
                                                          throws CSAppFrameworkException
Returns the LocalizedStrings associated with this object.

Specified by:
getLocalizedStrings in interface InternationalString
Returns:
Collection
Throws:
CSAppFrameworkException

getValue

public java.lang.String getValue()
                          throws CSAppFrameworkException
Gets the String value for the default locale

Specified by:
getValue in interface InternationalString
Returns:
String
Throws:
CSAppFrameworkException

getValue

public java.lang.String getValue(java.util.Locale locale)
                          throws CSAppFrameworkException
Gets the String value for the specified Locale.

Specified by:
getValue in interface InternationalString
Parameters:
locale -
Returns:
String
Throws:
CSAppFrameworkException

removeLocalizedString

public void removeLocalizedString(LocalizedString localizedString)
                           throws CSAppFrameworkException
Removes a LocalizedString from this object.

Specified by:
removeLocalizedString in interface InternationalString
Parameters:
localizedString -
Throws:
CSAppFrameworkException

removeLocalizedStrings

public void removeLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings)
                            throws CSAppFrameworkException
Removes specified LocalizedStrings to this object.

Specified by:
removeLocalizedStrings in interface InternationalString
Parameters:
localizedStrings -
Throws:
CSAppFrameworkException

setValue

public void setValue(java.util.Locale locale,
                     java.lang.String value)
              throws CSAppFrameworkException
Sets the String value for the specified Locale.

Specified by:
setValue in interface InternationalString
Parameters:
locale -
value -
Throws:
CSAppFrameworkException

setValue

public void setValue(java.lang.String value)
              throws CSAppFrameworkException
Sets the String value for the default locale.

Specified by:
setValue in interface InternationalString
Parameters:
value -
Throws:
CSAppFrameworkException

getJaxrInternationalString

public javax.xml.registry.infomodel.InternationalString getJaxrInternationalString()
Get the the javax.xml.registry.infomodel.InternationalString instance wrapped by this object

Returns:
javax.xml.registry.infomodel.InternationalString