com.groupdocs.metadata.search

Class WithNameSpecification



  • public class WithNameSpecification
    extends Specification

    Represents a specification that filters properties with a particular name.

    • Constructor Detail

      • WithNameSpecification

        public WithNameSpecification(String propertyName)

        Initializes a new instance of the WithNameSpecification class.

        Parameters:
        propertyName - The type of properties that satisfy the specification.
      • WithNameSpecification

        public WithNameSpecification(String propertyName,
                             boolean ignoreCase)

        Initializes a new instance of the WithNameSpecification class.

        Parameters:
        propertyName - The type of properties that satisfy the specification.
        ignoreCase - A value indicating whether the case of the strings being compared should be ignored.
    • Method Detail

      • getPropertyName

        public final String getPropertyName()

        Gets the name of properties that satisfy the specification.

        Returns:
        The name of properties that satisfy the specification.
      • getIgnoreCase

        public final boolean getIgnoreCase()

        Gets a value indicating whether the case of the strings being compared should be ignored.

        Returns:
        True if the case should be ignored; otherwise, false.
      • 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.