Class DefaultProfileTargetingExpression

  • All Implemented Interfaces:
    org.smooks.api.resource.config.ProfileTargetingExpression

    public class DefaultProfileTargetingExpression
    extends Object
    implements org.smooks.api.resource.config.ProfileTargetingExpression
    • Constructor Detail

      • DefaultProfileTargetingExpression

        public DefaultProfileTargetingExpression​(String expression)
    • Method Detail

      • isMatch

        public boolean isMatch​(org.smooks.api.profile.ProfileSet profileSet)
        Does this expression match one of the profiles in the supplied profile set.
        Specified by:
        isMatch in interface org.smooks.api.resource.config.ProfileTargetingExpression
        Parameters:
        profileSet - Profile set.
        Returns:
        True if this expression matches one of the profiles in the supplied profile set, otherwise false.
      • getExpression

        public String getExpression()
        Get the expression used to construct this instance.
        Specified by:
        getExpression in interface org.smooks.api.resource.config.ProfileTargetingExpression
        Returns:
        The expression string for this instance.