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
A localized string
- Author:
- Stefano Maestri, Jesper Pedersen
- See Also:
-
Field Summary
Fields inherited from class org.jboss.jca.common.api.metadata.spec.XsdString
id, NULL_XSDSTRING, tag, value -
Constructor Summary
ConstructorsConstructorDescriptionLocalizedXsdString(String value, String id) ConstructorLocalizedXsdString(String value, String id, String lang) ConstructorLocalizedXsdString(String value, String id, String lang, String tag) Constructor -
Method Summary
-
Constructor Details
-
LocalizedXsdString
Constructor- Parameters:
value- value of the Stringid- XML ID
-
LocalizedXsdString
Constructor- Parameters:
value- value of the Stringid- XML IDlang- language
-
LocalizedXsdString
Constructor- Parameters:
value- value of the Stringid- XML IDlang- languagetag- name
-
-
Method Details
-
getLang
Get the language- Specified by:
getLangin interfaceLocalizedMetadata- Returns:
- The value
-
setLang
Set the language- Parameters:
lng- The value
-
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.
-
hashCode
public int hashCode() -
equals
-
toString
-