com.cafesoft.cams.attr
Interface AttributeMatch

All Known Implementing Classes:
StandardAttributeMatch

public interface AttributeMatch

AttributeMatch defines the interface matching EvaluationContext Attributes designated by and AttributeDesignator against a value or pattern using a MatchFunction.

Since:
5/5/2004

Method Summary
 URI getAttributeCategory()
          Returns the attribute category of this TargetMatch.
 Evaluatable getMatchEvaluatable()
          Returns the Evaluatable AttributeDesignator used by the matching function.
 Function getMatchFunction()
          Returns the Function used to do the matching.
 AttributeValue getMatchValue()
          Returns the AttributeValue used by the matching function.
 MatchResult match(EvaluationContext evalContext)
          Determines whether this AttributeMatch matches the input request (whether it is applicable)
 

Method Detail

getAttributeCategory

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

Returns:
the attribute category.

getMatchFunction

public Function getMatchFunction()
Returns the Function used to do the matching.

Returns:
the match function

getMatchValue

public AttributeValue getMatchValue()
Returns the AttributeValue used by the matching function.

Returns:
the AttributeValue for the match

getMatchEvaluatable

public Evaluatable getMatchEvaluatable()
Returns the Evaluatable AttributeDesignator used by the matching function.

NOTE: Eventually, an "attribute selector" may also be associated with an AttributeMatch, thus the use of the Evaluatable interface rather than AttributeDesignator.

Returns:
the attribute designator (and eventually a attribute selector) for the match

match

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

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


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