Class SeqContentSpec


  • public class SeqContentSpec
    extends ContentSpec
    Content specification that defines model that has sequence of one or more elements that have to come in the specified order.
    • Constructor Detail

      • SeqContentSpec

        public SeqContentSpec​(boolean nsAware,
                              char arity,
                              ContentSpec[] subSpecs)
    • Method Detail

      • getSimpleValidator

        public StructValidator getSimpleValidator()
        Description copied from class: ContentSpec
        Method called by input element stack to get validator for this content specification, if this specification is simple enough not to need full DFA-based validator.
        Specified by:
        getSimpleValidator in class ContentSpec
        Returns:
        Simple content model validator, if one can be directly constructed, or null to indicate that a DFA needs to be created.
      • rewrite

        public ModelNode rewrite()
        Description copied from class: ContentSpec
        Method called as the first part of DFA construction, if necessary; will usually create simpler ModelNode instances that will match definition this instance contains.
        Specified by:
        rewrite in class ContentSpec