|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.xml.Node
Node is a Node in a doubly-linked list.
| Field Summary | |
NodeList |
list
|
Node |
next
|
Node |
prev
|
| 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 |
| Fields inherited from interface electric.xml.IXMLConstants |
ATTLIST_START, ATTLIST_STOP, CDATA, CDATA_START, CDATA_STOP, CLOSE_TAG, COLON, COMMENT_START, COMMENT_STOP, DOCTYPE_START, DOCTYPE_STOP, ELEMENTDECL_START, ELEMENTDECL_STOP, ENCODING, ENTITYDECL_START, ENTITYDECL_STOP, ID, ID_CASE, INSTRUCTION_START, INSTRUCTION_STOP, NEGATIVE_INFINITY, NOT_A_NUMBER, NOTATIONDECL_START, NOTATIONDECL_STOP, NULL, OPEN_TAG, POSITIVE_INFINITY, PUBLIC, SPECIALS, STANDALONE, SUBSTITUTES, SYSTEM, UNDEFINED, VERSION, XML, XML_NAMESPACE, XMLDECL_START, XMLDECL_STOP, XMLNS, XMLNS_NAMESPACE |
| Fields inherited from interface electric.xml.IDOMConstants |
CDATA_SECTION_NAME, COMMENT_NAME, CORE, DOCUMENT_FRAGMENT_NAME, DOCUMENT_NAME, HIERARCHY_REQUEST_ERR, TEXT_NAME |
| Constructor Summary | |
Node()
|
|
| Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Adds the node newChild to the end of the list of children of this node. |
org.w3c.dom.Node |
cloneNode(boolean deep)
Return a duplicate of this node, i.e., serve as a generic copy constructor for nodes. |
org.w3c.dom.NamedNodeMap |
getAttributes()
Return a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise |
org.w3c.dom.NodeList |
getChildNodes()
Return a NodeList that contains all children of this node. |
org.w3c.dom.Node |
getFirstChild()
Return the first child of this node. |
org.w3c.dom.Node |
getLastChild()
Return the last child of this node. |
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this node. |
java.lang.String |
getNamespaceURI()
Return the namespace URI of this node, or null if it is unspecified. |
org.w3c.dom.Node |
getNextSibling()
Return the node immediately following this node. |
Node |
getNextSiblingNode()
Return my next sibling, or null if I have none. |
Node |
getNode()
Return myself. |
Node |
getNode(IXPath xpath)
|
java.lang.String |
getNodeName()
Return the name of this node, depending on its type. |
Nodes |
getNodes(IXPath xpath)
|
short |
getNodeType()
Return a code representing the type of the underlying object. |
java.lang.String |
getNodeValue()
Return the value of this node, depending on its type. |
org.w3c.dom.Document |
getOwnerDocument()
Return the Document object associated with this node. |
org.w3c.dom.Node |
getParentNode()
Return the parent of this node. |
java.lang.String |
getPrefix()
Return the namespace prefix of this node, or null if it is unspecified. |
org.w3c.dom.Node |
getPreviousSibling()
Return the node immediately preceding this node. |
Node |
getPreviousSiblingNode()
Return my previous sibling, or null if I have none. |
boolean |
hasAttributes()
Returns whether this node (if it is an element) has any attributes. |
boolean |
hasChildNodes()
Returns whether this node has any children. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts the node newChild before the existing child node refChild. |
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
Return true if this DOM implementation implements a specific feature and that feature is supported by this node. |
void |
normalize()
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes. |
void |
read(NodeReader reader)
|
boolean |
remove()
If I am in a list, remove myself and return true, otherwise return false. |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
Removes the child node indicated by oldChild from the list of children, and returns it. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node. |
void |
setNextSiblingNode(Node node)
Set my next sibling to be the specified node. |
void |
setNodeValue(java.lang.String nodeValue)
Set the value of this node, depending on its type. |
void |
setPrefix(java.lang.String prefix)
Set the namespace prefix of this node. |
void |
setPreviousSiblingNode(Node node)
Set my previous sibling to be the specified node. |
int |
size()
|
void |
write(NodeWriter writer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public NodeList list
public Node prev
public Node next
| Constructor Detail |
public Node()
| Method Detail |
public Node getNode()
public Node getPreviousSiblingNode()
public Node getNextSiblingNode()
public void setNextSiblingNode(Node node)
node - The node to addpublic void setPreviousSiblingNode(Node node)
node - The node to addpublic boolean remove()
public int size()
public Nodes getNodes(IXPath xpath)
xpath - public Node getNode(IXPath xpath)
xpath -
public void read(NodeReader reader)
throws java.io.IOException,
NamespaceException
reader -
java.io.IOException
NamespaceException
public void write(NodeWriter writer)
throws java.io.IOException
writer -
java.io.IOExceptionpublic boolean hasAttributes()
hasAttributes in interface org.w3c.dom.Nodepublic java.lang.String getLocalName()
getLocalName in interface org.w3c.dom.Nodepublic boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.Nodepublic org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getFirstChild()
getFirstChild in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getLastChild()
getLastChild in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getParentNode()
getParentNode in interface org.w3c.dom.Nodepublic short getNodeType()
getNodeType in interface org.w3c.dom.Nodepublic java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.Nodepublic void setNodeValue(java.lang.String nodeValue)
setNodeValue in interface org.w3c.dom.NodenodeValue - public java.lang.String getNamespaceURI()
getNamespaceURI in interface org.w3c.dom.Nodepublic java.lang.String getPrefix()
getPrefix in interface org.w3c.dom.Nodepublic void setPrefix(java.lang.String prefix)
setPrefix in interface org.w3c.dom.Nodeprefix - The new namespace prefix.public org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.Document getOwnerDocument()
getOwnerDocument in interface org.w3c.dom.Nodepublic org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
appendChild in interface org.w3c.dom.NodenewChild - The node to add.If it is a DocumentFragment object, the
entire contents of the document fragment are moved into the child list of this nodepublic org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
removeChild in interface org.w3c.dom.NodeoldChild - The node being removed.
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
replaceChild in interface org.w3c.dom.NodenewChild - The new node to put in the child list.oldChild - The node being replaced in the list.
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
insertBefore in interface org.w3c.dom.NodenewChild - The node to insert.refChild - The reference node, i.e., the node before which the new node must be inserted.public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.Nodedeep - If true, recursively clone the subtree under the specified node;
if false, clone only the node itself (and its attributes, if it is an Element).public void normalize()
normalize in interface org.w3c.dom.Nodepublic org.w3c.dom.NamedNodeMap getAttributes()
getAttributes in interface org.w3c.dom.Node
public boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface org.w3c.dom.Nodefeature - The name of the feature to test. This is the same name
which can be passed to the method hasFeature on DOMImplementation.version - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||