|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.xml.dom.NodeImpl | +--org.apache.xindice.xml.dom.ContainerNodeImpl | +--org.apache.xindice.xml.dom.DocumentImpl
DocumentImpl
Fields inherited from class org.apache.xindice.xml.dom.NodeImpl |
EX_DOMSTRING_SIZE, EX_HIERARCHY_REQUEST, EX_INDEX_SIZE, EX_INUSE_ATTRIBUTE, EX_INVALID_STATE, EX_NO_DATA_ALLOWED, EX_NO_MODIFICATION_ALLOWED, EX_NOT_FOUND, EX_WRONG_DOCUMENT, OBJECT_HREF, OBJECT_NS, OBJECT_TYPE, TYPE_APPEND, TYPE_CONTENT, TYPE_INSERT, TYPE_REPLACE, XMLNS_PREFIX |
Fields inherited from interface org.w3c.dom.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 |
Fields inherited from interface org.apache.xindice.xml.dom.DBDocument |
CACHE, CACHE_CONTROL, NOCACHE |
Constructor Summary | |
DocumentImpl()
|
|
DocumentImpl(byte[] data)
|
|
DocumentImpl(byte[] data,
int pos,
int len)
|
|
DocumentImpl(byte[] data,
SymbolTable symbols,
NodeSource source)
|
|
DocumentImpl(org.w3c.dom.Document doc)
|
Method Summary | |
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node src)
|
org.w3c.dom.Attr |
createAttribute(java.lang.String name)
Creates an Attr of the given name. |
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data)
Creates a CDATASection node whose value is the specified
string. |
org.w3c.dom.Comment |
createComment(java.lang.String data)
Creates a Comment node given the specified string. |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
Creates an empty DocumentFragment object. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
Creates an element of the type specified. |
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name)
Creates an EntityReference object. |
org.w3c.dom.traversal.NodeIterator |
createNodeIterator(org.w3c.dom.Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean entityReferenceExpansion)
|
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Creates a ProcessingInstruction node given the specified
name and data strings. |
org.w3c.dom.Text |
createTextNode(java.lang.String data)
Creates a Text node given the specified string. |
org.w3c.dom.traversal.TreeWalker |
createTreeWalker(org.w3c.dom.Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean entityReferenceExpansion)
|
void |
expandSource()
expandSource expands the source into the Node as a namespace and a set of attributes. |
java.lang.String |
getActualEncoding()
|
org.w3c.dom.DocumentType |
getDoctype()
The Document Type Declaration (see DocumentType ) associated
with this document. |
org.w3c.dom.Element |
getDocumentElement()
This is a convenience attribute that allows direct access to the child node that is the root element of the document. |
java.lang.String |
getEncoding()
|
org.w3c.dom.DOMImplementation |
getImplementation()
The DOMImplementation object that handles this document. |
org.w3c.dom.Node |
getNodeAtPos(int pos)
getNodeAtPos returns the Node that exists at the specified byte data position in the compressed stream. |
java.lang.String |
getNodeName()
The name of this node, depending on its type; see the table above. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
boolean |
getStandalone()
|
boolean |
getStrictErrorChecking()
|
SymbolTable |
getSymbols()
getSymbols returns the Symbol table for this Document. |
java.lang.String |
getVersion()
|
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
|
boolean |
isAuthoring()
isAuthoring returns whether or not this Document is in an authoring mode. |
boolean |
isCaching()
getCaching returns whether or not this Document should be cached by some sort of caching mechanism. |
boolean |
isReadOnly()
|
void |
setActualEncoding(java.lang.String actualEncoding)
|
void |
setAuthoring(boolean authoring)
setAuthoring sets whether or not this Document is in an authoring mode. |
void |
setCaching(boolean caching)
setCaching sets whether or not this Document should be cached by some sort of caching mechanism. |
void |
setDoctype(org.w3c.dom.DocumentType docType)
|
void |
setEncoding(java.lang.String encoding)
|
void |
setStandalone(boolean standalone)
|
void |
setStrictErrorChecking(boolean strictErrorChecking)
|
void |
setSymbols(SymbolTable symbols)
setSymbols sets the Symbol table for this Document. |
void |
setVersion(java.lang.String version)
|
Methods inherited from class org.apache.xindice.xml.dom.ContainerNodeImpl |
appendChild, getChildNodes, getElementById, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, normalize, removeChild, replaceChild |
Methods inherited from class org.apache.xindice.xml.dom.NodeImpl |
checkReadOnly, cloneNode, getAttributes, getDataBytes, getDataLen, getDataPos, getKey, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSource, getSymbolID, getUserData, hasAttributes, isDefined, isDirty, isLoaded, isSameNode, isSupported, load, lookupDefaultNamespaceURI, lookupNamespacePrefix, lookupNamespaceURI, normalizeNS, setDataBytes, setDataBytes, setDataLen, setDataPos, setDirty, setNodeName, setNodeValue, setParentNode, setPrefix, setSource, setUserData, unload |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xindice.xml.dom.CompressedNode |
getDataBytes, getDataLen, getDataPos, getSymbolID, isDirty, isLoaded, load, setDataBytes, setDataBytes, setDataLen, setDataPos, unload |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.w3c.dom.Document |
getElementById, getElementsByTagName, getElementsByTagNameNS |
Methods inherited from interface org.apache.xindice.xml.dom.DBNode |
getSource, setSource |
Constructor Detail |
public DocumentImpl()
public DocumentImpl(byte[] data, int pos, int len)
public DocumentImpl(byte[] data)
public DocumentImpl(byte[] data, SymbolTable symbols, NodeSource source)
public DocumentImpl(org.w3c.dom.Document doc) throws XindiceException
Method Detail |
public boolean isReadOnly()
public boolean isCaching()
DBDocument
isCaching
in interface DBDocument
org.apache.xindice.xml.dom.DBDocument
public void setCaching(boolean caching)
DBDocument
setCaching
in interface DBDocument
org.apache.xindice.xml.dom.DBDocument
caching
- Whether or not the Document can be cachedpublic boolean isAuthoring()
DBDocument
isAuthoring
in interface DBDocument
org.apache.xindice.xml.dom.DBDocument
public void setAuthoring(boolean authoring)
DBDocument
setAuthoring
in interface DBDocument
org.apache.xindice.xml.dom.DBDocument
public SymbolTable getSymbols()
CompressedDocument
getSymbols
in interface CompressedDocument
org.apache.xindice.xml.dom.CompressedDocument
public void setSymbols(SymbolTable symbols)
CompressedDocument
setSymbols
in interface CompressedDocument
org.apache.xindice.xml.dom.CompressedDocument
symbols
- The Symbol tableorg.w3c.dom.DOMException
- if an exception occurspublic void expandSource()
DBNode
expandSource
in interface DBNode
expandSource
in class NodeImpl
public org.w3c.dom.Node getNodeAtPos(int pos)
CompressedDocument
getNodeAtPos
in interface CompressedDocument
org.apache.xindice.xml.dom.CompressedDocument
pos
- The compressed stream positionpublic short getNodeType()
NodeImpl
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
public java.lang.String getNodeName()
NodeImpl
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class NodeImpl
public org.w3c.dom.DocumentType getDoctype()
DocumentType
) associated
with this document. For HTML documents as well as XML documents without
a document type declaration this returns null
. The DOM Level
1 does not support editing the Document Type Declaration, therefore
docType
cannot be altered in any way.getDoctype
in interface org.w3c.dom.Document
public void setDoctype(org.w3c.dom.DocumentType docType)
public org.w3c.dom.DOMImplementation getImplementation()
DOMImplementation
object that handles this document. A
DOM application may use objects from multiple implementations.getImplementation
in interface org.w3c.dom.Document
public org.w3c.dom.Text createTextNode(java.lang.String data)
Text
node given the specified string.createTextNode
in interface org.w3c.dom.Document
data
- The data for the node.Text
object.public org.w3c.dom.Element getDocumentElement()
getDocumentElement
in interface org.w3c.dom.Document
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data) throws org.w3c.dom.DOMException
CDATASection
node whose value is the specified
string.createCDATASection
in interface org.w3c.dom.Document
data
- The data for the CDATASection
contents.CDATASection
object.org.w3c.dom.DOMException
- NOT_SUPPORTED_ERR: Raised if this document is an HTML document.public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
createElement
in interface org.w3c.dom.Document
tagName
- The name of the element type to instantiate. For XML, this
is case-sensitive. For HTML, the tagName
parameter may
be provided in any case, but it must be mapped to the canonical
uppercase form by the DOM implementation.Element
object.org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
invalid character.public org.w3c.dom.DocumentFragment createDocumentFragment()
DocumentFragment
object.createDocumentFragment
in interface org.w3c.dom.Document
DocumentFragment
.public org.w3c.dom.Attr createAttribute(java.lang.String name) throws org.w3c.dom.DOMException
Attr
of the given name. Note that the
Attr
instance can then be set on an Element
using the setAttribute
method.createAttribute
in interface org.w3c.dom.Document
name
- The name of the attribute.Attr
object.org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
invalid character.public org.w3c.dom.Comment createComment(java.lang.String data)
Comment
node given the specified string.createComment
in interface org.w3c.dom.Document
data
- The data for the node.Comment
object.public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMException
ProcessingInstruction
node given the specified
name and data strings.createProcessingInstruction
in interface org.w3c.dom.Document
target
- The target part of the processing instruction.data
- The data for the node.ProcessingInstruction
object.org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: Raised if an invalid character is specified.
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name) throws org.w3c.dom.DOMException
createEntityReference
in interface org.w3c.dom.Document
name
- The name of the entity to reference.EntityReference
object.org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an
invalid character.
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep)
importNode
in interface org.w3c.dom.Document
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
createElementNS
in interface org.w3c.dom.Document
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
createAttributeNS
in interface org.w3c.dom.Document
public org.w3c.dom.traversal.NodeIterator createNodeIterator(org.w3c.dom.Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean entityReferenceExpansion) throws org.w3c.dom.DOMException
createNodeIterator
in interface org.w3c.dom.traversal.DocumentTraversal
public org.w3c.dom.traversal.TreeWalker createTreeWalker(org.w3c.dom.Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean entityReferenceExpansion) throws org.w3c.dom.DOMException
createTreeWalker
in interface org.w3c.dom.traversal.DocumentTraversal
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node src)
public java.lang.String getActualEncoding()
public void setActualEncoding(java.lang.String actualEncoding)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
public boolean getStandalone()
public void setStandalone(boolean standalone)
public boolean getStrictErrorChecking()
public void setStrictErrorChecking(boolean strictErrorChecking)
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |