Class MatchCondition

  • All Implemented Interfaces:
    ComponentLifecycle, InputCondition

    @ComponentProfile(summary="InputCondition implementation that matches against a specific regular expression",
                      since="3.8.4")
    public class MatchCondition
    extends java.lang.Object
    implements InputCondition
    InputCondition implementation that matches against a regular expression.

    In the adapter configuration file this class is aliased as stax-plugin-match-rule which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • MatchCondition

        public MatchCondition()
    • Method Detail

      • matches

        public boolean matches​(AdaptrisMessage msg)
        Description copied from interface: InputCondition
        Whether or not this message should have the plugin applied.
        Specified by:
        matches in interface InputCondition
        Parameters:
        msg - the message
        Returns:
        true or false.
      • getWhen

        public java.lang.String getWhen()
      • setWhen

        public void setWhen​(java.lang.String s)
        Specify the value to check against when determining whether to apply the transform plugin.
        Parameters:
        s - the value, which supports the %message{} syntax to resolve metadata.
      • getMatches

        public java.lang.String getMatches()
      • setMatches

        public void setMatches​(java.lang.String s)
        Set the regular expression to match getWhen() against.
        Parameters:
        s - a string that conforms to java.util.Pattern syntax.