OpenTSDB/opentsdb · TreeRule.java
java logo
public void setRegex(String regex) {
    if (!this.regex.equals(regex)) {
      changed.put("regex", true);
      this.regex = regex;
      if (regex != null && !regex.isEmpty()) {
        this.compiled_regex = Pattern.compile(regex);
      } else {
        this.compiled_regex = null;
      }
    }
  }
Similar code snippets
1.
RogerParkinson/madura-objects-parent · PropertyMetadataImpl.java
Match rating: 79.15% · See similar code snippets
java logo
public void setRegex(String regex) {
		m_regex = regex;
		m_regexPattern = java.util.regex.Pattern.compile(regex);
	}
2.
dbracewell/mango · Regex.java
Match rating: 71.38% · See similar code snippets
java logo
public Regex then(Regex regex) {
      if (regex == null) {
         return this;
      }
      return re(this.pattern + regex.pattern);
   }
3.
michael-rapp/AndroidMaterialValidation · RegexConstraint.java
Match rating: 71.22% · See similar code snippets
java logo
public final void setRegex(@NonNull final Pattern regex) {
        Condition.INSTANCE.ensureNotNull(regex, "The regular expression may not be null");
        this.regex = regex;
    }
4.
jenkinsci/sectioned-view-plugin · SectionedViewSection.java
Match rating: 67.93% · See similar code snippets
java logo
public void setIncludeRegex(String regex) throws PatternSyntaxException {
        includeRegex = regex;
        includePattern = Pattern.compile(regex);
    }
5.
java logo
public void setPattern(Tag tag, String regex) {
		if (Strings.isNullOrEmpty(regex)) {
			this.rawPatterns.remove(tag);
			this.compiledPatterns.remove(tag);
		} else {
			this.rawPatterns.put(tag, regex);
			this.compiledPatterns.put(tag, Pattern.compile("^\\s*" + regex, PATTERN_COMPILE_OPTIONS)); //$NON-NLS-1$
		}
	}
6.
uniform-java/uniform · RegexValidator.java
Match rating: 60.3% · See similar code snippets
java logo
public void setRegexPattern(String regexPattern) {
        if (regexPattern == null) {
            throw new IllegalArgumentException("Regex pattern cannot be null");
        }
        this.regexPattern = Pattern.compile(regexPattern);
    }
7.
nutzam/nutz · JsonFormat.java
Match rating: 59.27% · See similar code snippets
java logo
public JsonFormat setActived(String regex) {
        put(Function.actived, Pattern.compile(regex));
        return this;
    }
8.
dbracewell/mango · Regex.java
Match rating: 56.88% · See similar code snippets
java logo
public Regex and(@NonNull Regex other) {
      if (other.pattern.length() > 0) {
         return re(this.pattern + "&&" + other.pattern);
      }
      return this;
   }
9.
kuali/ojb-1.0.4 · DBTable.java
Match rating: 56.33% · See similar code snippets
java logo
public void disableClassesWithRegex(org.apache.regexp.RE aRegexp)
  {
    if (aRegexp.match(this.getClassName())) this.setEnabled(false);
  }
10.
themodernway/themodernway-server-core · CacheControlHeaderInjector.java
Match rating: 54.92% · See similar code snippets
java logo
public void setDontCacheRegex(final String regex)
    {
        m_dont_cache_regex = StringOps.toTrimOrNull(regex);

        if ((null != m_dont_cache_regex) && (logger().isInfoEnabled()))
        {
            logger().info(LoggingOps.THE_MODERN_WAY_MARKER, String.format("CacheControlHeaderInjector().setDontCacheRegex(%s)", m_dont_cache_regex));
        }
    }