com.cafesoft.cams.attr
Interface AttributeCondition

All Known Implementing Classes:
StandardAttributeCondition

public interface AttributeCondition

AttributeCondition defines the interface for a disjunctive sequence of AttributeMatch instances for a given attribute category. AttributeCondition is responsible for evaluating AttributeMatch instances and returning true if ANY AttributeMatch returns true.

Since:
5/6/2004

Method Summary
 URI getAttributeCategory()
          Returns the attribute category of this AttributeCondition.
 List getAttributeMatchList()
          Get the List of AttributeMatchs.
 MatchResult match(EvaluationContext evalContext)
          Determines whether this AttributeCondition matches the input request (whether it is applicable)
 void setAttributeMatchList(List attrMatchList)
          Set the List of AttributeMatchs.
 

Method Detail

getAttributeCategory

public URI getAttributeCategory()
Returns the attribute category of this AttributeCondition.

Returns:
the attribute category.

setAttributeMatchList

public void setAttributeMatchList(List attrMatchList)
Set the List of AttributeMatchs.

Parameters:
attrMatchList - the List of AttributeMatchs.

getAttributeMatchList

public List getAttributeMatchList()
Get the List of AttributeMatchs.

Returns:
a List of AttributeMatchs.

match

public MatchResult match(EvaluationContext evalContext)
Determines whether this AttributeCondition matches the input request (whether it is applicable)

Parameters:
evalContext - the representation of the request
Returns:
the result of trying to match the AttributeCondition and the request


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.