|
||||||||||||
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 errorpublic 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 messagepublic Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
newChild
- New node to append to the list of this node's children
DOMException
public boolean hasChildNodes()
hasChildNodes
in interface Node
public short getNodeType()
getNodeType
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
public int getLength()
getLength
in interface NodeList
public Node item(int index)
item
in interface NodeList
index
- index of a child of this node in its list of children
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public java.lang.String getTagName()
getTagName
in interface Element
public java.lang.String getNodeName()
getNodeName
in interface Node
public void normalize()
normalize
in interface Node
public NodeList getElementsByTagName(java.lang.String name)
getElementsByTagName
in interface Element
name
- Name of the element
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
oldAttr
- Attribute to be removed from this node's list of attributes
DOMException
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
newAttr
- Attribute node to be added to this node's list of attributes
DOMException
public boolean hasAttribute(java.lang.String name)
hasAttribute
in interface Element
name
- Name of an attribute
public boolean hasAttributeNS(java.lang.String name, java.lang.String x)
hasAttributeNS
in interface Element
name
- x
-
public Attr getAttributeNode(java.lang.String name)
getAttributeNode
in interface Element
name
- Attribute node name
public void removeAttribute(java.lang.String name) throws DOMException
removeAttribute
in interface Element
name
- 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 Element
name
- Name of attribute to setvalue
- Value of attribute
DOMException
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface Element
name
- 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 Element
namespaceURI
- Namespace URI of the elementlocalName
- Local part of qualified name of the element
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
newAttr
- Attribute to set
DOMException
public Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNodeNS
in interface Element
namespaceURI
- 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 Element
namespaceURI
- 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 Element
namespaceURI
- 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 Element
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to get
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node cloneNode(boolean deep)
cloneNode
in interface Node
deep
- Flag indicating whether to clone deep (clone member variables)
public java.lang.String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public void setNodeValue(java.lang.String nodeValue) throws DOMException
setNodeValue
in interface Node
nodeValue
- Value to set this node to
DOMException
public void setValue(java.lang.String value) throws DOMException
value
- Value to set this node to
DOMException
public Element getOwnerElement()
public boolean getSpecified()
public NamedNodeMap getAttributes()
getAttributes
in interface Node
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
newChild
- New child node to insertrefChild
- Insert in front of this child
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
newChild
- Replace existing child with this oneoldChild
- Existing child to be replaced
DOMException
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
oldChild
- Child to be removed
DOMException
public boolean isSupported(java.lang.String feature, java.lang.String version)
isSupported
in interface Node
feature
- 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
.
false
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface Node
public java.lang.String getPrefix()
getPrefix
in interface Node
public void setPrefix(java.lang.String prefix) throws DOMException
setPrefix
in interface Node
prefix
- Prefix to set for this node
DOMException
public java.lang.String getLocalName()
getLocalName
in interface Node
public DocumentType getDoctype()
getDoctype
in interface Document
public DOMImplementation getImplementation()
getImplementation
in interface Document
public Element getDocumentElement()
getDocumentElement
in interface Document
public Element createElement(java.lang.String tagName) throws DOMException
createElement
in interface Document
tagName
- Element tag name
DOMException
public DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
public Text createTextNode(java.lang.String data)
createTextNode
in interface Document
data
- Data for text node
public Comment createComment(java.lang.String data)
createComment
in interface Document
data
- Data for comment
public CDATASection createCDATASection(java.lang.String data) throws DOMException
createCDATASection
in interface Document
data
- Data for CDATA section
DOMException
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws DOMException
createProcessingInstruction
in interface Document
target
- Target for Processing instructiondata
- Data for Processing instruction
DOMException
public Attr createAttribute(java.lang.String name) throws DOMException
createAttribute
in interface Document
name
- Attribute name
DOMException
public EntityReference createEntityReference(java.lang.String name) throws DOMException
createEntityReference
in interface Document
name
- Entity Reference name
DOMException
public Node importNode(Node importedNode, boolean deep) throws DOMException
importNode
in interface Document
importedNode
- 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 Document
namespaceURI
- 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 Document
namespaceURI
- Namespace URI of the attributequalifiedName
- Qualified name of the attribute
DOMException
public Element getElementById(java.lang.String elementId)
getElementById
in interface Document
elementId
- 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
DOMException
public 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 |