Package com.sun.xml.xsom.impl.scd
Class Step<T extends XSComponent>
- java.lang.Object
-
- com.sun.xml.xsom.impl.scd.Step<T>
-
- Direct Known Subclasses:
Step.Any
,Step.Filtered
public abstract class Step<T extends XSComponent> extends java.lang.Object
Building block ofSCD
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Step.AnonymousType
Matches anonymous types.(package private) static class
Step.Any
Matches any name.(package private) static class
Step.Facet
Matches a particular kind of facets.private static class
Step.Filtered<T extends XSComponent>
(package private) static class
Step.Named
Matches a particular name.(package private) static class
Step.Schema
Matches a schema in a particular namespace.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<T>
evaluate(java.util.Iterator<XSComponent> nodeSet)
Evaluate this step against the current node set and returns matched nodes.protected abstract java.util.Iterator<? extends T>
filter(java.util.Iterator<? extends T> base)
Perform filtering (which is different depending on the kind of step.)
-
-
-
Field Detail
-
axis
public final Axis<? extends T extends XSComponent> axis
-
predicate
int predicate
'Predicate' in SCD designates the index of the item. -1 if there's no predicate. Predicate starts from 1.Because of the parsing order this parameter cannot be marked final, even though it's immutable once it's parsed.
-
-
Method Detail
-
filter
protected abstract java.util.Iterator<? extends T> filter(java.util.Iterator<? extends T> base)
Perform filtering (which is different depending on the kind of step.)
-
evaluate
public final java.util.Iterator<T> evaluate(java.util.Iterator<XSComponent> nodeSet)
Evaluate this step against the current node set and returns matched nodes.
-
-