Class RegexAttributePredicate

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • attributeId

        @Nullable
        @NotEmpty
        private String attributeId
        The attribute to evaluate.
      • pattern

        @Nullable
        private Pattern pattern
        Regular expression.
    • Constructor Detail

      • RegexAttributePredicate

        public RegexAttributePredicate()
    • Method Detail

      • getAttributeId

        @Nullable
        @NotEmpty
        public String getAttributeId()
        Get the attribute ID to check.
        Returns:
        the attribute ID to check
      • setAttributeId

        public void setAttributeId​(@Nonnull @NotEmpty
                                   String id)
        Set the attribute ID to check.
        Parameters:
        id - the attribute ID to check
      • getPattern

        @Nullable
        public Pattern getPattern()
        Get the pattern to match the attribute values against.
        Returns:
        the pattern to match the attribute values against
      • setPattern

        public void setPattern​(@Nonnull
                               Pattern p)
        Set the pattern to match the attribute values against.
        Parameters:
        p - the pattern to match the attribute values against
      • setPattern

        public void setPattern​(@Nonnull @NotEmpty
                               String s)
        Set the pattern to match the attribute values against.
        Parameters:
        s - the pattern to match the attribute values against