|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DOMDocument
This interface models a document to be processed
by the Validator.
| Method Summary | |
|---|---|
void |
addAttribute(String xPath,
String attrName,
String attrValue)
Adds an attribute to a node addressed by the given XPath. |
URI |
getDocumentURI()
|
Node |
getNode(String xPath)
Returns the node addressed by the given XPath, if more then one an exception will be raised. |
List<Node> |
getNodes(String xPath)
Returns the list of nodes addressed by the given XPath. |
List<Node> |
getNodesWithAttribute(String attrName)
Returns all the nodes declaring an attribute with the specified name. |
Document |
getOriginalDocument()
Returns the original document. |
| Method Detail |
|---|
URI getDocumentURI()
Document getOriginalDocument()
List<Node> getNodes(String xPath)
xPath - a valid XPath
Node getNode(String xPath)
xPath - a valid XPath.
null if nothing found.
void addAttribute(String xPath,
String attrName,
String attrValue)
xPath - the XPath pointing the node.attrName - the name of the attribute.attrValue - the value of the attribute.List<Node> getNodesWithAttribute(String attrName)
attrName - name of attribute to use for filtering.
null if no matches found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||