DatatypeElement represents an Element which supports the XML Schema Data Types
specification.
| Modifier and Type | Field and Description |
|---|---|
| private Object | data
The data (Object) value of the |
| private XSDatatype | datatype
The |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Element | addText(String
is the text for the text)Text node.Overrides org. Implements org. Text node with the given text to this element.
|
| protected void | childAdded(Node
DOCUMENT ME! node)Overrides org. |
| protected void | childRemoved(Node
DOCUMENT ME! node)Overrides org. |
| public String | getBaseUri()
Implements org. |
| public Object | getData()
Overrides org. Implements org. getText
|
| public String | getNamespacePrefix(String uri)
Implements com. |
| public XSDatatype | |
| public boolean | isNotation(String notationName)
Implements org. |
| public boolean | isUnparsedEntity(String entityName)
Implements org. |
| public String | resolveNamespacePrefix(String prefix)
Implements org. |
| public void | setData(Object
DOCUMENT ME! data)Overrides org. Implements org. setTextif it doesn't
|
| public void | setText(String
is the new textual value of this node text)Overrides org. Implements org.
Sets the text data of this node or this method will throw an
|
| public String | toString()
Overrides org. |
| protected void |
| data | back to summary |
|---|---|
| private Object data The data (Object) value of the | |
| datatype | back to summary |
|---|---|
| private XSDatatype datatype The | |
| DatatypeElement | back to summary |
|---|---|
| public DatatypeElement(QName qname, XSDatatype datatype) | |
| DatatypeElement | back to summary |
|---|---|
| public DatatypeElement(QName qname, int attributeCount, XSDatatype type) | |
| addText | back to summary |
|---|---|
| public Element addText(String text) Overrides org. Implements org. Doc from org. Adds a new | |
| childAdded | back to summary |
|---|---|
| protected void childAdded(Node node) Overrides org. Override to force lazy recreation of data object
| |
| childRemoved | back to summary |
|---|---|
| protected void childRemoved(Node node) Overrides org. Override to force lazy recreation of data object
| |
| getBaseUri | back to summary |
|---|---|
| public String getBaseUri() Implements org. Doc from org. Returns the base URI of the context. The null string may be returned if no base URI is known. | |
| getData | back to summary |
|---|---|
| public Object getData() Overrides org. Implements org. Doc from org. Accesses the data of this element which may implement data typing
bindings such as XML Schema or Java Bean bindings or will return the same
value as
| |
| getNamespacePrefix | back to summary |
|---|---|
| public String getNamespacePrefix(String uri) Implements com. Doc from com. get namespace prefix for the given namespace URI. this method is used to convert QName. It is a responsibility of the callee to ensure that the returned prefix is properly declared.
| |
| getXSDatatype | back to summary |
|---|---|
| public XSDatatype getXSDatatype() Returns the MSV XSDatatype for this node
| |
| isNotation | back to summary |
|---|---|
| public boolean isNotation(String notationName) Implements org. Doc from org. Checks if a notation is declared with the specified name.
| |
| isUnparsedEntity | back to summary |
|---|---|
| public boolean isUnparsedEntity(String entityName) Implements org. Doc from org. Checks if an unparsed entity is declared with the specified name.
| |
| resolveNamespacePrefix | back to summary |
|---|---|
| public String resolveNamespacePrefix(String prefix) Implements org. Doc from org. Resolves a namespace prefix to the corresponding namespace URI. This method is used for validating the QName type, for example. If the prefix is "" (empty string), it indicates an unprefixed value. The callee should resolve it as for an unprefixed element, rather than for an unprefixed attribute. If the prefix is "xml", then the callee must resolve this prefix into "http://www.w3.org/XML/1998/namespace", as defined in the XML Namespaces Recommendation.
| |
| setData | back to summary |
|---|---|
| public void setData(Object data) Overrides org. Implements org. Doc from org. Sets the data value of this element if this element supports data binding
or calls
| |
| setText | back to summary |
|---|---|
| public void setText(String text) Overrides org. Implements org. Doc from org.
Sets the text data of this node or this method will throw an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
| |
| validate | back to summary |
|---|---|
| protected void validate(String text) throws IllegalArgumentException | |