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 boolean toLowerCase
      Change the case of the value to lower case if set to true.
      private boolean toUpperCase
      Change the case of the value to upper case if set to true.
      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.
      • toUpperCase

        @Parameter(defaultValue="false")
        private boolean toUpperCase
        Change the case of the value to upper case if set to true.
      • toLowerCase

        @Parameter(defaultValue="false")
        private boolean toLowerCase
        Change the case of the value to lower case if set to true.
    • 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)
      • isToUpperCase

        public boolean isToUpperCase()
      • setToUpperCase

        public void setToUpperCase​(boolean toUpperCase)
      • isToLowerCase

        public boolean isToLowerCase()
      • setToLowerCase

        public void setToLowerCase​(boolean toLowerCase)
      • validate

        public void validate()