
public class XsdString extends Object implements IdDecoratedMetadata, CopyableMetaData
| Modifier and Type | Field and Description |
|---|---|
protected String |
id
XML ID
|
static XsdString |
NULL_XSDSTRING
A NULL immutable instance
|
protected String |
tag
tag name
|
protected String |
value
the actual String value
|
| Constructor and Description |
|---|
XsdString(String value,
String id)
Constructor without tag name
|
XsdString(String value,
String id,
String tag) |
| Modifier and Type | Method and Description |
|---|---|
CopyableMetaData |
copy()
Creates and returns a copy of this object.
|
boolean |
equals(Object obj) |
String |
getId()
Return the String representing xml ID
|
String |
getTag() |
String |
getValue() |
int |
hashCode() |
static boolean |
isNull(XsdString xsdString)
convenient method to test if an
XsdString is null NULLXsdString instance |
void |
setTag(String tg) |
String |
toString() |
public static final XsdString NULL_XSDSTRING
protected final String value
protected final String id
protected String tag
public XsdString(String value, String id, String tag)
value - the actual String valueid - XML IDtag - namepublic String getValue()
public String getId()
getId in interface IdDecoratedMetadataIdDecoratedMetadata.getId()public String getTag()
IdDecoratedMetadata.getId()public void setTag(String tg)
IdDecoratedMetadata.getId()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()public static boolean isNull(XsdString xsdString)
XsdString is null NULLXsdString instancexsdString - the xsdString to testpublic CopyableMetaData copy()
CopyableMetaDatacopy in interface CopyableMetaDataCopyright © 2013 IronJacamar (http://www.ironjacamar.org)