| 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) Returns new SearchElement instance from a given 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) | | Returns 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: text - 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 | protected void beginToString(StringBuffer sb, Indent indent)(Code)(Java Doc) public Node cloneNode(boolean deep)(Code)(Java Doc) public short compareDocumentPosition(Node arg0) 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 getElementsByTagName(String name)(Code)(Java Doc) public NodeList getElementsByTagNameNS(String namespaceURI, String localName)(Code)(Java Doc) public Object getFeature(String arg0, String arg1)(Code)(Java Doc) public String getNamespaceURI()(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 arg0)(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 hasElementChildNodes()(Code)(Java Doc) public Node insertBefore(Node newChild, Node refChild)(Code)(Java Doc) public boolean isDefaultNamespace(String arg0)(Code)(Java Doc) public boolean isEqualNode(Node arg0)(Code)(Java Doc) public boolean isSameNode(Node arg0)(Code)(Java Doc) public static boolean isValidName(String name)(Code)(Java Doc) public String lookupNamespaceURI(String arg0)(Code)(Java Doc) public String lookupPrefix(String arg0)(Code)(Java Doc) public static Element newInstance(Document document)(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 arg0, boolean arg1) throws DOMException(Code)(Java Doc) public void setIdAttributeNS(String arg0, String arg1, boolean arg2) throws DOMException(Code)(Java Doc) public void setIdAttributeNode(Attr arg0, boolean arg1) throws DOMException(Code)(Java Doc) public void setTextContent(String arg0) throws DOMException(Code)(Java Doc) public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)(Code)(Java Doc)
|
|
|