|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.dom.NodeImpl
org.exist.dom.DocumentImpl
Description of the Class
Field Summary | |
protected long |
address
|
protected DBBroker |
broker
|
protected java.util.LinkedList |
childList
|
protected int |
children
|
protected int |
docId
|
protected org.w3c.dom.DocumentType |
docType
|
protected int |
maxDepth
|
protected Permission |
permissions
|
protected int |
reindex
|
protected int[] |
treeLevelOrder
|
protected long[] |
treeLevelStartPoints
|
Fields inherited from class org.exist.dom.NodeImpl |
attributes, gid, internalAddress, nodeName, nodeNameRef, nodeType, ownerDocument |
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 |
Constructor Summary | |
DocumentImpl(DBBroker broker)
Constructor for the DocumentImpl object |
|
DocumentImpl(DBBroker broker,
Collection collection)
Constructor for the DocumentImpl object |
|
DocumentImpl(DBBroker broker,
java.lang.String fileName)
Constructor for the DocumentImpl object |
|
DocumentImpl(DBBroker broker,
java.lang.String fileName,
Collection collection)
Constructor for the DocumentImpl object |
|
DocumentImpl(DocumentImpl old)
|
Method Summary | |
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node node)
|
void |
appendChild(NodeImpl child)
|
void |
calculateTreeLevelStartPoints()
|
void |
clearIndexListener()
|
int |
compareTo(java.lang.Object other)
|
org.w3c.dom.Attr |
createAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data)
|
org.w3c.dom.Comment |
createComment(java.lang.String data)
|
org.w3c.dom.DocumentFragment |
createDocumentFragment()
|
org.w3c.dom.Element |
createElement(java.lang.String tagName)
|
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name)
|
protected static NodeImpl |
createNode(long gid,
short type)
Description of the Method |
protected static NodeImpl |
createNode(long gid,
short type,
java.lang.String name,
java.lang.String data,
int children)
|
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
|
org.w3c.dom.Text |
createTextNode(java.lang.String data)
|
void |
deserialize(byte[] data)
|
protected org.w3c.dom.NodeList |
findElementsByTagName(NodeImpl root,
java.lang.String tagName)
|
long |
getAddress()
|
int |
getChildCount()
Method getChildCount. |
org.w3c.dom.NodeList |
getChildNodes()
Gets the childNodes attribute of the NodeImpl object |
Collection |
getCollection()
|
long |
getCreated()
|
int |
getDocId()
|
org.w3c.dom.DocumentType |
getDoctype()
|
org.w3c.dom.Element |
getDocumentElement()
|
org.w3c.dom.Element |
getElementById(java.lang.String elementId)
|
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagname)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getEncoding()
|
java.lang.String |
getFileName()
|
protected org.w3c.dom.Node |
getFollowingSibling(NodeImpl node)
|
org.w3c.dom.DOMImplementation |
getImplementation()
|
NodeIndexListener |
getIndexListener()
|
long |
getInternalAddress()
Get the internal storage address of this node |
long |
getLastModified()
|
long |
getLevelStartPoint(int level)
|
int |
getMaxDepth()
|
org.w3c.dom.Node |
getNode(long gid)
|
org.w3c.dom.Node |
getNode(NodeProxy p)
|
Permission |
getPermissions()
|
protected org.w3c.dom.Node |
getPreviousSibling(NodeImpl node)
|
org.w3c.dom.NodeList |
getRange(long first,
long last)
|
boolean |
getStandalone()
|
boolean |
getStrictErrorChecking()
|
SymbolTable |
getSymbols()
|
int |
getTreeLevel(long gid)
|
int |
getTreeLevelOrder(int level)
|
int |
getTreeLevelOrder(long gid)
|
java.lang.String |
getVersion()
|
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
|
void |
incMaxDepth()
|
org.w3c.dom.Node |
insertAfter(org.w3c.dom.NodeList nodes,
org.w3c.dom.Node refChild)
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.NodeList nodes,
org.w3c.dom.Node refChild)
|
boolean |
isSupported(java.lang.String type,
java.lang.String value)
|
void |
read(java.io.DataInput istream)
|
void |
read(VariableByteInputStream istream)
|
int |
reindexRequired()
|
byte[] |
serialize()
|
void |
setAddress(long address)
|
void |
setBroker(DBBroker broker)
|
void |
setChildCount(int count)
Set the number of children. |
void |
setCreated(long l)
|
void |
setDocId(int docId)
|
void |
setDocumentType(org.w3c.dom.DocumentType docType)
|
void |
setEncoding(java.lang.String enc)
|
void |
setFileName(java.lang.String fileName)
|
void |
setIndexListener(NodeIndexListener listener)
|
void |
setLastModified(long l)
|
void |
setMaxDepth(int depth)
|
void |
setPermissions(int mode)
|
void |
setPermissions(Permission perm)
|
void |
setPermissions(java.lang.String mode)
|
void |
setReindexRequired(int level)
|
void |
setStandalone(boolean alone)
|
void |
setStrictErrorChecking(boolean strict)
|
void |
setTreeLevelOrder(int level,
int order)
|
void |
setVersion(java.lang.String version)
|
void |
updateChild(org.w3c.dom.Node oldChild,
org.w3c.dom.Node newChild)
Update a child node. |
void |
write(java.io.DataOutput ostream)
|
void |
write(VariableByteOutputStream ostream)
|
Methods inherited from class org.exist.dom.NodeImpl |
appendChild, appendChildren, clear, cloneNode, deserialize, equals, firstChildID, getAttributes, getAttributesCount, getBroker, getFirstChild, getGID, getLastChild, getLastNode, getLastNode, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeNameRef, getNodeType, getNodeValue, getOwnerDocument, getParentGID, getParentNode, getPath, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertAfter, insertBefore, lastChildID, normalize, removeChild, replaceChild, setAttributes, setGID, setInternalAddress, setNodeName, setNodeNameRef, setNodeValue, setOwnerDocument, setPrefix, supports, toSAX, toSAX, toString, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Field Detail |
protected DBBroker broker
protected int children
protected java.util.LinkedList childList
protected int docId
protected org.w3c.dom.DocumentType docType
protected int maxDepth
protected int reindex
protected Permission permissions
protected long address
protected int[] treeLevelOrder
protected long[] treeLevelStartPoints
Constructor Detail |
public DocumentImpl(DBBroker broker, Collection collection)
broker
- Description of the Parametercollection
- Description of the Parameterpublic DocumentImpl(DBBroker broker)
broker
- Description of the Parameterpublic DocumentImpl(DBBroker broker, java.lang.String fileName)
broker
- Description of the ParameterfileName
- Description of the Parameterpublic DocumentImpl(DBBroker broker, java.lang.String fileName, Collection collection)
broker
- Description of the ParameterfileName
- Description of the Parametercollection
- Description of the Parameterpublic DocumentImpl(DocumentImpl old)
Method Detail |
protected static NodeImpl createNode(long gid, short type)
gid
- Description of the Parametertype
- Description of the Parameter
protected static NodeImpl createNode(long gid, short type, java.lang.String name, java.lang.String data, int children)
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node node) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void appendChild(NodeImpl child) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void calculateTreeLevelStartPoints() throws EXistException
EXistException
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public org.w3c.dom.Attr createAttribute(java.lang.String name) throws org.w3c.dom.DOMException
createAttribute
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
createAttributeNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data) throws org.w3c.dom.DOMException
createCDATASection
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Comment createComment(java.lang.String data)
createComment
in interface org.w3c.dom.Document
public org.w3c.dom.DocumentFragment createDocumentFragment() throws org.w3c.dom.DOMException
createDocumentFragment
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
createElement
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
createElementNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name) throws org.w3c.dom.DOMException
createEntityReference
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMException
createProcessingInstruction
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Text createTextNode(java.lang.String data)
createTextNode
in interface org.w3c.dom.Document
protected org.w3c.dom.NodeList findElementsByTagName(NodeImpl root, java.lang.String tagName)
public int getChildCount()
NodeImpl
getChildCount
in class NodeImpl
public org.w3c.dom.NodeList getChildNodes()
NodeImpl
getChildNodes
in interface org.w3c.dom.Node
getChildNodes
in class NodeImpl
protected org.w3c.dom.Node getPreviousSibling(NodeImpl node)
protected org.w3c.dom.Node getFollowingSibling(NodeImpl node)
public Collection getCollection()
public int getDocId()
public org.w3c.dom.DocumentType getDoctype()
getDoctype
in interface org.w3c.dom.Document
public org.w3c.dom.Element getDocumentElement()
getDocumentElement
in interface org.w3c.dom.Document
public org.w3c.dom.Element getElementById(java.lang.String elementId)
getElementById
in interface org.w3c.dom.Document
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
getElementsByTagName
in interface org.w3c.dom.Document
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
getElementsByTagNameNS
in interface org.w3c.dom.Document
public java.lang.String getEncoding()
public java.lang.String getFileName()
public org.w3c.dom.DOMImplementation getImplementation()
getImplementation
in interface org.w3c.dom.Document
public long getLevelStartPoint(int level)
public int getMaxDepth()
public org.w3c.dom.Node getNode(long gid)
public org.w3c.dom.Node getNode(NodeProxy p)
public Permission getPermissions()
public org.w3c.dom.NodeList getRange(long first, long last)
public boolean getStandalone()
public boolean getStrictErrorChecking()
public SymbolTable getSymbols()
public int getTreeLevel(long gid)
public int getTreeLevelOrder(int level)
public int getTreeLevelOrder(long gid)
public java.lang.String getVersion()
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMException
importNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public boolean isSupported(java.lang.String type, java.lang.String value)
isSupported
in interface org.w3c.dom.Node
isSupported
in class NodeImpl
Node.isSupported(java.lang.String, java.lang.String)
public void read(java.io.DataInput istream) throws java.io.IOException, java.io.EOFException
java.io.IOException
java.io.EOFException
public void read(VariableByteInputStream istream) throws java.io.IOException, java.io.EOFException
java.io.IOException
java.io.EOFException
public void setBroker(DBBroker broker)
public void setChildCount(int count)
NodeImpl
setChildCount
in class NodeImpl
count
- The new childCount valuepublic void setDocId(int docId)
public void setDocumentType(org.w3c.dom.DocumentType docType)
public void setEncoding(java.lang.String enc)
public void setFileName(java.lang.String fileName)
public void setMaxDepth(int depth)
public void incMaxDepth()
public void setPermissions(int mode)
public void setPermissions(java.lang.String mode) throws SyntaxException
SyntaxException
public void setPermissions(Permission perm)
public void setStandalone(boolean alone)
public void setStrictErrorChecking(boolean strict)
public void setTreeLevelOrder(int level, int order)
public void setVersion(java.lang.String version)
public void write(java.io.DataOutput ostream) throws java.io.IOException
java.io.IOException
public void write(VariableByteOutputStream ostream) throws java.io.IOException
java.io.IOException
public int reindexRequired()
public byte[] serialize()
serialize
in class NodeImpl
public void deserialize(byte[] data)
public void setReindexRequired(int level)
public void setIndexListener(NodeIndexListener listener)
public NodeIndexListener getIndexListener()
public void clearIndexListener()
public void setAddress(long address)
public long getAddress()
public long getInternalAddress()
NodeImpl
getInternalAddress
in class NodeImpl
public void updateChild(org.w3c.dom.Node oldChild, org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
NodeImpl
updateChild
in class NodeImpl
oldChild
- newChild
-
org.w3c.dom.DOMException
public org.w3c.dom.Node insertBefore(org.w3c.dom.NodeList nodes, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in class NodeImpl
org.w3c.dom.DOMException
public org.w3c.dom.Node insertAfter(org.w3c.dom.NodeList nodes, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertAfter
in class NodeImpl
org.w3c.dom.DOMException
public long getCreated()
public long getLastModified()
public void setCreated(long l)
l
- public void setLastModified(long l)
l
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |