net.fortuna.ical4j.filter
Class HasPropertyRule
ComponentRule
net.fortuna.ical4j.filter.HasPropertyRule
public class HasPropertyRule
extends ComponentRule
$Id: HasPropertyRule.java,v 1.6 2008/12/16 12:34:54 fortuna Exp $
Created on 5/02/2006
A rule that matches any component containing the specified property. Note that this rule ignores any parameters
matching only on the value of the property.
HasPropertyRule(Property property) - Constructs a new instance with the specified property.
|
HasPropertyRule(Property property, boolean matchEquals) - Constructs a new instance with the specified property.
|
boolean | match(Component component)
|
HasPropertyRule
public HasPropertyRule(Property property)
Constructs a new instance with the specified property. Ignores any parameters matching only on the value of the
property.
HasPropertyRule
public HasPropertyRule(Property property,
boolean matchEquals)
Constructs a new instance with the specified property.
property
- the property to matchmatchEquals
- if true, matches must contain an identical property (as indicated by
Property.equals()
match
public final boolean match(Component component)