javax.xml.registry.infomodel
Interface InternationalString


public interface InternationalString

This interface represents a String that has been internationalized into several Locales. This interface is used as a replacement for the String type whenever a String attribute needs to be I18N capable. An instance of the InternationalString interface composes within it a Collection of LocalizedString instances, where each String is specific to a particular Locale. The InternationalString interface provides set/get methods for adding or getting locale specific String values for the InternationalString instance.

See Also:
LocalizedString

Method Summary
 java.lang.String getValue()
          Get the String value for the Locale returned by Locale.getDefault().
 java.lang.String getValue(java.util.Locale l)
          Get the String value for the specified Locale.
 java.util.Collection getValues()
          Get all the String values in all the different Locales as currently defined.
 void setValue(java.util.Collection localizedStrings)
          Set all the String values for specified Locales.
 void setValue(java.util.Locale l, java.lang.String s)
          Set the String value for the specified Locale.
 void setValue(java.lang.String s)
          Set the String value for the Locale returned by Locale.getDefault().
 

Method Detail

getValue

public java.lang.String getValue()
                          throws JAXRException
Get the String value for the Locale returned by Locale.getDefault().

getValue

public java.lang.String getValue(java.util.Locale l)
                          throws JAXRException
Get the String value for the specified Locale. Return null if no locale specific value is found for the specified locale.

getValues

public java.util.Collection getValues()
                               throws JAXRException
Get all the String values in all the different Locales as currently defined.
Returns:
Collection of LocalizedString

setValue

public void setValue(java.lang.String s)
              throws JAXRException
Set the String value for the Locale returned by Locale.getDefault().

setValue

public void setValue(java.util.Locale l,
                     java.lang.String s)
              throws JAXRException
Set the String value for the specified Locale.

setValue

public void setValue(java.util.Collection localizedStrings)
              throws JAXRException
Set all the String values for specified Locales.
Parameters:
localizedStrings - Is a Collection of LocalizedString