public class HasPropertyRule extends ComponentRule
Constructor and Description |
---|
HasPropertyRule(Property property)
Constructs a new instance with the specified property.
|
HasPropertyRule(Property property,
boolean matchEquals)
Constructs a new instance with the specified property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
match(Component component) |
match
public HasPropertyRule(Property property)
property
- a property instance to check forpublic HasPropertyRule(Property property, boolean matchEquals)
property
- the property to matchmatchEquals
- if true, matches must contain an identical property (as indicated by
Property.equals()
public final boolean match(Component component)
match
in class ComponentRule
component
- a component to match onCopyright © 2004-2015 Micronode. All Rights Reserved.