T
- the type of the option.Check
instead.@Deprecated public abstract class AbstractOptionCheck<T extends Enum<T>> extends Check
Enum
. The logic to convert from a string
representation to the Enum
is to String.trim()
the string
and convert using String.toUpperCase()
and then look up using
Enum.valueOf(java.lang.Class<T>, java.lang.String)
.Modifier and Type | Field and Description |
---|---|
protected static String |
SEMICOLON
Deprecated.
Semicolon literal.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractOptionCheck(T literalDefault,
Class<T> optionClass)
Deprecated.
Creates a new
AbstractOptionCheck instance. |
Modifier and Type | Method and Description |
---|---|
T |
getAbstractOption()
Deprecated.
Gets AbstractOption set.
|
void |
setOption(String optionStr)
Deprecated.
Set the option to enforce.
|
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 static final String SEMICOLON
protected AbstractOptionCheck(T literalDefault, Class<T> optionClass)
AbstractOptionCheck
instance.literalDefault
- the default option.optionClass
- the class for the option. Required due to a quirk
in the Java language.public void setOption(String optionStr)
optionStr
- string to decode option fromorg.apache.commons.beanutils.ConversionException
- if unable to decodepublic T getAbstractOption()
AbstractOption
setCopyright © 2001-2016. All Rights Reserved.