com.groupdocs.metadata.search

Class ContainsTagSpecification



  • public class ContainsTagSpecification
    extends Specification

    Represents a specification that checks whether the passed property contains the specified tag.

    • Constructor Detail

      • ContainsTagSpecification

        public ContainsTagSpecification(PropertyTag tag)

        Initializes a new instance of the ContainsTagSpecification class.

        Parameters:
        tag - The tag a property must contain to satisfy the specification.
    • Method Detail

      • getTag

        public final PropertyTag getTag()

        Gets the tag a property must contain to satisfy the specification.

        Returns:
        The tag a property must contain 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.