Expr
, StepExpr
, Predicate<ViewContext<?>>
public class Attribute
extends java.lang.Object
Constructor | Description |
---|---|
Attribute(javax.xml.namespace.QName attribute,
java.lang.Iterable<Predicate<ViewContext<?>>> predicates) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
<N extends Node> |
resolve(ViewContext<N> context) |
Evaluate this expression on given xml model view using given context.
|
boolean |
test(ViewContext<?> context) |
|
java.lang.String |
toString() |
public Attribute(javax.xml.namespace.QName attribute, java.lang.Iterable<Predicate<ViewContext<?>>> predicates)
attribute
- attribute namepredicates
- attribute predicatespublic java.lang.String toString()
public final <N extends Node> IterableNodeView<N> resolve(ViewContext<N> context) throws XmlBuilderException
Expr
resolve
in interface Expr
resolve
in interface StepExpr
N
- XML model typecontext
- XPath expression contextXmlBuilderException
- if error occur during XML model modificationpublic final boolean test(ViewContext<?> context) throws XmlBuilderException
test
in interface Predicate<ViewContext<?>>
XmlBuilderException