com.groupdocs.metadata.search

Class OfTypeSpecification



  • public class OfTypeSpecification
    extends Specification

    Represents a specification that filters properties of a particular type.

    • Constructor Detail

      • OfTypeSpecification

        public OfTypeSpecification(int propertyType)

        Initializes a new instance of the OfTypeSpecification class.

        Parameters:
        propertyType - The type of properties that satisfy the specification.
    • Method Detail

      • getPropertyType

        public final int getPropertyType()

        Gets the type of properties that satisfy the specification.

        Returns:
        The type of properties that 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.