DatatypeAttribute represents an Attribute 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 |
| private Element | parent
The parent |
| private QName | qname
The |
| private String | text
The text value of the |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| public String | getBaseUri()
Implements org. |
| public Object | getData()
Overrides org. Implements org. XML Schema or Java Bean
bindings or will return the same value as Node#getText().
|
| public String | getNamespacePrefix(String uri)
Implements com. |
| public Element | getParent()
Overrides org. Implements org.
|
| public QName | getQName()
Implements org. QName of this attribute which represents the
local name, the qualified name and the Namespace.
|
| public String | |
| public XSDatatype | |
| public boolean | isNotation(String notationName)
Implements org. |
| public boolean | isReadOnly()
Overrides org. Implements org.
|
| public boolean | isUnparsedEntity(String entityName)
Implements org. |
| public String | resolveNamespacePrefix(String prefix)
Implements org. |
| public void | setData(Object
the attribute data data)Overrides org. Implements org. Node#setText(String)if it doesn't.
|
| public void | setParent(Element
is the new parent of this node. parent)Overrides org. Implements org.
|
| public void | setValue(String
is the new value of this attribute value)Overrides org. Implements org. UnsupportedOperationException if it is read-only.
|
| public boolean | supportsParent()
Overrides org. Implements org.
|
| 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 | |
| parent | back to summary |
|---|---|
| private Element parent The parent | |
| qname | back to summary |
|---|---|
| private QName qname The | |
| text | back to summary |
|---|---|
| private String text The text value of the | |
| DatatypeAttribute | back to summary |
|---|---|
| public DatatypeAttribute(QName qname, XSDatatype datatype) | |
| DatatypeAttribute | back to summary |
|---|---|
| public DatatypeAttribute(QName qname, XSDatatype datatype, String text) | |
| convertToValue | back to summary |
|---|---|
| protected Object convertToValue(String txt) | |
| 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 attribute which may implement data typing
bindings such 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.
| |
| getParent | back to summary |
|---|---|
| public Element getParent() Overrides org. Implements org. Doc from org.
This method is an optional feature and may not be supported for all
| |
| getQName | back to summary |
|---|---|
| public QName getQName() Implements org. Doc from org. Returns the
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements org. Doc from org. Returns the value of the attribute. This method returns the same value as
the
| |
| 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.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Overrides org. Implements org. Doc from org.
| |
| 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 attribute if this element supports data
binding or calls
| |
| setParent | back to summary |
|---|---|
| public void setParent(Element parent) Overrides org. Implements org. Doc from org.
This method should only be called from inside an
| |
| setValue | back to summary |
|---|---|
| public void setValue(String value) Overrides org. Implements org. Doc from org. Sets the value of this attribute or this method will throw an
| |
| supportsParent | back to summary |
|---|---|
| public boolean supportsParent() Overrides org. Implements org. Doc from org.
Some XML tree implementations are singly linked and only support downward navigation through children relationships. The default case is that both parent and children relationships are supported though for memory and performance reasons the parent relationship may not be supported.
| |
| 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 txt) throws IllegalArgumentException | |