public class ProfileTargetingExpression extends Object
SmooksResourceConfiguration
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
.Modifier and Type | Class and Description |
---|---|
class |
ProfileTargetingExpression.ExpressionToken
Profile targeting expression token.
|
Constructor and Description |
---|
ProfileTargetingExpression(String expression) |
Modifier and Type | Method and Description |
---|---|
String |
getExpression()
Get the expression used to construct this instance.
|
ProfileTargetingExpression.ExpressionToken[] |
getExpressionTokens()
Get the list of
ProfileTargetingExpression.ExpressionToken s 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() |
public ProfileTargetingExpression(String expression)
public boolean isMatch(ProfileSet profileSet)
profileSet
- Profile set.public double getSpecificity(ProfileSet profileSet)
ProfileTargetingExpression.ExpressionToken
s 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.ExpressionToken
s parsed out of the expression
used to construct this instance.ProfileTargetingExpression.ExpressionToken
s.Copyright © 2020. All rights reserved.