|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractBranch
org.dom4j.tree.AbstractElement
org.dom4j.tree.DefaultElement
org.dom4j.datatype.DatatypeElement
DatatypeElement represents an Element which supports the XML Schema Data Types
specification.
| Field Summary |
| Fields inherited from class org.dom4j.tree.AbstractElement |
EMPTY_ITERATOR, EMPTY_LIST, USE_STRINGVALUE_SEPARATOR, VERBOSE_TOSTRING |
| Fields inherited from class org.dom4j.tree.AbstractBranch |
DEFAULT_CONTENT_LIST_SIZE |
| Fields inherited from class org.dom4j.tree.AbstractNode |
NODE_TYPE_NAMES |
| Fields inherited from interface org.dom4j.Node |
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE |
| Constructor Summary | |
DatatypeElement(QName qname,
int attributeCount,
com.sun.msv.datatype.xsd.XSDatatype type)
|
|
DatatypeElement(QName qname,
com.sun.msv.datatype.xsd.XSDatatype datatype)
|
|
| Method Summary | |
Element |
addText(String text)
Adds a new Text node with the given text to this element. |
protected void |
childAdded(Node node)
Override to force lazy recreation of data object |
protected void |
childRemoved(Node node)
Override to force lazy recreation of data object |
String |
getBaseUri()
|
Object |
getData()
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 DefaultElement.getText() |
String |
getNamespacePrefix(String uri)
|
com.sun.msv.datatype.xsd.XSDatatype |
getXSDatatype()
Returns the MSV XSDatatype for this node |
boolean |
isNotation(String notationName)
|
boolean |
isUnparsedEntity(String entityName)
|
String |
resolveNamespacePrefix(String prefix)
|
void |
setData(Object data)
Sets the data value of this element if this element supports data binding or calls setText(java.lang.String)if it doesn't |
void |
setText(String text)
Sets the text data of this node or this method will throw an UnsupportedOperationException if it is read-only.
|
String |
toString()
|
protected void |
validate(String text)
|
| Methods inherited from class org.dom4j.tree.AbstractBranch |
addElement, addElement, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getTextTrim, hasContent, invalidNodeTypeAddException, isReadOnly, setProcessingInstructions |
| Methods inherited from class org.dom4j.tree.AbstractNode |
asXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.dom4j.Element |
getTextTrim |
| Methods inherited from interface org.dom4j.Branch |
addElement, addElement, appendContent, content, elementByID, setProcessingInstructions |
| Methods inherited from interface org.dom4j.Node |
asXPathResult, createXPath, detach, getNodeTypeName, getPath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf |
| Constructor Detail |
public DatatypeElement(QName qname,
com.sun.msv.datatype.xsd.XSDatatype datatype)
public DatatypeElement(QName qname,
int attributeCount,
com.sun.msv.datatype.xsd.XSDatatype type)
| Method Detail |
public String toString()
toString in class AbstractElementpublic com.sun.msv.datatype.xsd.XSDatatype getXSDatatype()
public String getNamespacePrefix(String uri)
getNamespacePrefix in interface com.sun.msv.datatype.SerializationContextpublic String getBaseUri()
getBaseUri in interface org.relaxng.datatype.ValidationContextpublic boolean isNotation(String notationName)
isNotation in interface org.relaxng.datatype.ValidationContextpublic boolean isUnparsedEntity(String entityName)
isUnparsedEntity in interface org.relaxng.datatype.ValidationContextpublic String resolveNamespacePrefix(String prefix)
resolveNamespacePrefix in interface org.relaxng.datatype.ValidationContextpublic Object getData()
ElementElement.getText()
getData in interface ElementgetData in class AbstractElementpublic void setData(Object data)
ElementNode.setText(java.lang.String)if it doesn't
setData in interface ElementsetData in class AbstractElementpublic Element addText(String text)
ElementText node with the given text to this element.
addText in interface ElementaddText in class AbstractElementpublic void setText(String text)
Node
Sets the text data of this node or this method will throw an
UnsupportedOperationException if it is read-only.
setText in interface NodesetText in class AbstractElementprotected void childAdded(Node node)
childAdded in class AbstractElementnode - DOCUMENT ME!protected void childRemoved(Node node)
childRemoved in class AbstractElementnode - DOCUMENT ME!
protected void validate(String text)
throws IllegalArgumentException
IllegalArgumentException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||