|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.OzoneObject
org.ozoneDB.xml.dom4j.o3impl.AbstractNode
org.ozoneDB.xml.dom4j.o3impl.AbstractBranch
org.ozoneDB.xml.dom4j.o3impl.AbstractDocument
org.ozoneDB.xml.dom4j.o3impl.DefaultDocument
org.ozoneDB.xml.dom4j.o3impl.OzoneDocumentImpl
Field Summary |
Fields inherited from class org.ozoneDB.xml.dom4j.o3impl.DefaultDocument |
EMPTY_ITERATOR, EMPTY_LIST |
Fields inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractBranch |
DEFAULT_CONTENT_LIST_SIZE, outputFormat |
Fields inherited from class org.ozoneDB.xml.dom4j.o3impl.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 | |
OzoneDocumentImpl()
|
|
OzoneDocumentImpl(DocumentType docType)
|
|
OzoneDocumentImpl(Element rootElement)
|
|
OzoneDocumentImpl(Element rootElement,
DocumentType docType)
|
|
OzoneDocumentImpl(java.lang.String name)
|
|
OzoneDocumentImpl(java.lang.String name,
Element rootElement,
DocumentType docType)
|
Method Summary | |
void |
addNode(int index,
Node node)
|
void |
addNode(Node node)
|
void |
childAdded(Node node)
Called when a new child node has been added to me to allow any parent relationships to be created or events to be fired. |
void |
childRemoved(Node node)
Called when a child node has been removed to allow any parent relationships to be deleted or events to be fired. |
java.lang.Object |
clone()
clone will return a deep clone or if this node is
read-only then clone will return the same instance. |
java.util.List |
content()
Returns the content nodes of this branch as a backed List
so that the content of this branch may be modified directly using
the List interface.
|
java.util.List |
contentList()
|
void |
contentRemoved()
Called when the given List content has been removed so each node should have its parent and document relationships cleared |
static OzoneDocument |
create(org.ozoneDB.OzoneInterface db)
|
static OzoneDocument |
create(org.ozoneDB.OzoneInterface db,
DocumentType docType)
|
static OzoneDocument |
create(org.ozoneDB.OzoneInterface db,
Element rootElement)
|
static OzoneDocument |
create(org.ozoneDB.OzoneInterface db,
Element rootElement,
DocumentType docType)
|
static OzoneDocument |
create(org.ozoneDB.OzoneInterface db,
java.lang.String name)
creates a named Document. |
static OzoneDocument |
create(org.ozoneDB.OzoneInterface db,
java.lang.String name,
Element rootElement,
DocumentType docType)
|
java.util.List |
createContentList()
A Factory Method pattern which creates a List implementation used to store content |
java.util.List |
createContentList(int size)
A Factory Method pattern which creates a List implementation used to store content |
java.util.List |
createEmptyList()
A Factory Method pattern which creates an empty a BackedList implementation |
BackedList |
createResultList()
A Factory Method pattern which creates a BackedList implementation used to store results of a filtered content query. |
java.util.List |
createSingleResultList(java.lang.Object result)
A Factory Method pattern which creates a BackedList implementation which contains a single result |
java.lang.String |
elementID(Element element)
|
java.lang.String |
getContentAsStringValue(java.lang.Object content)
|
java.lang.String |
getContentAsText(java.lang.Object content)
|
DocumentFactory |
getDocumentFactory()
|
protected NodeFactory |
getNodeFactory()
|
protected XPathFactory |
getXPathFactory()
|
void |
invalidNodeTypeAddException(Node node)
Called when an invalid node has been added. |
void |
onActivate()
|
void |
onCreate()
|
void |
onDelete()
|
void |
onPassivate()
|
boolean |
removeNode(Node node)
|
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.DefaultDocument |
addDocType, clearContent, getDocType, getEntityResolver, getName, getRootElement, processingInstruction, processingInstructions, processingInstructions, removeProcessingInstruction, rootElementAdded, setContent, setDocType, setEntityResolver, setName |
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractDocument |
accept, add, addComment, addElement, addElement, addElement, addProcessingInstruction, addProcessingInstruction, asXML, asXPathResult, checkAddElementAllowed, getDocument, getNodeType, getPath, getStringValue, getUniquePath, normalize, remove, setRootElement, toString, write |
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractBranch |
add, add, add, addElement, appendContent, elementByID, getText, getTextTrim, hasContent, indexOf, isReadOnly, node, nodeCount, nodeIterator, remove, remove, remove, setProcessingInstructions |
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractNode |
createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getParent, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setDocumentFactory, setNodeFactory, setParent, setText, setXPathFactory, supportsParent, valueOf |
Methods inherited from class org.ozoneDB.OzoneObject |
container, database, deleteRecursive, equals, getHandle, getObjectID, handle, hashCode, requireWriteLocking, self, setContainer, toXML |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ozoneDB.xml.dom4j.OzoneBranch |
getTextTrim |
Methods inherited from interface org.dom4j.Branch |
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions |
Methods inherited from interface org.dom4j.Node |
accept, asXML, asXPathResult, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write |
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy |
getObjectID |
Methods inherited from interface org.dom4j.Document |
addComment, addDocType, addProcessingInstruction, addProcessingInstruction, getDocType, getEntityResolver, getRootElement, setDocType, setEntityResolver, setRootElement |
Methods inherited from interface org.ozoneDB.OzoneCompatible |
container, database, self, setContainer, toXML |
Constructor Detail |
public OzoneDocumentImpl()
public OzoneDocumentImpl(java.lang.String name)
public OzoneDocumentImpl(Element rootElement)
public OzoneDocumentImpl(DocumentType docType)
public OzoneDocumentImpl(Element rootElement, DocumentType docType)
public OzoneDocumentImpl(java.lang.String name, Element rootElement, DocumentType docType)
Method Detail |
public static OzoneDocument create(org.ozoneDB.OzoneInterface db)
public static OzoneDocument create(org.ozoneDB.OzoneInterface db, java.lang.String name)
public static OzoneDocument create(org.ozoneDB.OzoneInterface db, Element rootElement)
public static OzoneDocument create(org.ozoneDB.OzoneInterface db, DocumentType docType)
public static OzoneDocument create(org.ozoneDB.OzoneInterface db, Element rootElement, DocumentType docType)
public static OzoneDocument create(org.ozoneDB.OzoneInterface db, java.lang.String name, Element rootElement, DocumentType docType)
public DocumentFactory getDocumentFactory()
getDocumentFactory
in class AbstractNode
protected NodeFactory getNodeFactory()
getNodeFactory
in class AbstractNode
protected XPathFactory getXPathFactory()
getXPathFactory
in class AbstractNode
public java.util.List content()
Branch
Returns the content nodes of this branch as a backed List
so that the content of this branch may be modified directly using
the List
interface.
The List
is backed by the Branch
so that
changes to the list are reflected in the branch and vice versa.
content
in interface Branch
content
in class AbstractBranch
public void invalidNodeTypeAddException(Node node)
IllegalAddException
.
invalidNodeTypeAddException
in interface OzoneBranch
invalidNodeTypeAddException
in class AbstractBranch
public void contentRemoved()
contentRemoved
in interface OzoneBranch
contentRemoved
in class AbstractBranch
public java.lang.String getContentAsText(java.lang.Object content)
getContentAsText
in interface OzoneBranch
getContentAsText
in class AbstractBranch
public java.lang.String getContentAsStringValue(java.lang.Object content)
getContentAsStringValue
in interface OzoneBranch
getContentAsStringValue
in class AbstractBranch
public java.lang.String elementID(Element element)
elementID
in interface OzoneBranch
elementID
in class AbstractBranch
Element
public java.util.List createContentList()
createContentList
in interface OzoneBranch
createContentList
in class AbstractBranch
public java.util.List createContentList(int size)
createContentList
in interface OzoneBranch
createContentList
in class AbstractBranch
public BackedList createResultList()
createResultList
in interface OzoneBranch
createResultList
in class AbstractBranch
public java.util.List createSingleResultList(java.lang.Object result)
createSingleResultList
in interface OzoneBranch
createSingleResultList
in class AbstractBranch
public java.util.List createEmptyList()
createEmptyList
in interface OzoneBranch
createEmptyList
in class AbstractBranch
public void childRemoved(Node node)
OzoneBranch
childRemoved
in interface OzoneBranch
childRemoved
in class AbstractDocument
public void childAdded(Node node)
OzoneBranch
childAdded
in interface OzoneBranch
childAdded
in class AbstractDocument
public boolean removeNode(Node node)
removeNode
in interface OzoneBranch
removeNode
in class DefaultDocument
public void addNode(Node node)
addNode
in interface OzoneBranch
addNode
in class DefaultDocument
public java.util.List contentList()
contentList
in interface OzoneBranch
contentList
in class DefaultDocument
public void addNode(int index, Node node)
addNode
in interface OzoneBranch
addNode
in class DefaultDocument
public java.lang.Object clone()
Node
clone
will return a deep clone or if this node is
read-only then clone will return the same instance.
clone
in interface Node
clone
in class DefaultDocument
public void onCreate()
onCreate
in interface org.ozoneDB.OzoneCompatible
onCreate
in class AbstractNode
public void onActivate()
onActivate
in interface org.ozoneDB.OzoneCompatible
public void onPassivate()
onPassivate
in interface org.ozoneDB.OzoneCompatible
public void onDelete()
onDelete
in interface org.ozoneDB.OzoneCompatible
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |