FallsIntoCategorySpecification

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

public class FallsIntoCategorySpecification extends Specification

Represents a specification that verifies whether the passed property falls into a particular category (i.e. contains tags from the specified category).

Constructors

Constructor Description
FallsIntoCategorySpecification(TagCategory category) Initializes a new instance of the FallsIntoCategorySpecification class.

Methods

Method Description
getCategory() Gets the category into which a property must fall to satisfy the specification.
isSatisfiedBy(MetadataProperty candidate) Verifies whether a MetadataProperty satisfies the specification.

FallsIntoCategorySpecification(TagCategory category)

public FallsIntoCategorySpecification(TagCategory category)

Initializes a new instance of the FallsIntoCategorySpecification class.

Parameters:

Parameter Type Description
category TagCategory The category into which a property must fall to satisfy the specification.

getCategory()

public final TagCategory getCategory()

Gets the category into which a property must fall to satisfy the specification.

Returns: TagCategory - The category into which a property must fall to 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.