org.ozoneDB.xml.dom4j.o3impl
Class OzoneDocumentTypeImpl

java.lang.Object
  extended byorg.ozoneDB.OzoneObject
      extended byorg.ozoneDB.xml.dom4j.o3impl.AbstractNode
          extended byorg.ozoneDB.xml.dom4j.o3impl.AbstractDocumentType
              extended byorg.ozoneDB.xml.dom4j.o3impl.DefaultDocumentType
                  extended byorg.ozoneDB.xml.dom4j.o3impl.OzoneDocumentTypeImpl
All Implemented Interfaces:
java.lang.Cloneable, DocumentType, Node, org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, OzoneDocumentType, org.ozoneDB.OzoneRemote, java.io.Serializable

public class OzoneDocumentTypeImpl
extends DefaultDocumentType
implements OzoneDocumentType, org.ozoneDB.OzoneCompatible

Author:
Per Nyfelt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ozoneDB.xml.dom4j.o3impl.DefaultDocumentType
elementName
 
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
OzoneDocumentTypeImpl()
           
OzoneDocumentTypeImpl(java.lang.String elementName, java.lang.String systemID)
          This will create a new DocumentType with a reference to the external DTD
OzoneDocumentTypeImpl(java.lang.String elementName, java.lang.String publicID, java.lang.String systemID)
          This will create a new DocumentType with a reference to the external DTD
 
Method Summary
 java.lang.Object clone()
          clone will return a deep clone or if this node is read-only then clone will return the same instance.
static OzoneDocumentType create(org.ozoneDB.OzoneInterface db)
           
static OzoneDocumentType create(org.ozoneDB.OzoneInterface db, java.lang.String elementName, java.lang.String systemID)
           
static OzoneDocumentType create(org.ozoneDB.OzoneInterface db, java.lang.String elementName, java.lang.String publicID, java.lang.String systemID)
           
 DocumentFactory getDocumentFactory()
           
protected  NodeFactory getNodeFactory()
           
protected  XPathFactory getXPathFactory()
           
 void onActivate()
           
 void onCreate()
           
 void onDelete()
           
 void onPassivate()
           
 
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.DefaultDocumentType
getElementName, getExternalDeclarations, getInternalDeclarations, getPublicID, getSystemID, setElementName, setExternalDeclarations, setInternalDeclarations, setPublicID, setSystemID
 
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractDocumentType
accept, asXML, getName, getNodeType, getPath, getText, getUniquePath, setName, toString, write
 
Methods inherited from class org.ozoneDB.xml.dom4j.o3impl.AbstractNode
asXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getDocument, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, 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.dom4j.DocumentType
getElementName, getExternalDeclarations, getInternalDeclarations, getPublicID, getSystemID, setElementName, setExternalDeclarations, setInternalDeclarations, setPublicID, setSystemID
 
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.ozoneDB.OzoneCompatible
container, database, self, setContainer, toXML
 

Constructor Detail

OzoneDocumentTypeImpl

public OzoneDocumentTypeImpl()

OzoneDocumentTypeImpl

public OzoneDocumentTypeImpl(java.lang.String elementName,
                             java.lang.String systemID)

This will create a new DocumentType with a reference to the external DTD

Parameters:
elementName - is the root element name of the document type
systemID - is the system ID of the external DTD

OzoneDocumentTypeImpl

public OzoneDocumentTypeImpl(java.lang.String elementName,
                             java.lang.String publicID,
                             java.lang.String systemID)

This will create a new DocumentType with a reference to the external DTD

Parameters:
elementName - is the root element name of the document type
publicID - is the public ID of the DTD
systemID - is the system ID of the DTD
Method Detail

create

public static OzoneDocumentType create(org.ozoneDB.OzoneInterface db)

create

public static OzoneDocumentType create(org.ozoneDB.OzoneInterface db,
                                       java.lang.String elementName,
                                       java.lang.String systemID)

create

public static OzoneDocumentType create(org.ozoneDB.OzoneInterface db,
                                       java.lang.String elementName,
                                       java.lang.String publicID,
                                       java.lang.String systemID)

getDocumentFactory

public DocumentFactory getDocumentFactory()
Overrides:
getDocumentFactory in class AbstractNode

getNodeFactory

protected NodeFactory getNodeFactory()
Overrides:
getNodeFactory in class AbstractNode

getXPathFactory

protected XPathFactory getXPathFactory()
Overrides:
getXPathFactory in class AbstractNode

clone

public java.lang.Object clone()
Description copied from interface: Node

clone will return a deep clone or if this node is read-only then clone will return the same instance.

Specified by:
clone in interface Node
Overrides:
clone in class AbstractNode

onCreate

public void onCreate()
Specified by:
onCreate in interface org.ozoneDB.OzoneCompatible
Overrides:
onCreate in class AbstractNode

onActivate

public void onActivate()
Specified by:
onActivate in interface org.ozoneDB.OzoneCompatible

onPassivate

public void onPassivate()
Specified by:
onPassivate in interface org.ozoneDB.OzoneCompatible

onDelete

public void onDelete()
Specified by:
onDelete in interface org.ozoneDB.OzoneCompatible


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.