|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.OzoneObject
org.ozoneDB.xml.dom.NodeImpl
org.ozoneDB.xml.dom.DocumentImpl
org.ozoneDB.xml.dom.DocumentTypeImpl
Each document Document.getDoctype()
attribute whose
value is either null or an object that represents the document type definition
(DTD). HTML documents do not have a DTD. At the moment, this object provides
the list of entities that are defined for the document and little else.
Access is provided through NamedNodeMap
collections.
Notes:
Node.DOCUMENT_TYPE_NODE
Document
The internal implementation also provides access to other elements that are
part of the DTD, so full XML documents can be generated and parsed. These
extensions are beyond the DOM API and are covered in an extended API.
For more information see DTDDocument
.
DocumentType
,
DTDDocument
,
NodeImpl
,
NamedNodeMap
,
Serialized FormField Summary |
Fields inherited from class org.ozoneDB.xml.dom.NodeImpl |
ATTLIST_DECL_NODE, ELEMENT_DECL_NODE, PARAM_ENTITY_NODE |
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 | |
DocumentTypeImpl()
|
|
DocumentTypeImpl(org.w3c.dom.Document owner,
java.lang.String rootElement,
boolean standalone,
java.lang.String systemId,
java.lang.String publicId)
|
|
DocumentTypeImpl(java.lang.String systemId)
|
Method Summary | |
protected org.w3c.dom.Node |
castNewChild(org.w3c.dom.Node newChild)
Checks whether newChild can be added to this node as a child, and if so, performs a necessary cast. |
java.lang.Object |
clone()
|
void |
cloneInto(NodeProxy into,
boolean deep)
This clone method is called after a new node has been constructed to copy the contents of this node into the new one. |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
org.w3c.dom.Entity |
createEntity(java.lang.String name,
java.lang.String value)
Creates a new internal entity declaration and returns it. |
org.w3c.dom.Entity |
createEntity(java.lang.String name,
java.lang.String systemID,
java.lang.String publicID)
Creates a new external general entity declaration and returns it. |
org.w3c.dom.Entity |
createEntity(java.lang.String name,
java.lang.String systemID,
java.lang.String publicID,
java.lang.String notation)
Creates a new unparsed general entity declaration and returns it. |
org.w3c.dom.Notation |
createNotation(java.lang.String name,
java.lang.String systemID,
java.lang.String publicID)
Creates a new notation and returns it. |
ParamEntity |
createParamEntity(java.lang.String name,
java.lang.String value)
Creates a new internal parameter and returns it. |
ParamEntity |
createParamEntity(java.lang.String name,
java.lang.String systemID,
java.lang.String publicID)
Creates a new external parameter entity and returns it. |
org.w3c.dom.Entity |
declareEntity(org.w3c.dom.Entity general)
Declares a new general entity declaration. |
org.w3c.dom.Notation |
declareNotation(org.w3c.dom.Notation notation)
Declares a new notation. |
ParamEntity |
declareParamEntity(ParamEntity param)
Declares a new parameter entity. |
boolean |
equals(java.lang.Object other)
|
org.w3c.dom.Entity |
findEntity(java.lang.String name)
Returns the named general entity declaration if one has been declared. |
org.w3c.dom.Notation |
findNotation(java.lang.String name)
Returns the named notation if one has been declared. |
ParamEntity |
findParamEntity(java.lang.String name)
Returns the named parameter entity if one has been declared. |
org.w3c.dom.Element |
getDocumentElement()
|
org.w3c.dom.NamedNodeMap |
getEntities()
|
java.lang.String |
getInternalSubset()
|
java.lang.String |
getName()
|
short |
getNodeType()
Abstract method must be implemented by each node class. |
org.w3c.dom.NamedNodeMap |
getNotations()
|
java.util.Dictionary |
getParamEntities()
Returns a dictionary of all the parameter entitites declared in this DTD. |
java.util.Hashtable |
getParams()
|
java.lang.String |
getPublicId()
|
boolean |
getStandalone()
|
java.lang.String |
getSystemId()
|
void |
init(java.lang.String systemId)
|
java.lang.String |
internalAsText()
|
boolean |
isStandalone()
|
void |
setEntities(org.w3c.dom.NamedNodeMap entities)
|
void |
setNotations(org.w3c.dom.NamedNodeMap notations)
|
void |
setParams(java.util.Hashtable params)
|
void |
setPublicId(java.lang.String publicId)
|
void |
setStandalone(boolean standalone)
|
void |
setSystemId(java.lang.String systemId)
|
java.lang.String |
toString()
|
Methods inherited from class org.ozoneDB.xml.dom.NodeImpl |
appendChild, castOldChild, getAttributes, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, init, insertBefore, isReadOnly, isSupported, normalize, notifyIterators, removeChild, replaceChild, setNextSibling, setNodeName, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setReadOnly, supports |
Methods inherited from class org.ozoneDB.OzoneObject |
container, database, deleteRecursive, getHandle, getObjectID, handle, hashCode, onActivate, onCreate, onPassivate, requireWriteLocking, self, setContainer, toXML |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy |
getObjectID |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.ozoneDB.xml.dom.DocumentProxy |
clearDocument, getContainer, setContainer, setDoctype, setElementTypes |
Methods inherited from interface org.w3c.dom.Document |
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode |
Methods inherited from interface org.w3c.dom.DOMImplementation |
createDocument, createDocumentType, hasFeature |
Methods inherited from interface org.ozoneDB.xml.dom.NodeProxy |
getChild, getChildCount, getChildNodes, init, isReadOnly, setNextSibling, setNodeName, setOwnerDocument, setParentNode, setPreviousSibling, setReadOnly |
Constructor Detail |
public DocumentTypeImpl(java.lang.String systemId)
public DocumentTypeImpl(org.w3c.dom.Document owner, java.lang.String rootElement, boolean standalone, java.lang.String systemId, java.lang.String publicId)
public DocumentTypeImpl()
Method Detail |
public java.lang.String getInternalSubset()
getInternalSubset
in interface org.w3c.dom.DocumentType
public short getNodeType()
NodeImpl
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class DocumentImpl
public java.lang.String getName()
getName
in interface org.w3c.dom.DocumentType
public org.w3c.dom.NamedNodeMap getEntities()
getEntities
in interface DocumentTypeProxy
public void setEntities(org.w3c.dom.NamedNodeMap entities)
setEntities
in interface DocumentTypeProxy
public org.w3c.dom.NamedNodeMap getNotations()
getNotations
in interface DocumentTypeProxy
public void setNotations(org.w3c.dom.NamedNodeMap notations)
setNotations
in interface DocumentTypeProxy
public java.util.Hashtable getParams()
getParams
in interface DocumentTypeProxy
public void setParams(java.util.Hashtable params)
setParams
in interface DocumentTypeProxy
public java.lang.String getPublicId()
getPublicId
in interface DocumentTypeProxy
public void setSystemId(java.lang.String systemId)
setSystemId
in interface DocumentTypeProxy
public void setPublicId(java.lang.String publicId)
setPublicId
in interface DocumentTypeProxy
public java.lang.String getSystemId()
getSystemId
in interface DocumentTypeProxy
public java.lang.String internalAsText()
public boolean getStandalone()
getStandalone
in interface DocumentTypeProxy
public void setStandalone(boolean standalone)
setStandalone
in interface DocumentTypeProxy
public org.w3c.dom.Entity createEntity(java.lang.String name, java.lang.String systemID, java.lang.String publicID)
name
- The notation namesystemID
- The system identifierpublicID
- The public identifier
public org.w3c.dom.Entity createEntity(java.lang.String name, java.lang.String systemID, java.lang.String publicID, java.lang.String notation)
name
- The notation namesystemID
- The system identifierpublicID
- The public identifiernotation
- The notation
public org.w3c.dom.Entity createEntity(java.lang.String name, java.lang.String value)
name
- The notation namevalue
- The entity value
public org.w3c.dom.Entity declareEntity(org.w3c.dom.Entity general)
general
- The general entity to declare
public org.w3c.dom.Entity findEntity(java.lang.String name)
name
- The entity name
public org.w3c.dom.Notation createNotation(java.lang.String name, java.lang.String systemID, java.lang.String publicID)
name
- The notation namesystemID
- The system identifierpublicID
- The public identifier
public org.w3c.dom.Notation declareNotation(org.w3c.dom.Notation notation)
notation
- The notation to declare
public org.w3c.dom.Notation findNotation(java.lang.String name)
name
- The notation name
public ParamEntity createParamEntity(java.lang.String name, java.lang.String systemID, java.lang.String publicID)
name
- The notation namesystemID
- The system identifierpublicID
- The public identifier
public ParamEntity createParamEntity(java.lang.String name, java.lang.String value)
name
- The notation namevalue
- The entity value
public ParamEntity declareParamEntity(ParamEntity param)
param
- The parameter entity to declare
public ParamEntity findParamEntity(java.lang.String name)
name
- The entity name
public java.util.Dictionary getParamEntities()
public boolean isStandalone()
public org.w3c.dom.Element getDocumentElement()
getDocumentElement
in interface org.w3c.dom.Document
getDocumentElement
in class DocumentImpl
public boolean equals(java.lang.Object other)
equals
in class DocumentImpl
public java.lang.Object clone()
clone
in interface DocumentTypeProxy
clone
in class DocumentImpl
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class DocumentImpl
public java.lang.String toString()
toString
in class DocumentImpl
public void cloneInto(NodeProxy into, boolean deep)
NodeImpl
OzoneObject.equals(java.lang.Object)
).
into must be a valid node of the exact same class as this one. deep is true if deep cloning (includes all children nodes) is to be performed. If deep is false, the clone might not pass the equality test.
Derived classes override and call this method to add per-class variable
copying. This method is called by Node.cloneNode(boolean)
and the default
Object.clone()
method.
Contents cloning duplicates the node's name and value, and its children. It does not duplicate it's context, that is, the node's parent or sibling. Initially a clone node has no parents or siblings. However, the node does belong to the same document, since all nodes must belong to some document. The cloned node is never read-only.
cloneInto
in interface NodeProxy
cloneInto
in class DocumentImpl
protected org.w3c.dom.Node castNewChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
NodeImpl
The following rules govern the allowed newChild types:
Attr
, newChild must be either
a Text
or an EntityReference
DocumentType
, newChild must be
either an Entity
or a Notation
.
Element
, a CharacterData
derived type,
a DocumentFragment
, an EntityReference
or a ProcessingInstruction
.
castNewChild
in class NodeImpl
newChild
- New child node
NodeImpl
org.w3c.dom.DOMException
- HIERARCHY_REQUEST_ERR
newChild is null, does not belong to this DOM, or its node type
is not supported for this parentpublic void init(java.lang.String systemId)
init
in interface DocumentTypeProxy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |