Class SequenceVisitor


  • class SequenceVisitor
    extends ModelVisitor
    Visitor for child tree of structure with an element definition. This verifies that text and CDATA components are only used in ways consistent with parsing (i.e., each use must be preceded by a required element).
    • Constructor Detail

      • SequenceVisitor

        public SequenceVisitor​(StructureElementBase base,
                               ValidationContext vctx)
        Constructor.
        Parameters:
        base - root of subtree being visited (null if not a structure)
        vctx - validation context used for reporting errors
    • Method Detail

      • visit

        public boolean visit​(StructureElementBase node)
        Description copied from class: ModelVisitor
        Visit structure element. This method will be called for any form of structure element.
        Overrides:
        visit in class ModelVisitor
        Parameters:
        node - structure element being visited
        Returns:
        true if children to be processed, false if not
      • visit

        public boolean visit​(ValueElement node)
        Description copied from class: ModelVisitor
        Visit value element.
        Overrides:
        visit in class ModelVisitor
        Parameters:
        node - value element being visited
        Returns:
        true if children to be processed, false if not