pass
public boolean pass(IProperty checkProp)
throws ResourceException
checks, if the given property will pass this selector or not. Behavior varies, depending on
the value of the global include-attribute set in the constructor
if it is a multi valued property or a single valued property.
If the property-types of this class and the provided property do not match, this method will
always return false
.
Include mode set to true
:
if the checkProp-parameter is null
, the method will return false
If the checkProp equals the property of this class or one of the values of the checkProp equals
one of the values of the property of this class, the method will return true
.
Include mode set to false
:
If the checkProp-parameter is null
, the method will return true
If the checkProp equals the property of this class or one of the values of the checkProp equals
one of the values of the property of this class, the method will return false
.
- Parameters:
checkProp
- the property to check, might be null
- Returns:
- flag, indicating if the given property will pass this selector
- Throws:
ResourceException