Interface PatternEffectiveStatement

    • Method Detail

      • getJavaPatternString

        default String getJavaPatternString()
        Description copied from interface: PatternConstraint
        Returns a Java Pattern-compatible regular expression (pattern). Returned string performs equivalent matching in terms of enforcement, but it may have a structure completely different from the one in YANG model. This string DOES NOT include the effects of the modifier (if present, as indicated by PatternConstraint.getModifier().
        Specified by:
        getJavaPatternString in interface PatternConstraint
        Returns:
        string Java Pattern regular expression
      • getRegularExpressionString

        default String getRegularExpressionString()
        Description copied from interface: PatternConstraint
        Returns a raw regular expression as it was declared in a source. This string conforms to XSD regular expression syntax, which is notably different from Java's Pattern string.
        Specified by:
        getRegularExpressionString in interface PatternConstraint
        Returns:
        argument of pattern statement as it was declared in YANG model.
      • getModifier

        default Optional<ModifierKind> getModifier()
        Description copied from interface: PatternConstraint
        RFC7950 allows a pattern constraint to be inverted. For this purpose a general modifier concept has been introduced. A pattern can have at most one such modifier.
        Specified by:
        getModifier in interface PatternConstraint
        Returns:
        modifier, if present