|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node source)
NEEDSDOC Method adoptNode NEEDSDOC @param source NEEDSDOC (adoptNode) @return |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Unimplemented. |
void |
appendData(String arg)
Unimplemented. |
org.w3c.dom.Node |
cloneNode(boolean deep)
Unimplemented. |
org.w3c.dom.Attr |
createAttribute(String name)
Unimplemented. |
org.w3c.dom.Attr |
createAttributeNS(String namespaceURI,
String qualifiedName)
Unimplemented. |
org.w3c.dom.CDATASection |
createCDATASection(String data)
Unimplemented. |
org.w3c.dom.Comment |
createComment(String data)
Unimplemented. |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
Unimplemented. |
org.w3c.dom.Element |
createElement(String tagName)
Unimplemented. |
org.w3c.dom.Element |
createElementNS(String namespaceURI,
String qualifiedName)
Unimplemented. |
org.w3c.dom.EntityReference |
createEntityReference(String name)
Unimplemented. |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(String target,
String data)
Unimplemented. |
org.w3c.dom.Text |
createTextNode(String data)
Unimplemented. |
void |
deleteData(int offset,
int count)
Unimplemented. |
void |
error(String msg)
Throw an error. |
void |
error(String msg,
Object[] args)
Throw an error. |
String |
getAttribute(String name)
Unimplemented. |
org.w3c.dom.Attr |
getAttributeNode(String name)
Unimplemented. |
org.w3c.dom.Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
Unimplemented. |
String |
getAttributeNS(String namespaceURI,
String localName)
Unimplemented. |
org.w3c.dom.NamedNodeMap |
getAttributes()
Unimplemented. |
org.w3c.dom.NodeList |
getChildNodes()
Unimplemented. |
org.w3c.dom.DocumentType |
getDoctype()
Unimplemented. |
org.w3c.dom.Element |
getDocumentElement()
Unimplemented. |
org.w3c.dom.Element |
getElementById(String elementId)
Unimplemented. |
org.w3c.dom.NodeList |
getElementsByTagName(String name)
Unimplemented. |
org.w3c.dom.NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
Unimplemented. |
String |
getEncoding()
EXPERIMENTAL! |
org.w3c.dom.Node |
getFirstChild()
Unimplemented. |
org.w3c.dom.DOMImplementation |
getImplementation()
Unimplemented. |
org.w3c.dom.Node |
getLastChild()
Unimplemented. |
int |
getLength()
Unimplemented. |
String |
getLocalName()
Unimplemented. |
String |
getNamespaceURI()
Unimplemented. |
org.w3c.dom.Node |
getNextSibling()
Unimplemented. |
String |
getNodeName()
Unimplemented. |
short |
getNodeType()
Unimplemented. |
String |
getNodeValue()
Unimplemented. |
org.w3c.dom.Document |
getOwnerDocument()
Unimplemented. |
org.w3c.dom.Element |
getOwnerElement()
Unimplemented. |
org.w3c.dom.Node |
getParentNode()
Unimplemented. |
String |
getPrefix()
Unimplemented. |
org.w3c.dom.Node |
getPreviousSibling()
Unimplemented. |
boolean |
getSpecified()
Unimplemented. |
boolean |
getStandalone()
EXPERIMENTAL! |
boolean |
getStrictErrorChecking()
EXPERIMENTAL! |
String |
getTagName()
Unimplemented. |
String |
getVersion()
EXPERIMENTAL! |
boolean |
hasAttribute(String name)
Unimplemented. |
boolean |
hasAttributeNS(String name,
String x)
Unimplemented. |
boolean |
hasAttributes()
Unimplemented. |
boolean |
hasChildNodes()
Unimplemented. |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
Unimplemented. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Unimplemented. |
void |
insertData(int offset,
String arg)
Unimplemented. |
boolean |
isSupported(String feature,
String version)
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node. |
org.w3c.dom.Node |
item(int index)
Unimplemented. |
void |
normalize()
Unimplemented. |
void |
removeAttribute(String name)
Unimplemented. |
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
Unimplemented. |
void |
removeAttributeNS(String namespaceURI,
String localName)
Unimplemented. |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
Unimplemented. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
Unimplemented. |
void |
replaceData(int offset,
int count,
String arg)
Unimplemented. |
void |
setAttribute(String name,
String value)
Unimplemented. |
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
Unimplemented. |
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
Unimplemented. |
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
Unimplemented. |
void |
setData(String data)
Set Node data |
void |
setEncoding(String encoding)
EXPERIMENTAL! |
void |
setNodeValue(String nodeValue)
Unimplemented. |
void |
setPrefix(String prefix)
Unimplemented. |
void |
setStandalone(boolean standalone)
EXPERIMENTAL! |
void |
setStrictErrorChecking(boolean strictErrorChecking)
EXPERIMENTAL! |
void |
setValue(String value)
Unimplemented. |
void |
setVersion(String version)
EXPERIMENTAL! |
org.w3c.dom.Text |
splitText(int offset)
Unimplemented. |
String |
substringData(int offset,
int count)
Unimplemented. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UnImplNode()
Method Detail |
public void error(String msg)
msg
- Message Key for the errorpublic void error(String msg, Object[] args)
msg
- Message Key for the errorargs
- Array of arguments to be used in the error messagepublic org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
newChild
- New node to append to the list of this node's children
org.w3c.dom.DOMException
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
public int getLength()
getLength
in interface org.w3c.dom.NodeList
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NodeList
index
- index of a child of this node in its list of children
public org.w3c.dom.Document getOwnerDocument()
getOwnerDocument
in interface org.w3c.dom.Node
public String getTagName()
getTagName
in interface org.w3c.dom.Element
public String getNodeName()
getNodeName
in interface org.w3c.dom.Node
public void normalize()
normalize
in interface org.w3c.dom.Node
public org.w3c.dom.NodeList getElementsByTagName(String name)
getElementsByTagName
in interface org.w3c.dom.Element
name
- Name of the element
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr) throws org.w3c.dom.DOMException
removeAttributeNode
in interface org.w3c.dom.Element
oldAttr
- Attribute to be removed from this node's list of attributes
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
newAttr
- Attribute node to be added to this node's list of attributes
org.w3c.dom.DOMException
public boolean hasAttribute(String name)
hasAttribute
in interface org.w3c.dom.Element
name
- Name of an attribute
public boolean hasAttributeNS(String name, String x)
hasAttributeNS
in interface org.w3c.dom.Element
name
- x
-
public org.w3c.dom.Attr getAttributeNode(String name)
getAttributeNode
in interface org.w3c.dom.Element
name
- Attribute node name
public void removeAttribute(String name) throws org.w3c.dom.DOMException
removeAttribute
in interface org.w3c.dom.Element
name
- Attribute node name to remove from list of attributes
org.w3c.dom.DOMException
public void setAttribute(String name, String value) throws org.w3c.dom.DOMException
setAttribute
in interface org.w3c.dom.Element
name
- Name of attribute to setvalue
- Value of attribute
org.w3c.dom.DOMException
public String getAttribute(String name)
getAttribute
in interface org.w3c.dom.Element
name
- Name of attribute to get
public boolean hasAttributes()
hasAttributes
in interface org.w3c.dom.Node
public org.w3c.dom.NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface org.w3c.dom.Element
namespaceURI
- Namespace URI of the elementlocalName
- Local part of qualified name of the element
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNodeNS
in interface org.w3c.dom.Element
newAttr
- Attribute to set
org.w3c.dom.DOMException
public org.w3c.dom.Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface org.w3c.dom.Element
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to get
public void removeAttributeNS(String namespaceURI, String localName) throws org.w3c.dom.DOMException
removeAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- Namespace URI of attribute node to removelocalName
- Local part of qualified name of attribute node to remove
org.w3c.dom.DOMException
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws org.w3c.dom.DOMException
setAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- Namespace URI of attribute node to setvalue
- value of attribute
org.w3c.dom.DOMException
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to get
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
deep
- Flag indicating whether to clone deep (clone member variables)
public String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
public void setNodeValue(String nodeValue) throws org.w3c.dom.DOMException
setNodeValue
in interface org.w3c.dom.Node
nodeValue
- Value to set this node to
org.w3c.dom.DOMException
public void setValue(String value) throws org.w3c.dom.DOMException
value
- Value to set this node to
org.w3c.dom.DOMException
public org.w3c.dom.Element getOwnerElement()
public boolean getSpecified()
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in interface org.w3c.dom.Node
newChild
- New child node to insertrefChild
- Insert in front of this child
org.w3c.dom.DOMException
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
replaceChild
in interface org.w3c.dom.Node
newChild
- Replace existing child with this oneoldChild
- Existing child to be replaced
org.w3c.dom.DOMException
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
oldChild
- Child to be removed
org.w3c.dom.DOMException
public boolean isSupported(String feature, String version)
isSupported
in interface org.w3c.dom.Node
false
public String getNamespaceURI()
getNamespaceURI
in interface org.w3c.dom.Node
public String getPrefix()
getPrefix
in interface org.w3c.dom.Node
public void setPrefix(String prefix) throws org.w3c.dom.DOMException
setPrefix
in interface org.w3c.dom.Node
prefix
- Prefix to set for this node
org.w3c.dom.DOMException
public String getLocalName()
getLocalName
in interface org.w3c.dom.Node
public org.w3c.dom.DocumentType getDoctype()
getDoctype
in interface org.w3c.dom.Document
public org.w3c.dom.DOMImplementation getImplementation()
getImplementation
in interface org.w3c.dom.Document
public org.w3c.dom.Element getDocumentElement()
getDocumentElement
in interface org.w3c.dom.Document
public org.w3c.dom.Element createElement(String tagName) throws org.w3c.dom.DOMException
createElement
in interface org.w3c.dom.Document
tagName
- Element tag name
org.w3c.dom.DOMException
public org.w3c.dom.DocumentFragment createDocumentFragment()
createDocumentFragment
in interface org.w3c.dom.Document
public org.w3c.dom.Text createTextNode(String data)
createTextNode
in interface org.w3c.dom.Document
data
- Data for text node
public org.w3c.dom.Comment createComment(String data)
createComment
in interface org.w3c.dom.Document
data
- Data for comment
public org.w3c.dom.CDATASection createCDATASection(String data) throws org.w3c.dom.DOMException
createCDATASection
in interface org.w3c.dom.Document
data
- Data for CDATA section
org.w3c.dom.DOMException
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(String target, String data) throws org.w3c.dom.DOMException
createProcessingInstruction
in interface org.w3c.dom.Document
target
- Target for Processing instructiondata
- Data for Processing instruction
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttribute(String name) throws org.w3c.dom.DOMException
createAttribute
in interface org.w3c.dom.Document
name
- Attribute name
org.w3c.dom.DOMException
public org.w3c.dom.EntityReference createEntityReference(String name) throws org.w3c.dom.DOMException
createEntityReference
in interface org.w3c.dom.Document
name
- Entity Reference name
org.w3c.dom.DOMException
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMException
importNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Element createElementNS(String namespaceURI, String qualifiedName) throws org.w3c.dom.DOMException
createElementNS
in interface org.w3c.dom.Document
namespaceURI
- Namespace URI for the elementqualifiedName
- Qualified name of the element
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttributeNS(String namespaceURI, String qualifiedName) throws org.w3c.dom.DOMException
createAttributeNS
in interface org.w3c.dom.Document
namespaceURI
- Namespace URI of the attributequalifiedName
- Qualified name of the attribute
org.w3c.dom.DOMException
public org.w3c.dom.Element getElementById(String elementId)
getElementById
in interface org.w3c.dom.Document
elementId
- ID of the element to get
public void setData(String data) throws org.w3c.dom.DOMException
data
- data to set for this node
org.w3c.dom.DOMException
public String substringData(int offset, int count) throws org.w3c.dom.DOMException
offset
- Start offset of substring to extract.count
- The length of the substring to extract.
org.w3c.dom.DOMException
public void appendData(String arg) throws org.w3c.dom.DOMException
arg
- String data to append
org.w3c.dom.DOMException
public void insertData(int offset, String arg) throws org.w3c.dom.DOMException
offset
- Start offset of substring to insert.
org.w3c.dom.DOMException
public void deleteData(int offset, int count) throws org.w3c.dom.DOMException
offset
- Start offset of substring to delete.count
- The length of the substring to delete.
org.w3c.dom.DOMException
public void replaceData(int offset, int count, String arg) throws org.w3c.dom.DOMException
offset
- Start offset of substring to replace.count
- The length of the substring to replace.arg
- substring to replace with
org.w3c.dom.DOMException
public org.w3c.dom.Text splitText(int offset) throws org.w3c.dom.DOMException
offset
- Offset into text to split
org.w3c.dom.DOMException
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public 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(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 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(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 |