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 Object
Building block of SCD.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static final class 
    Matches anonymous types.
    (package private) static final class 
    Matches any name.
    (package private) static final class 
    Matches a particular kind of facets.
    private static class 
     
    (package private) static final class 
    Matches a particular name.
    (package private) static final class 
    Matches a schema in a particular namespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Axis<? extends T>
     
    (package private) int
    'Predicate' in SCD designates the index of the item.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Step(Axis<? extends T> axis)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final Iterator<T>
    Evaluate this step against the current node set and returns matched nodes.
    protected abstract Iterator<? extends T>
    filter(Iterator<? extends T> base)
    Perform filtering (which is different depending on the kind of step.)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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.

  • Constructor Details

    • Step

      protected Step(Axis<? extends T> axis)
  • Method Details

    • filter

      protected abstract Iterator<? extends T> filter(Iterator<? extends T> base)
      Perform filtering (which is different depending on the kind of step.)
    • evaluate

      public final Iterator<T> evaluate(Iterator<XSComponent> nodeSet)
      Evaluate this step against the current node set and returns matched nodes.