Package org.smooks.api.resource.config
Interface ProfileTargetingExpression
-
- All Known Implementing Classes:
DefaultProfileTargetingExpression
public interface 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. SeeResourceConfig
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:- "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 String
getExpression()
double
getSpecificity(ProfileSet profileSet)
boolean
isMatch(ProfileSet profileSet)
-
-
-
Method Detail
-
isMatch
boolean isMatch(ProfileSet profileSet)
-
getSpecificity
double getSpecificity(ProfileSet profileSet)
-
getExpression
String getExpression()
-
-