AbstractCheck
instead.@Deprecated public abstract class AbstractFormatCheck extends AbstractCheck
Abstract class for checks that verify strings using a
regular expression
. It
provides support for setting the regular
expression using the property name format
.
Modifier | Constructor and Description |
---|---|
protected |
AbstractFormatCheck(String defaultFormat)
Deprecated.
Creates a new
AbstractFormatCheck instance. |
protected |
AbstractFormatCheck(String defaultFormat,
int compileFlags)
Deprecated.
Creates a new
AbstractFormatCheck instance. |
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
Deprecated.
Gets the regexp format.
|
Pattern |
getRegexp()
Deprecated.
Gets the regexp.
|
void |
setCompileFlags(int compileFlags)
Deprecated.
Set the compile flags for the regular expression.
|
void |
setFormat(String format)
Deprecated.
Set the format to the specified regular expression.
|
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
protected AbstractFormatCheck(String defaultFormat)
AbstractFormatCheck
instance. Defaults the
compile flag to 0 (the default).defaultFormat
- default formatorg.apache.commons.beanutils.ConversionException
- unable to parse defaultFormatprotected AbstractFormatCheck(String defaultFormat, int compileFlags)
AbstractFormatCheck
instance.defaultFormat
- default formatcompileFlags
- the Pattern flags to compile the regexp with.
See Pattern.compile(String, int)
org.apache.commons.beanutils.ConversionException
- unable to parse defaultFormatpublic final void setFormat(String format)
format
- a String
valueorg.apache.commons.beanutils.ConversionException
- unable to parse formatpublic final void setCompileFlags(int compileFlags)
compileFlags
- the compile flags to use.public final Pattern getRegexp()
Copyright © 2001-2017. All Rights Reserved.