DataFilter
public class RegexFilter extends JSONDataFilter
DataFilter.Abort
Modifier and Type | Field | Description |
---|---|---|
protected java.util.regex.Pattern[] |
_patterns |
|
protected java.lang.String[] |
_replaces |
|
protected java.lang.String[] |
_templates |
Constructor | Description |
---|---|
RegexFilter() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
checkPatterns() |
|
protected java.lang.Object |
filterString(java.lang.String string) |
|
void |
init(java.lang.Object init) |
Assumes the init object is an Array of 2 element Arrays:
[regex,replacement].
|
filter, filterArray, filterBoolean, filterMap, filterNumber, filterObject
protected java.lang.String[] _templates
protected java.lang.String[] _replaces
protected transient java.util.regex.Pattern[] _patterns
public void init(java.lang.Object init)
init
in class JSONDataFilter
protected void checkPatterns()
protected java.lang.Object filterString(java.lang.String string)
filterString
in class JSONDataFilter
Copyright © 2008–2017 The CometD Project. All rights reserved.