WithNameSpecification

Inheritance: java.lang.Object, com.groupdocs.metadata.search.Specification

public class WithNameSpecification extends Specification

Represents a specification that filters properties with a particular name.

Constructors

Constructor Description
WithNameSpecification(String propertyName) Initializes a new instance of the WithNameSpecification class.
WithNameSpecification(String propertyName, boolean ignoreCase) Initializes a new instance of the WithNameSpecification class.

Methods

Method Description
getPropertyName() Gets the name of properties that satisfy the specification.
getIgnoreCase() Gets a value indicating whether the case of the strings being compared should be ignored.
isSatisfiedBy(MetadataProperty candidate) Verifies whether a MetadataProperty satisfies the specification.

WithNameSpecification(String propertyName)

public WithNameSpecification(String propertyName)

Initializes a new instance of the WithNameSpecification class.

Parameters:

Parameter Type Description
propertyName java.lang.String The type of properties that satisfy the specification.

WithNameSpecification(String propertyName, boolean ignoreCase)

public WithNameSpecification(String propertyName, boolean ignoreCase)

Initializes a new instance of the WithNameSpecification class.

Parameters:

Parameter Type Description
propertyName java.lang.String The type of properties that satisfy the specification.
ignoreCase boolean A value indicating whether the case of the strings being compared should be ignored.

getPropertyName()

public final String getPropertyName()

Gets the name of properties that satisfy the specification.

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

isSatisfiedBy(MetadataProperty candidate)

public boolean isSatisfiedBy(MetadataProperty candidate)

Verifies whether a MetadataProperty satisfies the specification.

Parameters:

Parameter Type Description
candidate MetadataProperty A metadata property to test.

Returns: boolean - True, if the passed property satisfies the specification; otherwise, false.