|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.dom.NodeImpl org.apache.xerces.dom.ChildNode org.apache.xerces.dom.ParentNode org.apache.xerces.dom.CoreDocumentImpl org.apache.xerces.dom.DocumentImpl org.apache.xerces.dom.PSVIDocumentImpl
public class PSVIDocumentImpl
Our own document implementation, which knows how to create an element with PSVI information.
Field Summary |
---|
Constructor Summary | |
---|---|
PSVIDocumentImpl()
Create a document. |
|
PSVIDocumentImpl(DocumentType doctype)
For DOM2 support. |
Method Summary | |
---|---|
Node |
cloneNode(boolean deep)
Deep-clone a document, including fixing ownerDoc for the cloned children. |
Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Create an attribute with PSVI information |
Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String localName)
Create an attribute with PSVI information |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Create an element with PSVI information |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String localpart)
Create an element with PSVI information |
DOMConfiguration |
getDomConfig()
The configuration used when Document.normalizeDocument is
invoked. |
DOMImplementation |
getImplementation()
Retrieve information describing the abilities of this particular DOM implementation. |
Methods inherited from class org.apache.xerces.dom.DocumentImpl |
---|
createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker |
Methods inherited from class org.apache.xerces.dom.ParentNode |
---|
getChildNodes, getFirstChild, getLastChild, getLength, hasChildNodes, isEqualNode, item, normalize, setReadOnly |
Methods inherited from class org.apache.xerces.dom.ChildNode |
---|
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
---|
addEventListener, appendChild, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, hasAttributes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, compareDocumentPosition, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, setNodeValue, setPrefix, setUserData |
Constructor Detail |
---|
public PSVIDocumentImpl()
public PSVIDocumentImpl(DocumentType doctype)
Method Detail |
---|
public Node cloneNode(boolean deep)
cloneNode
in interface Node
cloneNode
in class DocumentImpl
deep
- boolean, iff true replicate children
Example: Cloning a Text node will copy both the node and the text it
contains.
Example: Cloning something that has children -- Element or Attr, for
example -- will _not_ clone those children unless a "deep clone"
has been requested. A shallow clone of an Attr node will yield an
empty Attr of the same name.
NOTE: Clones will always be read/write, even if the node being cloned
is read-only, to permit applications using only the DOM API to obtain
editable copies of locked portions of the tree.
public DOMImplementation getImplementation()
getImplementation
in interface Document
getImplementation
in class DocumentImpl
public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
createElementNS
in interface Document
createElementNS
in class CoreDocumentImpl
namespaceURI
- The namespace URI of the element to
create.qualifiedName
- The qualified name of the element type to
instantiate.
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified
name contains an invalid character.public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localpart) throws DOMException
createElementNS
in class CoreDocumentImpl
namespaceURI
- The namespace URI of the element to
create.qualifiedName
- The qualified name of the element type to
instantiate.localpart
- The local name of the attribute to instantiate.
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified
name contains an invalid character.public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
createAttributeNS
in interface Document
createAttributeNS
in class CoreDocumentImpl
namespaceURI
- The namespace URI of the attribute to
create. When it is null or an empty string,
this method behaves like createAttribute.qualifiedName
- The qualified name of the attribute to
instantiate.
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified
name contains an invalid character.public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localName) throws DOMException
createAttributeNS
in class CoreDocumentImpl
namespaceURI
- The namespace URI of the attribute to
create. When it is null or an empty string,
this method behaves like createAttribute.qualifiedName
- The qualified name of the attribute to
instantiate.localName
- The local name of the attribute to instantiate.
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified
name contains an invalid character.public DOMConfiguration getDomConfig()
Document.normalizeDocument
is
invoked.
getDomConfig
in interface Document
getDomConfig
in class CoreDocumentImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |