| java.lang.Object org.enhydra.xml.NodeImpl org.enhydra.xml.ElementImpl org.enhydra.xml.HashMapElement org.enhydra.xml.SearchElement
All known Subclasses: org.enhydra.xml.XMLConfig,
Method Summary | |
public Element | getFirstSubElementByTagName(String namePath) Returns the first Element in the subtree of this node,
with the given tag name.
Parameters: namePath - relative path to the Element . | public Element | getFirstSubElementsByCondition(String condition) Returns the first Element in the subtree of this node,
that satisfy the given condition.
Parameters: condition - condition. | public NodeList | getSubElementsByAttrValue(String attrPath, String attrValue) Returns a list of Element s in the subtree of this node,
which contain attribute with the given name and value.
Parameters: attrPath - relative path to the attribute name. Parameters: attrValue - attribute value. | public NodeList | getSubElementsByCondition(String condition) Returns a list of Element s in the subtree of this node,
that satisfy the given condition.
Parameters: condition - condition. | public NodeList | getSubElementsByTagName(String namePath) Returns a list of elements in the subtree of this node, with the given tag name.
Parameters: namePath - relative path to the Element (through children). | public NodeList | getSubElementsByTagText(String tagPath, String tagValue) Returns a list of Element s in the subtree of this node,
with the given tag name and value.
Parameters: tagPath - relative path to the tag name. Parameters: tagValue - Element value. | public String | getText(String namePath) Return the text of the Element found on the given path.
Parameters: namePath - relative path to the Element node. | protected Node | newElementInstance(Node node) | public static Element | newInstance(Document document) Creates new instance of SearchElement from a given document
as a Document .
Parameters: document - document. | public void | setAttr(String namePath, String value) Sets the value of an attribute found on the given path. | public void | setText(String namePath, String text) Sets the given text to the Element found on the given path. |
SearchElement | public SearchElement()(Code) | | Constructs an empty SearchElement .
|
SearchElement | public SearchElement(Document ownerDoc, String name)(Code) | | Constructs an SearchElement with a given document owner and node name.
Parameters: ownerDoc - the document owner of the node, as a Document . Parameters: name - the name of the node, as a String . |
SearchElement | public SearchElement(Node node)(Code) | | Constructs an SearchElement with a given Node .
Parameters: node - Node . |
SearchElement | public SearchElement(SearchElement node)(Code) | | Constructs an SearchElement with a given SearchElement .
Parameters: node - SearchElement . |
getFirstSubElementByTagName | public Element getFirstSubElementByTagName(String namePath)(Code) | | Returns the first Element in the subtree of this node,
with the given tag name.
Parameters: namePath - relative path to the Element . the first Element in the subtree of this node,with the given tag name. |
getFirstSubElementsByCondition | public Element getFirstSubElementsByCondition(String condition)(Code) | | Returns the first Element in the subtree of this node,
that satisfy the given condition.
Parameters: condition - condition. the first Element in the subtree of this node,that satisfy the given condition. |
getSubElementsByAttrValue | public NodeList getSubElementsByAttrValue(String attrPath, String attrValue)(Code) | | Returns a list of Element s in the subtree of this node,
which contain attribute with the given name and value.
Parameters: attrPath - relative path to the attribute name. Parameters: attrValue - attribute value. list of Element s in the subtree of this node,which contain attribute with the given name and value. |
getSubElementsByCondition | public NodeList getSubElementsByCondition(String condition)(Code) | | Returns a list of Element s in the subtree of this node,
that satisfy the given condition.
Parameters: condition - condition. list of Element s in the subtree of this node,that satisfy the given condition. |
getSubElementsByTagName | public NodeList getSubElementsByTagName(String namePath)(Code) | | Returns a list of elements in the subtree of this node, with the given tag name.
Parameters: namePath - relative path to the Element (through children). list of elements in the subtree of this node, with the given tag name. |
getSubElementsByTagText | public NodeList getSubElementsByTagText(String tagPath, String tagValue)(Code) | | Returns a list of Element s in the subtree of this node,
with the given tag name and value.
Parameters: tagPath - relative path to the tag name. Parameters: tagValue - Element value. list of Element s in the subtree of this node,with the given tag name and value. |
getText | public String getText(String namePath)(Code) | | Return the text of the Element found on the given path.
Parameters: namePath - relative path to the Element node. text of the Element found on the given path. |
newElementInstance | protected Node newElementInstance(Node node)(Code) | | new SearchElement instance from a given Node . Parameters: node - Node . |
newInstance | public static Element newInstance(Document document)(Code) | | Creates new instance of SearchElement from a given document
as a Document .
Parameters: document - document. new SearchElement node as a root of the Document . |
setAttr | public void setAttr(String namePath, String value)(Code) | | Sets the value of an attribute found on the given path.
Parameters: namePath - relative path to the attribute. Parameters: value - is new value. |
setText | public void setText(String namePath, String text)(Code) | | Sets the given text to the Element found on the given path.
Parameters: namePath - relative path to the Element node. Parameters: text - new text. |
Methods inherited from org.enhydra.xml.ElementImpl | public Node appendChild(Node newChild)(Code)(Java Doc) protected void beginToString(StringBuffer sb, Indent indent)(Code)(Java Doc) protected void checkNode(Node node) throws DOMException(Code)(Java Doc) public Node cloneNode(boolean deep)(Code)(Java Doc) public short compareDocumentPosition(Node other) throws DOMException(Code)(Java Doc) protected void endToString(StringBuffer sb, Indent indent)(Code)(Java Doc) public String getAttribute(String name)(Code)(Java Doc) public String getAttributeNS(String namespaceURI, String localName)(Code)(Java Doc) public Attr getAttributeNode(String name)(Code)(Java Doc) public Attr getAttributeNodeNS(String namespaceURI, String localName)(Code)(Java Doc) public NamedNodeMap getAttributes()(Code)(Java Doc) public String getBaseURI()(Code)(Java Doc) public NodeList getChildNodes()(Code)(Java Doc) public NodeList getElementsByTagName(String name)(Code)(Java Doc) public NodeList getElementsByTagNameNS(String namespaceURI, String localName)(Code)(Java Doc) public Object getFeature(String feature, String version)(Code)(Java Doc) public Node getFirstChild()(Code)(Java Doc) public Node getLastChild()(Code)(Java Doc) public int getLength()(Code)(Java Doc) public String getLocalName()(Code)(Java Doc) public String getNamespaceURI() throws DOMException(Code)(Java Doc) public Node getNextSibling()(Code)(Java Doc) public String getNodeName()(Code)(Java Doc) public short getNodeType()(Code)(Java Doc) public String getNodeValue()(Code)(Java Doc) public Document getOwnerDocument()(Code)(Java Doc) public Node getParentNode()(Code)(Java Doc) public String getPrefix()(Code)(Java Doc) public Node getPreviousSibling()(Code)(Java Doc) public TypeInfo getSchemaTypeInfo()(Code)(Java Doc) public String getTagName()(Code)(Java Doc) public String getTextContent() throws DOMException(Code)(Java Doc) public Object getUserData(String key)(Code)(Java Doc) public boolean hasAttribute(String name)(Code)(Java Doc) public boolean hasAttributeNS(String namespaceURI, String localName)(Code)(Java Doc) public boolean hasAttributes()(Code)(Java Doc) public boolean hasChildNodes()(Code)(Java Doc) public boolean hasElementChildNodes()(Code)(Java Doc) protected void initNodeImplChildren(Node node)(Code)(Java Doc) public Node insertBefore(Node newChild, Node refChild)(Code)(Java Doc) public boolean isDefaultNamespace(String namespaceURI)(Code)(Java Doc) public boolean isEqualNode(Node arg)(Code)(Java Doc) public boolean isSameNode(Node other)(Code)(Java Doc) public boolean isSupported(String feature, String version)(Code)(Java Doc) public Node item(int index)(Code)(Java Doc) public String lookupNamespaceURI(String prefix)(Code)(Java Doc) public String lookupPrefix(String namespaceURI)(Code)(Java Doc) protected Node newCommentInstance(Node node)(Code)(Java Doc) protected Node newDefaultInstance(Node node)(Code)(Java Doc) protected Node newElementInstance(Node node)(Code)(Java Doc) public static Element newInstance(Document document)(Code)(Java Doc) protected Node newTextInstance(Node node)(Code)(Java Doc) public void normalize()(Code)(Java Doc) public void removeAttribute(String name)(Code)(Java Doc) public void removeAttributeNS(String namespaceURI, String localName)(Code)(Java Doc) public Attr removeAttributeNode(Attr oldAttr)(Code)(Java Doc) public Node removeChild(Node oldChild)(Code)(Java Doc) public Node replaceChild(Node newChild, Node oldChild)(Code)(Java Doc) public void setAttribute(String name, String value)(Code)(Java Doc) public void setAttributeNS(String namespaceURI, String qualifiedName, String value)(Code)(Java Doc) public Attr setAttributeNode(Attr newAttr) throws DOMException(Code)(Java Doc) public Attr setAttributeNodeNS(Attr newAttr)(Code)(Java Doc) public void setIdAttribute(String name, boolean isId) throws DOMException(Code)(Java Doc) public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException(Code)(Java Doc) public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException(Code)(Java Doc) public void setNodeValue(String nodeValue)(Code)(Java Doc) public void setPrefix(String prefix)(Code)(Java Doc) public void setTextContent(String textContent) throws DOMException(Code)(Java Doc) public Object setUserData(String key, Object data, UserDataHandler handler)(Code)(Java Doc) public String toString()(Code)(Java Doc) public String toString(String tab)(Code)(Java Doc)
|
|
|