Class TagQuery

  • All Implemented Interfaces:
    Query

    public class TagQuery
    extends Object
    implements Query
    Represents a Query testing if an object possesses one or more tags.
    • Constructor Detail

      • TagQuery

        public TagQuery​(String value)
        Build a TagQuery.
        Parameters:
        value - the tag id to test.
      • TagQuery

        public TagQuery​(String... values)
        Build a TagQuery.
        Parameters:
        values - the tag IDs to test.
      • TagQuery

        public TagQuery​(Query.Operator operator,
                        String value)
        Build a TagQuery.
        Parameters:
        operator - the operator.
        value - the tag id to test.
      • TagQuery

        public TagQuery​(Query.Operator operator,
                        String... values)
        Build a TagQuery.
        Parameters:
        operator - the operator.
        values - the tag IDs to test.
      • TagQuery

        public TagQuery​(Query.Operator operator,
                        boolean descendantAutoposting,
                        String value)
        Build a TagQuery.
        Parameters:
        operator - the operator.
        descendantAutoposting - true to enable descendant autoposting (parent tags are found), false otherwise.
        value - the tag id to test.
      • TagQuery

        public TagQuery​(Query.Operator operator,
                        boolean descendantAutoposting,
                        String... values)
        Build a TagQuery.
        Parameters:
        operator - the operator.
        descendantAutoposting - true to enable descendant autoposting (parent tags are found), false otherwise.
        values - the tag IDs to test.
      • TagQuery

        public TagQuery​(Query.Operator operator,
                        boolean descendantAutoposting,
                        Query.LogicalOperator logicalOperator,
                        String... values)
        Build a TagQuery.
        Parameters:
        operator - the operator. The operator is applied to each value individually. For instance, if operator is NE and logicalOperator is OR, then the Query represents: (NOT A) OR (NOT B) ...
        descendantAutoposting - true to enable descendant autoposting (parent tags are found), false otherwise.
        logicalOperator - the logical operator.
        values - the tag IDs to test.