public class XMLDocumentFragment extends XMLElement implements DocumentFragment, java.io.Externalizable
ANY_CONTENTTYPE, ELEMENTS_CONTENTTYPE, EMPTY_CONTENTTYPE, MIXED_CONTENTTYPE
ATTRDECL, Auto_Events, capturing, DOMAttrModified, DOMCharacterDataModified, DOMNodeInserted, DOMNodeInsertedIntoDocument, DOMNodeRemoved, DOMNodeRemovedFromDocument, DOMSubtreeModified, ELEMENTDECL, KEPT_NODE, NAMESPACE_NODE, noncapturing, RANGE_DELETE_EVENT, RANGE_DELETETEXT_EVENT, RANGE_INSERT_EVENT, RANGE_INSERTTEXT_EVENT, RANGE_REPLACE_EVENT, RANGE_SETTEXT_EVENT, SCHEMA_NILLED, TRAVERSAL_DELETE_EVENT, TRAVERSAL_REPLACE_EVENT, XMLDECL_NODE
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
VAL_ANY_CONTENTTYPE, VAL_ELEMENTS_CONTENTTYPE, VAL_EMPTY_CONTENTTYPE, VAL_MIXED_CONTENTTYPE, VAL_SIMPLE_CONTENTTYPE
VAL_FALSE, VAL_INCOMPLETE, VAL_NS_WF, VAL_SCHEMA, VAL_TRUE, VAL_UNKNOWN, VAL_WF
Constructor and Description |
---|
XMLDocumentFragment()
Deprecated.
use createDocumentFragment() method in XMLDocuemnt
|
Modifier and Type | Method and Description |
---|---|
NamedNodeMap |
getAttributes()
A
NamedNodeMap containing the attributes of this node (if it is an Element ) or null otherwise. |
java.lang.String |
getLocalName()
Gets the local Name for this element.
|
java.lang.String |
getNamespaceURI()
Gets the name space URI of this element
|
Node |
getNextSibling()
Gets The node immediately following this node.
|
java.lang.String |
getNodeName()
Gets a name of the node
|
short |
getNodeType()
Gets a code representing the type of the underlying object
|
Node |
getParentNode()
Gets the parent of this node
|
Node |
getPreviousSibling()
Gets the node immediately preceding this node.
|
void |
reportSAXEvents(ContentHandler cntHandler)
Report SAX Events from a DOM Tree
|
void |
setBaseURI(java.lang.String baseuri)
Sets the baseURI of this fragment
|
canAppendChild, canInsertBefore, canRemoveAttribute, canRemoveAttributeNode, canRemoveAttributeNS, canRemoveChild, canReplaceChild, canSetAttribute, canSetAttributeNode, canSetAttributeNS, canSetTextContent, getAllowedAttributes, getAllowedChildren, getAllowedFirstChildren, getAllowedNextSiblings, getAllowedParents, getAllowedPreviousSiblings, getAttribute, getAttributeNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildrenByTagName, getChildrenByTagName, getContentType, getDefaultValue, getElementsByTagName, getElementsByTagNameNS, getEnumeratedValues, getExpandedName, getFirstAttribute, getNextSiblingByName, getPrefix, getQualifiedName, getRequiredAttributes, getTagName, hasAttribute, hasAttributeNS, hasAttributes, isElementDefined, isElementDefinedNS, nodeValidity, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, resolveNamespacePrefix, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setPrefix, validateContent, validateContent, validateContent, validateContent
addText, addText, appendChild, getChildNodes, getFirstChild, getLastChild, getText, insertBefore, removeChild, replaceChild
addEventListener, cloneNode, dispatchEvent, equals, getColumnNumber, getDebugMode, getFirstChildAsOffset, getLineNumber, getNextSiblingAsOffset, getNodeValue, getNodeValueAsBinaryStream, getNodeValueAsBinaryStream, getNodeValueAsCharacterStream, getNodeValueAsCharacterStream, getOwnerDocument, getPrimitiveTypeId, getProperty, getSystemId, getXMLError, hasChildNodes, hashCode, isDocumentFlag, isNodeFlag, isSupported, print, print, print, print, readExternal, removeEventListener, resetNodeFlag, selectNodes, selectNodes, selectSingleNode, selectSingleNode, setDebugInfo, setNodeFlag, setNodeFlag, setNodeFlag, setNodeValue, setNodeValueAsBinaryStream, setNodeValueAsBinaryStream, setNodeValueAsCharacterStream, setNodeValueAsCharacterStream, setProperty, transformNode, valueOf, valueOf, writeExternal, xdbGetNodeId
getClass, notify, notifyAll, toString, wait, wait, wait
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNodeValue, getOwnerDocument, getPrefix, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
getNamespace
getAllowedFirstChildElements
public XMLDocumentFragment()
public void setBaseURI(java.lang.String baseuri)
baseURI
- stringpublic short getNodeType()
getNodeType
in interface Node
getNodeType
in class XMLElement
public java.lang.String getNodeName()
getNodeName
in interface Node
getNodeName
in class XMLElement
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface Node
getNamespaceURI
in class XMLElement
public java.lang.String getLocalName()
getLocalName
in interface NSName
getLocalName
in interface Node
getLocalName
in class XMLElement
public Node getParentNode()
getParentNode
in interface Node
getParentNode
in class XMLNode
public Node getPreviousSibling()
null
.getPreviousSibling
in interface Node
getPreviousSibling
in class XMLNode
public Node getNextSibling()
null
.getNextSibling
in interface Node
getNextSibling
in class XMLNode
public NamedNodeMap getAttributes()
XMLElement
NamedNodeMap
containing the attributes of this node (if it is an Element
) or null
otherwise.getAttributes
in interface Node
getAttributes
in class XMLElement
public void reportSAXEvents(ContentHandler cntHandler) throws SAXException
reportSAXEvents
in class XMLElement
ContentHandler
- cntHandlerSAXException
- thrown by SAX Callback functions