public class XsdString extends java.lang.Object implements IdDecoratedMetadata, CopyableMetaData
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
id
XML ID
|
static XsdString |
NULL_XSDSTRING
A NULL immutable instance
|
protected java.lang.String |
value
the actual String value
|
| Constructor and Description |
|---|
XsdString(java.lang.String value,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
CopyableMetaData |
copy()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
Return the String representing xml ID
|
java.lang.String |
getValue() |
int |
hashCode() |
static boolean |
isNull(XsdString xsdString)
convenient method to test if an
XsdString is null NULLXsdString instance |
java.lang.String |
toString() |
public static final XsdString NULL_XSDSTRING
protected final java.lang.String value
protected final java.lang.String id
public XsdString(java.lang.String value,
java.lang.String id)
value - the actual String valueid - XML IDpublic java.lang.String getValue()
public java.lang.String getId()
getId in interface IdDecoratedMetadataIdDecoratedMetadata.getId()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public static boolean isNull(XsdString xsdString)
XsdString is null NULLXsdString instancexsdString - the xsdString to testpublic CopyableMetaData copy()
CopyableMetaDatacopy in interface CopyableMetaDataCopyright ? 2008 Red Hat Middleware LLC (http://www.jboss.com/)