|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.attr.StandardAttributeMatch
AttributeMatch defines the interface matching
EvaluationContext Attributes designated by
and AttributeDesignator against a value or pattern
using a MatchFunction.
| Constructor Summary | |
StandardAttributeMatch(URI attrCategory,
Function function,
AttributeValue matchAttributeValue,
Evaluatable evaluatable)
Create a new StandardAttributeMatch instance. |
|
| 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) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardAttributeMatch(URI attrCategory,
Function function,
AttributeValue matchAttributeValue,
Evaluatable evaluatable)
throws IllegalArgumentException
attrCategory - the associated attribute category.function - the MatchFunction to be used for matching.matchAttributeValue - the AttributeValue to compare against.evaluatable - the evaluatable AttributeDesignator to select
applicable request Attributes.| Method Detail |
public URI getAttributeCategory()
TargetMatch.
getAttributeCategory in interface AttributeMatchpublic Function getMatchFunction()
Function used to do the matching.
getMatchFunction in interface AttributeMatchpublic AttributeValue getMatchValue()
AttributeValue used by the matching function.
getMatchValue in interface AttributeMatchAttributeValue for the matchpublic Evaluatable getMatchEvaluatable()
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.
getMatchEvaluatable in interface AttributeMatchpublic MatchResult match(EvaluationContext evalContext)
AttributeMatch matches
the input request (whether it is applicable)
match in interface AttributeMatchevalContext - the representation of the request
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||