|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.apache.xml.utils.UnImplNode
To be subclassed by classes that wish to fake being nodes.
| Field Summary |
|---|
| 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 | |
|---|---|
UnImplNode()
Constructor UnImplNode |
|
| Method Summary | |
|---|---|
Node |
adoptNode(Node source)
NEEDSDOC Method adoptNode NEEDSDOC @param source NEEDSDOC (adoptNode) @return |
Node |
appendChild(Node newChild)
Unimplemented. |
void |
appendData(java.lang.String arg)
Unimplemented. |
Node |
cloneNode(boolean deep)
Unimplemented. |
Attr |
createAttribute(java.lang.String name)
Unimplemented. |
Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Unimplemented. |
CDATASection |
createCDATASection(java.lang.String data)
Unimplemented. |
Comment |
createComment(java.lang.String data)
Unimplemented. |
DocumentFragment |
createDocumentFragment()
Unimplemented. |
Element |
createElement(java.lang.String tagName)
Unimplemented. |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Unimplemented. |
EntityReference |
createEntityReference(java.lang.String name)
Unimplemented. |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Unimplemented. |
Text |
createTextNode(java.lang.String data)
Unimplemented. |
void |
deleteData(int offset,
int count)
Unimplemented. |
void |
error(java.lang.String msg)
Throw an error. |
void |
error(java.lang.String msg,
java.lang.Object[] args)
Throw an error. |
java.lang.String |
getAttribute(java.lang.String name)
Unimplemented. |
Attr |
getAttributeNode(java.lang.String name)
Unimplemented. |
Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
Unimplemented. |
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Unimplemented. |
NamedNodeMap |
getAttributes()
Unimplemented. |
NodeList |
getChildNodes()
Unimplemented. |
DocumentType |
getDoctype()
Unimplemented. |
Element |
getDocumentElement()
Unimplemented. |
Element |
getElementById(java.lang.String elementId)
Unimplemented. |
NodeList |
getElementsByTagName(java.lang.String name)
Unimplemented. |
NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
Unimplemented. |
java.lang.String |
getEncoding()
EXPERIMENTAL! |
Node |
getFirstChild()
Unimplemented. |
DOMImplementation |
getImplementation()
Unimplemented. |
Node |
getLastChild()
Unimplemented. |
int |
getLength()
Unimplemented. |
java.lang.String |
getLocalName()
Unimplemented. |
java.lang.String |
getNamespaceURI()
Unimplemented. |
Node |
getNextSibling()
Unimplemented. |
java.lang.String |
getNodeName()
Unimplemented. |
short |
getNodeType()
Unimplemented. |
java.lang.String |
getNodeValue()
Unimplemented. |
Document |
getOwnerDocument()
Unimplemented. |
Element |
getOwnerElement()
Unimplemented. |
Node |
getParentNode()
Unimplemented. |
java.lang.String |
getPrefix()
Unimplemented. |
Node |
getPreviousSibling()
Unimplemented. |
boolean |
getSpecified()
Unimplemented. |
boolean |
getStandalone()
EXPERIMENTAL! |
boolean |
getStrictErrorChecking()
EXPERIMENTAL! |
java.lang.String |
getTagName()
Unimplemented. |
java.lang.String |
getVersion()
EXPERIMENTAL! |
boolean |
hasAttribute(java.lang.String name)
Unimplemented. |
boolean |
hasAttributeNS(java.lang.String name,
java.lang.String x)
Unimplemented. |
boolean |
hasAttributes()
Unimplemented. |
boolean |
hasChildNodes()
Unimplemented. |
Node |
importNode(Node importedNode,
boolean deep)
Unimplemented. |
Node |
insertBefore(Node newChild,
Node refChild)
Unimplemented. |
void |
insertData(int offset,
java.lang.String arg)
Unimplemented. |
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node. |
Node |
item(int index)
Unimplemented. |
void |
normalize()
Unimplemented. |
void |
removeAttribute(java.lang.String name)
Unimplemented. |
Attr |
removeAttributeNode(Attr oldAttr)
Unimplemented. |
void |
removeAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Unimplemented. |
Node |
removeChild(Node oldChild)
Unimplemented. |
Node |
replaceChild(Node newChild,
Node oldChild)
Unimplemented. |
void |
replaceData(int offset,
int count,
java.lang.String arg)
Unimplemented. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Unimplemented. |
Attr |
setAttributeNode(Attr newAttr)
Unimplemented. |
Attr |
setAttributeNodeNS(Attr newAttr)
Unimplemented. |
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
Unimplemented. |
void |
setData(java.lang.String data)
Set Node data |
void |
setEncoding(java.lang.String encoding)
EXPERIMENTAL! |
void |
setNodeValue(java.lang.String nodeValue)
Unimplemented. |
void |
setPrefix(java.lang.String prefix)
Unimplemented. |
void |
setStandalone(boolean standalone)
EXPERIMENTAL! |
void |
setStrictErrorChecking(boolean strictErrorChecking)
EXPERIMENTAL! |
void |
setValue(java.lang.String value)
Unimplemented. |
void |
setVersion(java.lang.String version)
EXPERIMENTAL! |
Text |
splitText(int offset)
Unimplemented. |
java.lang.String |
substringData(int offset,
int count)
Unimplemented. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UnImplNode()
| Method Detail |
public void error(java.lang.String msg)
msg - Message Key for the error
public void error(java.lang.String msg,
java.lang.Object[] args)
msg - Message Key for the errorargs - Array of arguments to be used in the error message
public Node appendChild(Node newChild)
throws DOMException
appendChild in interface NodenewChild - New node to append to the list of this node's children
DOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic short getNodeType()
getNodeType in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic int getLength()
getLength in interface NodeListpublic Node item(int index)
item in interface NodeListindex - index of a child of this node in its list of children
public Document getOwnerDocument()
getOwnerDocument in interface Nodepublic java.lang.String getTagName()
getTagName in interface Elementpublic java.lang.String getNodeName()
getNodeName in interface Nodepublic void normalize()
normalize in interface Nodepublic NodeList getElementsByTagName(java.lang.String name)
getElementsByTagName in interface Elementname - Name of the element
public Attr removeAttributeNode(Attr oldAttr)
throws DOMException
removeAttributeNode in interface ElementoldAttr - Attribute to be removed from this node's list of attributes
DOMException
public Attr setAttributeNode(Attr newAttr)
throws DOMException
setAttributeNode in interface ElementnewAttr - Attribute node to be added to this node's list of attributes
DOMExceptionpublic boolean hasAttribute(java.lang.String name)
hasAttribute in interface Elementname - Name of an attribute
public boolean hasAttributeNS(java.lang.String name,
java.lang.String x)
hasAttributeNS in interface Elementname - x -
public Attr getAttributeNode(java.lang.String name)
getAttributeNode in interface Elementname - Attribute node name
public void removeAttribute(java.lang.String name)
throws DOMException
removeAttribute in interface Elementname - Attribute node name to remove from list of attributes
DOMException
public void setAttribute(java.lang.String name,
java.lang.String value)
throws DOMException
setAttribute in interface Elementname - Name of attribute to setvalue - Value of attribute
DOMExceptionpublic java.lang.String getAttribute(java.lang.String name)
getAttribute in interface Elementname - Name of attribute to get
public boolean hasAttributes()
hasAttributes in interface Node
public NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
getElementsByTagNameNS in interface ElementnamespaceURI - Namespace URI of the elementlocalName - Local part of qualified name of the element
public Attr setAttributeNodeNS(Attr newAttr)
throws DOMException
setAttributeNodeNS in interface ElementnewAttr - Attribute to set
DOMException
public Attr getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
getAttributeNodeNS in interface ElementnamespaceURI - Namespace URI of attribute node to getlocalName - Local part of qualified name of attribute node to get
public void removeAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
throws DOMException
removeAttributeNS in interface ElementnamespaceURI - Namespace URI of attribute node to removelocalName - Local part of qualified name of attribute node to remove
DOMException
public void setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
throws DOMException
setAttributeNS in interface ElementnamespaceURI - Namespace URI of attribute node to setvalue - value of attributequalifiedName - The qualified name of the attribute to create or
alter.
DOMException
public java.lang.String getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
getAttributeNS in interface ElementnamespaceURI - Namespace URI of attribute node to getlocalName - Local part of qualified name of attribute node to get
public Node getPreviousSibling()
getPreviousSibling in interface Nodepublic Node cloneNode(boolean deep)
cloneNode in interface Nodedeep - Flag indicating whether to clone deep (clone member variables)
public java.lang.String getNodeValue()
throws DOMException
getNodeValue in interface NodeDOMException
public void setNodeValue(java.lang.String nodeValue)
throws DOMException
setNodeValue in interface NodenodeValue - Value to set this node to
DOMException
public void setValue(java.lang.String value)
throws DOMException
value - Value to set this node to
DOMExceptionpublic Element getOwnerElement()
public boolean getSpecified()
public NamedNodeMap getAttributes()
getAttributes in interface Node
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException
insertBefore in interface NodenewChild - New child node to insertrefChild - Insert in front of this child
DOMException
public Node replaceChild(Node newChild,
Node oldChild)
throws DOMException
replaceChild in interface NodenewChild - Replace existing child with this oneoldChild - Existing child to be replaced
DOMException
public Node removeChild(Node oldChild)
throws DOMException
removeChild in interface NodeoldChild - Child to be removed
DOMException
public boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface Nodefeature - The name of the feature to test. This is the same name
which can be passed to the method hasFeature on
DOMImplementation.version - This is the version number of the feature to test. In
Level 2, version 1, this is the string "2.0". If the version is not
specified, supporting any version of the feature will cause the
method to return true.
falsepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface Nodepublic java.lang.String getPrefix()
getPrefix in interface Node
public void setPrefix(java.lang.String prefix)
throws DOMException
setPrefix in interface Nodeprefix - Prefix to set for this node
DOMExceptionpublic java.lang.String getLocalName()
getLocalName in interface Nodepublic DocumentType getDoctype()
getDoctype in interface Documentpublic DOMImplementation getImplementation()
getImplementation in interface Documentpublic Element getDocumentElement()
getDocumentElement in interface Document
public Element createElement(java.lang.String tagName)
throws DOMException
createElement in interface DocumenttagName - Element tag name
DOMExceptionpublic DocumentFragment createDocumentFragment()
createDocumentFragment in interface Documentpublic Text createTextNode(java.lang.String data)
createTextNode in interface Documentdata - Data for text node
public Comment createComment(java.lang.String data)
createComment in interface Documentdata - Data for comment
public CDATASection createCDATASection(java.lang.String data)
throws DOMException
createCDATASection in interface Documentdata - Data for CDATA section
DOMException
public ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws DOMException
createProcessingInstruction in interface Documenttarget - Target for Processing instructiondata - Data for Processing instruction
DOMException
public Attr createAttribute(java.lang.String name)
throws DOMException
createAttribute in interface Documentname - Attribute name
DOMException
public EntityReference createEntityReference(java.lang.String name)
throws DOMException
createEntityReference in interface Documentname - Entity Reference name
DOMException
public Node importNode(Node importedNode,
boolean deep)
throws DOMException
importNode in interface DocumentimportedNode - The node to import.deep - If true, recursively import the subtree under
the specified node; if false, import only the node
itself, as explained above. This has no effect on Attr
, EntityReference, and Notation nodes.
DOMException
public Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws DOMException
createElementNS in interface DocumentnamespaceURI - Namespace URI for the elementqualifiedName - Qualified name of the element
DOMException
public Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws DOMException
createAttributeNS in interface DocumentnamespaceURI - Namespace URI of the attributequalifiedName - Qualified name of the attribute
DOMExceptionpublic Element getElementById(java.lang.String elementId)
getElementById in interface DocumentelementId - ID of the element to get
public void setData(java.lang.String data)
throws DOMException
data - data to set for this node
DOMException
public java.lang.String substringData(int offset,
int count)
throws DOMException
offset - Start offset of substring to extract.count - The length of the substring to extract.
DOMException
public void appendData(java.lang.String arg)
throws DOMException
arg - String data to append
DOMException
public void insertData(int offset,
java.lang.String arg)
throws DOMException
offset - Start offset of substring to insert.
DOMException
public void deleteData(int offset,
int count)
throws DOMException
offset - Start offset of substring to delete.count - The length of the substring to delete.
DOMException
public void replaceData(int offset,
int count,
java.lang.String arg)
throws DOMException
offset - Start offset of substring to replace.count - The length of the substring to replace.arg - substring to replace with
DOMException
public Text splitText(int offset)
throws DOMException
offset - Offset into text to split
DOMException
public Node adoptNode(Node source)
throws DOMException
DOMExceptionpublic java.lang.String getEncoding()
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, the encoding
of this document. This is null when unspecified.
public void setEncoding(java.lang.String encoding)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, the encoding
of this document. This is null when unspecified.
public boolean getStandalone()
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, whether this document is standalone.
public void setStandalone(boolean standalone)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, whether this document is standalone.
public boolean getStrictErrorChecking()
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying whether errors checking is enforced or not.
When set to false, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException. In case of error, the
behavior is undefined. This attribute is true by
defaults.
public void setStrictErrorChecking(boolean strictErrorChecking)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying whether errors checking is enforced or not.
When set to false, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException. In case of error, the
behavior is undefined. This attribute is true by
defaults.
public java.lang.String getVersion()
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, the version
number of this document. This is null when unspecified.
public void setVersion(java.lang.String version)
EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying, as part of the XML declaration, the version
number of this document. This is null when unspecified.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||