ContainsTagSpecification
Leave feedback
On this page
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.
| Constructor | Description |
|---|---|
| ContainsTagSpecification(PropertyTag tag) | Initializes a new instance of the ContainsTagSpecification class. |
| Method | Description |
|---|---|
| getTag() | Gets the tag a property must contain to satisfy the specification. |
| isSatisfiedBy(MetadataProperty candidate) | Verifies whether a MetadataProperty satisfies the specification. |
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. |
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.
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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.