com.groupdocs.metadata.search

Class FallsIntoCategorySpecification



  • public class FallsIntoCategorySpecification
    extends Specification

    Represents a specification that verifies whether the passed property falls into a particular category (i.e. contains tags from the specified category).

    • Constructor Detail

      • FallsIntoCategorySpecification

        public FallsIntoCategorySpecification(TagCategory category)

        Initializes a new instance of the FallsIntoCategorySpecification class.

        Parameters:
        category - The category into which a property must fall to satisfy the specification.
    • Method Detail

      • getCategory

        public final TagCategory getCategory()

        Gets the category into which a property must fall to satisfy the specification.

        Returns:
        The category into which a property must fall to satisfy the specification.
      • isSatisfiedBy

        public boolean isSatisfiedBy(MetadataProperty candidate)

        Verifies whether a MetadataProperty satisfies the specification.

        Specified by:
        isSatisfiedBy in class Specification
        Parameters:
        candidate - A metadata property to test.
        Returns:
        True, if the passed property satisfies the specification; otherwise, false.