|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.inria.ns.reflex.xml.CompiledExpression.Impl
org.inria.ns.reflex.xml.xpath.xpointer.ElementScheme
public class ElementScheme
The implementation of the XPointer element() scheme.
A valid expression is composed of an optional ID and an optional child sequence. One of them must be present.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.inria.ns.reflex.xml.CompiledExpression |
|---|
CompiledExpression.Impl |
| Constructor Summary | |
|---|---|
ElementScheme(String schemeData,
XFactory factory)
Create a new XPointer expression. |
|
| Method Summary | |
|---|---|
Pattern |
asPattern()
Return this expression as a pattern |
Object |
evaluate(XPathContext context)
Select the element pointed by this expression. |
int[] |
getChildSequence()
Return the child sequence defined by this expression. |
String |
getId()
Return the ID part of this expression. |
QName |
getSchemeName()
Return the name of this scheme. |
| Methods inherited from class org.inria.ns.reflex.xml.CompiledExpression.Impl |
|---|
getXFactory |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.inria.ns.reflex.xml.CompiledExpression |
|---|
getXFactory |
| Constructor Detail |
|---|
public ElementScheme(String schemeData,
XFactory factory)
throws XPointerSyntaxException
schemeData - The scheme data is like "id/1/2/3".factory - The factory that has created this binding.
XPointerSyntaxException - When the scheme datas can't be parsed.| Method Detail |
|---|
public QName getSchemeName()
getSchemeName in interface SchemeBasedXMLNames.ELEMENT_XPOINTER_SCHEME,
SchemeBased.getSchemeName()
public Object evaluate(XPathContext context)
throws XPathException
evaluate in interface CompiledExpressioncontext - The context : a node set with the position of the object where to start evaluating.
null element.
XPathExceptionCompiledExpression.evaluate(org.inria.ns.reflex.xml.xpath.XPathContext)public String getId()
null.public int[] getChildSequence()
null.
public Pattern asPattern()
throws BadPatternException
asPattern in interface CompiledExpressionBadPatternException - If this expression can't be converted to a pattern.CompiledExpression.asPattern()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||