public class DOMXMLElementEvaluator extends XMLElementEvaluator
Constructor and Description |
---|
DOMXMLElementEvaluator(XPointer xpointer,
Element element,
ErrorReporter errorReporter)
Constructs a new DOMXMLElementEvaluator to evaluate a XPointer on a DOM Element.
|
Modifier and Type | Method and Description |
---|---|
Element |
evaluateElement()
Evaluates the XPointer on the root Element and returns the resulting Element or null.
|
boolean |
testElementShorthand(XMLElement element,
String shorthand)
Tests the element for an id according to the specification at
http://www.w3.org/TR/xptr-framework/#term-sdi and returns a boolean answer.
|
evaluate
public DOMXMLElementEvaluator(XPointer xpointer, Element element, ErrorReporter errorReporter)
xpointer
- an XPointer to evaluate.element
- an DOM Element to be evaluated.errorReporter
- the Woden Error Reporter context object.public boolean testElementShorthand(XMLElement element, String shorthand)
XMLElementEvaluator
testElementShorthand
in class XMLElementEvaluator
element
- An XMLElement to test for an id.shorthand
- A String of the id to test for.public Element evaluateElement()
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.