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
|
XsdString(String value,
String id,
String tag)
Constructor
|
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()
Get the XML tag content
|
String |
getValue()
Get the XML String content
|
int |
hashCode() |
static boolean |
isNull(XsdString xsdString)
Convenient method to test if an
XsdString is null NULLXsdString instance |
void |
setTag(String tg)
Set the XML tag content
|
String |
toString() |
public static final XsdString NULL_XSDSTRING
protected String value
protected String id
protected String tag
public XsdString(String value, String id)
value
- the actual String valueid
- XML IDpublic String getValue()
public String getId()
getId
in interface IdDecoratedMetadata
public String getTag()
public void setTag(String tg)
tg
- The valuepublic CopyableMetaData copy()
copy
in interface CopyableMetaData
Copyright © 2021 JBoss by Red Hat. All rights reserved.