Class XsdString
java.lang.Object
org.jboss.jca.common.api.metadata.spec.XsdString
- All Implemented Interfaces:
Serializable,Cloneable,CopyableMetaData,JCAMetadata,IdDecoratedMetadata
- Direct Known Subclasses:
LocalizedXsdString
A XML string
- Author:
- Stefano Maestri, Jesper Pedersen
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates and returns a copy of this object.booleangetId()Return the String representing xml IDgetTag()Get the XML tag contentgetValue()Get the XML String contentinthashCode()static booleanConvenient method to test if anXsdStringis null NULLXsdString instancevoidSet the XML tag contenttoString()
-
Field Details
-
NULL_XSDSTRING
A NULL immutable instance -
value
the actual String value -
id
XML ID -
tag
tag name
-
-
Constructor Details
-
XsdString
Constructor- Parameters:
value- the actual String valueid- XML ID
-
XsdString
Constructor- Parameters:
value- the actual String valueid- XML IDtag- name
-
-
Method Details
-
getValue
Get the XML String content- Returns:
- The value
-
getId
Return the String representing xml ID- Specified by:
getIdin interfaceIdDecoratedMetadata- Returns:
- the XML ID
-
getTag
Get the XML tag content- Returns:
- The value
-
setTag
Set the XML tag content- Parameters:
tg- 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- Returns:
- a copy of this instance.
-
hashCode
public int hashCode() -
equals
-
toString
-
isNull
Convenient method to test if anXsdStringis null NULLXsdString instance- Parameters:
xsdString- the xsdString to test- Returns:
- ture if passes xsdString is null or equals to NULLXsdString instance
-