|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.dbxml.xml.dom.NodeImpl
|
+--org.dbxml.xml.dom.ContainerNodeImpl
|
+--org.dbxml.xml.dom.DocumentImpl
DocumentImpl
| Fields inherited from class org.dbxml.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.dbxml.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.dbxml.xml.dom.ContainerNodeImpl |
appendChild, getChildNodes, getElementById, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, normalize, removeChild, replaceChild |
| Methods inherited from class org.dbxml.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.dbxml.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.dbxml.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 org.dbxml.server.dbXMLException
| Method Detail |
public boolean isReadOnly()
public boolean isCaching()
DBDocumentisCaching in interface DBDocumentorg.dbxml.xml.dom.DBDocumentpublic void setCaching(boolean caching)
DBDocumentsetCaching in interface DBDocumentorg.dbxml.xml.dom.DBDocumentcaching - Whether or not the Document can be cachedpublic boolean isAuthoring()
DBDocumentisAuthoring in interface DBDocumentorg.dbxml.xml.dom.DBDocumentpublic void setAuthoring(boolean authoring)
DBDocumentsetAuthoring in interface DBDocumentorg.dbxml.xml.dom.DBDocumentpublic SymbolTable getSymbols()
CompressedDocumentgetSymbols in interface CompressedDocumentorg.dbxml.xml.dom.CompressedDocumentpublic void setSymbols(SymbolTable symbols)
CompressedDocumentsetSymbols in interface CompressedDocumentorg.dbxml.xml.dom.CompressedDocumentsymbols - The Symbol tableorg.w3c.dom.DOMException - if an exception occurspublic void expandSource()
DBNodeexpandSource in interface DBNodeexpandSource in class NodeImplpublic org.w3c.dom.Node getNodeAtPos(int pos)
CompressedDocumentgetNodeAtPos in interface CompressedDocumentorg.dbxml.xml.dom.CompressedDocumentpos - The compressed stream positionpublic short getNodeType()
NodeImplgetNodeType in interface org.w3c.dom.NodegetNodeType in class NodeImplpublic java.lang.String getNodeName()
NodeImplgetNodeName in interface org.w3c.dom.NodegetNodeName in class NodeImplpublic 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.Documentpublic 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.Documentpublic org.w3c.dom.Text createTextNode(java.lang.String data)
Text node given the specified string.createTextNode in interface org.w3c.dom.Documentdata - 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.Documentdata - 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.DocumenttagName - 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.DocumentDocumentFragment.
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.Documentname - 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.Documentdata - 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.Documenttarget - 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.Documentname - 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.DocumentTraversalpublic 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)
|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||