|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.cdr.ProfileTargetingExpression
public class ProfileTargetingExpression
Represents a single parsed profile targeting expression.
The target-profile attribute can contain multiple comma seperated "profile targeting expressions" i.e. a list of them. SeeSmooksResourceConfiguration docs. This class represents
a single expression within a list of expressions.
So, a single expression is composed of 1 or more "expression tokens" seperated by
"AND". The expression arg to the constructor will be in one of
the following forms:
ProfileTargetingExpression.ExpressionToken.
| Nested Class Summary | |
|---|---|
class |
ProfileTargetingExpression.ExpressionToken
Profile targeting expression token. |
| Constructor Summary | |
|---|---|
ProfileTargetingExpression(String expression)
|
|
| Method Summary | |
|---|---|
String |
getExpression()
Get the expression used to construct this instance. |
ProfileTargetingExpression.ExpressionToken[] |
getExpressionTokens()
Get the list of ProfileTargetingExpression.ExpressionTokens parsed out of the expression
used to construct this instance. |
double |
getSpecificity(ProfileSet profileSet)
Get the specificity of this expression with respect to the supplied profile set. |
boolean |
isMatch(ProfileSet profileSet)
Does this expression match one of the profiles in the supplied profile set. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProfileTargetingExpression(String expression)
| Method Detail |
|---|
public boolean isMatch(ProfileSet profileSet)
profileSet - Profile set.
public double getSpecificity(ProfileSet profileSet)
ProfileTargetingExpression.ExpressionTokens calling
ProfileTargetingExpression.ExpressionToken.getSpecificity(org.milyn.profile.ProfileSet) and adds up their specificities.
profileSet - Evaluation Profile Set.
public String getExpression()
public ProfileTargetingExpression.ExpressionToken[] getExpressionTokens()
ProfileTargetingExpression.ExpressionTokens parsed out of the expression
used to construct this instance.
ProfileTargetingExpression.ExpressionTokens.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||