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
public class XsdString extends Object implements IdDecoratedMetadata, CopyableMetaData
A XML string- Author:
- Stefano Maestri, Jesper Pedersen
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyableMetaDatacopy()Creates and returns a copy of this object.booleanequals(Object obj)StringgetId()Return the String representing xml IDStringgetTag()Get the XML tag contentStringgetValue()Get the XML String contentinthashCode()static booleanisNull(XsdString xsdString)Convenient method to test if anXsdStringis null NULLXsdString instancevoidsetTag(String tg)Set the XML tag contentStringtoString()
-
-
-
Method Detail
-
getValue
public String getValue()
Get the XML String content- Returns:
- The value
-
getId
public String getId()
Return the String representing xml ID- Specified by:
getIdin interfaceIdDecoratedMetadata- Returns:
- the XML ID
-
getTag
public String getTag()
Get the XML tag content- Returns:
- The value
-
setTag
public void setTag(String tg)
Set the XML tag content- Parameters:
tg- 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- Returns:
- a copy of this instance.
-
-