Class RegexPropertySetting


  • public class RegexPropertySetting
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean failIfNoMatch
      Whether to fail if no match is found.
      private java.lang.String name
      The property to set.
      private java.lang.String regex
      The regex to replace.
      private java.lang.String replacement
      The replacement.
      private java.lang.String value
      The pre-transformation value.
    • Field Detail

      • name

        @Parameter(required=true)
        private java.lang.String name
        The property to set.
      • value

        @Parameter(required=true)
        private java.lang.String value
        The pre-transformation value.
      • regex

        @Parameter(required=true)
        private java.lang.String regex
        The regex to replace.
      • replacement

        @Parameter(defaultValue="")
        private java.lang.String replacement
        The replacement.
      • failIfNoMatch

        @Parameter(defaultValue="true")
        private boolean failIfNoMatch
        Whether to fail if no match is found.
    • Constructor Detail

      • RegexPropertySetting

        public RegexPropertySetting()
    • Method Detail

      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getValue

        public java.lang.String getValue()
      • setValue

        public void setValue​(java.lang.String value)
      • getRegex

        public java.lang.String getRegex()
      • setRegex

        public void setRegex​(java.lang.String regex)
      • getReplacement

        public java.lang.String getReplacement()
      • setReplacement

        public void setReplacement​(java.lang.String replacement)
      • isFailIfNoMatch

        public boolean isFailIfNoMatch()
      • setFailIfNoMatch

        public void setFailIfNoMatch​(boolean failIfNoMatch)
      • validate

        public void validate()