Class LocalizedXsdString
- java.lang.Object
-
- org.jboss.jca.common.api.metadata.spec.XsdString
-
- org.jboss.jca.common.api.metadata.spec.LocalizedXsdString
-
- All Implemented Interfaces:
Serializable,Cloneable,CopyableMetaData,JCAMetadata,IdDecoratedMetadata,LocalizedMetadata
public class LocalizedXsdString extends XsdString implements LocalizedMetadata
A localized string- Author:
- Stefano Maestri, Jesper Pedersen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jboss.jca.common.api.metadata.spec.XsdString
id, NULL_XSDSTRING, tag, value
-
-
Constructor Summary
Constructors Constructor Description LocalizedXsdString(String value, String id)ConstructorLocalizedXsdString(String value, String id, String lang)ConstructorLocalizedXsdString(String value, String id, String lang, String tag)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyableMetaDatacopy()Creates and returns a copy of this object.booleanequals(Object obj)StringgetLang()Get the languageinthashCode()voidsetLang(String lng)Set the languageStringtoString()
-
-
-
Constructor Detail
-
LocalizedXsdString
public LocalizedXsdString(String value, String id)
Constructor- Parameters:
value- value of the Stringid- XML ID
-
LocalizedXsdString
public LocalizedXsdString(String value, String id, String lang)
Constructor- Parameters:
value- value of the Stringid- XML IDlang- language
-
-
Method Detail
-
getLang
public String getLang()
Get the language- Specified by:
getLangin interfaceLocalizedMetadata- Returns:
- The value
-
setLang
public void setLang(String lng)
Set the language- Parameters:
lng- The value
-
copy
public CopyableMetaData copy()
Creates and returns a copy of this object. Ther copy is done in deep of all elements. It isn't formally a clone of the instance since it does not respect the assumption for which returned clone of cloneMethod are instance of Object- Specified by:
copyin interfaceCopyableMetaData- Overrides:
copyin classXsdString- Returns:
- a copy of this instance.
-
-