Class EntityAttributesPredicate.Candidate

  • Enclosing class:
    EntityAttributesPredicate

    public static class EntityAttributesPredicate.Candidate
    extends Object
    An object to encapsulate the set of criteria that must be satisfied by an EntityAttributes extension to satisfy the enclosing predicate.
    • Field Detail

      • nam

        @Nonnull
        @NotEmpty
        private final String nam
        Attribute Name.
      • nameFormat

        @Nullable
        private final String nameFormat
        Attribute NameFormat.
      • values

        @Nonnull
        @NonnullElements
        private List<String> values
        Values that must match exactly.
      • regexps

        @Nonnull
        @NonnullElements
        private List<Pattern> regexps
        Regular expressions that must be satisfied.
    • Constructor Detail

      • Candidate

        public Candidate​(@Nonnull @NotEmpty @ParameterName(name="name")
                         String name)
        Constructor.
        Parameters:
        name - Attribute Name to match
      • Candidate

        public Candidate​(@Nonnull @NotEmpty @ParameterName(name="name")
                         String name,
                         @Nullable @ParameterName(name="format")
                         String format)
        Constructor.
        Parameters:
        name - Attribute Name to match
        format - Attribute NameFormat to match
    • Method Detail

      • getName

        @Nonnull
        @NotEmpty
        public String getName()
        Get the Attribute Name to match.
        Returns:
        Attribute Name to match
      • getNameFormat

        @Nullable
        public String getNameFormat()
        Get the Attribute NameFormat to match.
        Returns:
        Attribute NameFormat to match
      • getValues

        @Nonnull
        @NonnullElements
        @Unmodifiable
        @NotLive
        public List<String> getValues()
        Get the exact values to match.
        Returns:
        the exact values to match
      • setValues

        public void setValues​(@Nonnull @NonnullElements
                              Collection<String> vals)
        Set the exact values to match.
        Parameters:
        vals - the exact values to match
      • getRegexps

        @Nonnull
        @NonnullElements
        @Unmodifiable
        @NotLive
        public List<Pattern> getRegexps()
        Get the regular expressions to match.
        Returns:
        the regular expressions to match.
      • setRegexps

        public void setRegexps​(@Nonnull @NonnullElements
                               Collection<Pattern> exps)
        Set the regular expressions to match.
        Parameters:
        exps - the regular expressions to match