|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.dom.NodeImpl | +--weblogic.apache.xerces.dom.ChildNode | +--weblogic.apache.xerces.dom.ParentNode | +--weblogic.apache.xerces.dom.DocumentTypeImpl
This class represents a Document Type declaraction in the document itself, not a Document Type Definition (DTD). An XML document may (or may not) have such a reference.
DocumentType is an Extended DOM feature, used in XML documents but not in HTML.
Note that Entities and Notations are no longer children of the DocumentType, but are parentless nodes hung only in their appropriate NamedNodeMaps.
This area is UNDERSPECIFIED IN REC-DOM-Level-1-19981001 Most notably, absolutely no provision was made for storing and using Element and Attribute information. Nor was the linkage between Entities and Entity References nailed down solidly.
Field Summary | |
protected NamedNodeMapImpl |
elements
Elements. |
protected NamedNodeMapImpl |
entities
Entities. |
protected java.lang.String |
internalSubset
|
protected java.lang.String |
name
Document type name. |
protected NamedNodeMapImpl |
notations
Notations. |
protected java.lang.String |
publicID
|
protected java.lang.String |
systemID
|
Fields inherited from class weblogic.apache.xerces.dom.ParentNode |
firstChild,
fNodeListCache,
ownerDocument |
Fields inherited from class weblogic.apache.xerces.dom.ChildNode |
nextSibling,
previousSibling |
Fields inherited from class weblogic.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE,
FIRSTCHILD,
flags,
HASSTRING,
IDATTRIBUTE,
IGNORABLEWS,
OWNED,
ownerNode,
READONLY,
SPECIFIED,
SYNCCHILDREN,
SYNCDATA,
TREE_POSITION_ANCESTOR,
TREE_POSITION_DESCENDANT,
TREE_POSITION_DISCONNECTED,
TREE_POSITION_EQUIVALENT,
TREE_POSITION_FOLLOWING,
TREE_POSITION_PRECEDING,
TREE_POSITION_SAME_NODE,
UNNORMALIZED |
Constructor Summary | |
DocumentTypeImpl(CoreDocumentImpl ownerDocument,
java.lang.String name)
Factory method for creating a document type node. |
|
DocumentTypeImpl(CoreDocumentImpl ownerDocument,
java.lang.String qualifiedName,
java.lang.String publicID,
java.lang.String systemID)
Factory method for creating a document type node. |
Method Summary | |
org.w3c.dom.Node |
cloneNode(boolean deep)
Clones the node. |
org.w3c.dom.NamedNodeMap |
getElements()
NON-DOM: Access the collection of ElementDefinitions. |
org.w3c.dom.NamedNodeMap |
getEntities()
Access the collection of general Entities, both external and internal, defined in the DTD. |
java.lang.String |
getInternalSubset()
Introduced in DOM Level 2. |
java.lang.String |
getName()
Name of this document type. |
java.lang.String |
getNodeName()
Returns the document type name |
short |
getNodeType()
A short integer indicating what type of node this is. |
org.w3c.dom.NamedNodeMap |
getNotations()
Access the collection of Notations defined in the DTD. |
java.lang.String |
getPublicId()
Introduced in DOM Level 2. |
java.lang.String |
getSystemId()
Introduced in DOM Level 2. |
java.lang.String |
getTextContent()
|
void |
setInternalSubset(java.lang.String internalSubset)
NON-DOM. |
void |
setReadOnly(boolean readOnly,
boolean deep)
NON-DOM: Subclassed to flip the entities' and notations' readonly switch as well. |
void |
setTextContent(java.lang.String textContent)
|
Methods inherited from class weblogic.apache.xerces.dom.ParentNode |
getChildNodes,
getChildNodesUnoptimized,
getFirstChild,
getLastChild,
getLength,
getOwnerDocument,
hasChildNodes,
insertBefore,
isEqualNode,
item,
normalize,
removeChild,
replaceChild,
synchronizeChildren |
Methods inherited from class weblogic.apache.xerces.dom.ChildNode |
getNextSibling,
getParentNode,
getPreviousSibling |
Methods inherited from class weblogic.apache.xerces.dom.NodeImpl |
addEventListener,
appendChild,
changed,
changes,
compareTreePosition,
dispatchEvent,
getAttributes,
getBaseURI,
getInterface,
getLocalName,
getNamespaceURI,
getNodeValue,
getPrefix,
getReadOnly,
getUserData,
getUserData,
hasAttributes,
isDefaultNamespace,
isSameNode,
isSupported,
lookupNamespacePrefix,
lookupNamespaceURI,
needsSyncChildren,
removeEventListener,
setNodeValue,
setPrefix,
setUserData,
setUserData,
synchronizeData,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String name
protected NamedNodeMapImpl entities
protected NamedNodeMapImpl notations
protected NamedNodeMapImpl elements
protected java.lang.String publicID
protected java.lang.String systemID
protected java.lang.String internalSubset
Constructor Detail |
public DocumentTypeImpl(CoreDocumentImpl ownerDocument, java.lang.String name)
public DocumentTypeImpl(CoreDocumentImpl ownerDocument, java.lang.String qualifiedName, java.lang.String publicID, java.lang.String systemID)
Method Detail |
public java.lang.String getPublicId()
Return the public identifier of this Document type.
public java.lang.String getSystemId()
Return the system identifier of this Document type.
public void setInternalSubset(java.lang.String internalSubset)
Set the internalSubset given as a string.
public java.lang.String getInternalSubset()
Return the internalSubset given as a string.
public short getNodeType()
public java.lang.String getNodeName()
public org.w3c.dom.Node cloneNode(boolean deep)
public java.lang.String getTextContent() throws org.w3c.dom.DOMException
public void setTextContent(java.lang.String textContent) throws org.w3c.dom.DOMException
public java.lang.String getName()
public org.w3c.dom.NamedNodeMap getEntities()
<!doctype example SYSTEM "ex.dtd" [ <!ENTITY foo "foo"> <!ENTITY bar "bar"> <!ENTITY % baz "baz"> ]>
The Entities map includes foo and bar, but not baz. It is promised that only Nodes which are Entities will exist in this NamedNodeMap.
For HTML, this will always be null.
Note that "built in" entities such as & and < should be converted to their actual characters before being placed in the DOM's contained text, and should be converted back when the DOM is rendered as XML or HTML, and hence DO NOT appear here.
public org.w3c.dom.NamedNodeMap getNotations()
public void setReadOnly(boolean readOnly, boolean deep)
NodeImpl.setReadOnly(boolean, boolean)
public org.w3c.dom.NamedNodeMap getElements()
ElementDefinitionImpl
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81b |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |