public class ContainsTagSpecification extends Specification
Represents a specification that checks whether the passed property contains the specified tag.
Constructor and Description |
---|
ContainsTagSpecification(PropertyTag tag)
Initializes a new instance of the
ContainsTagSpecification class. |
Modifier and Type | Method and Description |
---|---|
PropertyTag |
getTag()
Gets the tag a property must contain to satisfy the specification.
|
boolean |
isSatisfiedBy(MetadataProperty candidate)
Verifies whether a
MetadataProperty satisfies the specification. |
and, not, or
public ContainsTagSpecification(PropertyTag tag)
Initializes a new instance of the ContainsTagSpecification
class.
tag
- 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.
public boolean isSatisfiedBy(MetadataProperty candidate)
Verifies whether a MetadataProperty
satisfies the specification.
isSatisfiedBy
in class Specification
candidate
- A metadata property to test.