Package org.smooks.api.resource.config
Interface ProfileTargetingExpression
-
- All Known Implementing Classes:
DefaultProfileTargetingExpression
public interface ProfileTargetingExpressionRepresents a single parsed profile targeting expression. The target-profile attribute can contain multiple comma seperated "profile targeting expressions" i.e. a list of them. SeeResourceConfigdocs. 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:- "profileX" i.e. a single entity.
- "profileX AND profileY" i.e. a compound entity.
- "profileX AND not:profileY" i.e. a compound entity.
ProfileTargetingExpression.ExpressionToken.- Author:
- tfennelly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetExpression()doublegetSpecificity(ProfileSet profileSet)booleanisMatch(ProfileSet profileSet)
-
-
-
Method Detail
-
isMatch
boolean isMatch(ProfileSet profileSet)
-
getSpecificity
double getSpecificity(ProfileSet profileSet)
-
getExpression
String getExpression()
-
-