public class OfTypeSpecification extends Specification
Represents a specification that filters properties of a particular type.
Constructor and Description |
---|
OfTypeSpecification(int propertyType)
Initializes a new instance of the
OfTypeSpecification class. |
Modifier and Type | Method and Description |
---|---|
int |
getPropertyType()
Gets the type of properties that satisfy the specification.
|
boolean |
isSatisfiedBy(MetadataProperty candidate)
Verifies whether a
MetadataProperty satisfies the specification. |
and, not, or
public OfTypeSpecification(int propertyType)
Initializes a new instance of the OfTypeSpecification
class.
propertyType
- The type of properties that satisfy the specification.public final int getPropertyType()
Gets the type of properties that 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.