OfTypeSpecification

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

public class OfTypeSpecification extends Specification

Represents a specification that filters properties of a particular type.

Constructors

Constructor Description
OfTypeSpecification(MetadataPropertyType propertyType) Initializes a new instance of the OfTypeSpecification class.

Methods

Method Description
getPropertyType() Gets the type of properties that satisfy the specification.
isSatisfiedBy(MetadataProperty candidate) Verifies whether a MetadataProperty satisfies the specification.

OfTypeSpecification(MetadataPropertyType propertyType)

public OfTypeSpecification(MetadataPropertyType propertyType)

Initializes a new instance of the OfTypeSpecification class.

Parameters:

Parameter Type Description
propertyType MetadataPropertyType The type of properties that satisfy the specification.

getPropertyType()

public final MetadataPropertyType getPropertyType()

Gets the type of properties that satisfy the specification.

Returns: MetadataPropertyType - The type of properties that satisfy the specification.

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.