ContainsTagSpecification

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

public class ContainsTagSpecification extends Specification

Represents a specification that checks whether the passed property contains the specified tag.

Constructors

Constructor Description
ContainsTagSpecification(PropertyTag tag) Initializes a new instance of the ContainsTagSpecification class.

Methods

Method Description
getTag() Gets the tag a property must contain to satisfy the specification.
isSatisfiedBy(MetadataProperty candidate) Verifies whether a MetadataProperty satisfies the specification.

ContainsTagSpecification(PropertyTag tag)

public ContainsTagSpecification(PropertyTag tag)

Initializes a new instance of the ContainsTagSpecification class.

Parameters:

Parameter Type Description
tag PropertyTag The tag a property must contain to satisfy the specification.

getTag()

public final PropertyTag getTag()

Gets the tag a property must contain to satisfy the specification.

Returns: PropertyTag - The tag a property must contain 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.