T - the type of the option.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).| Constructor and Description |
|---|
AbstractOptionCheck(T aDefault,
Class<T> aOptionClass)
Creates a new
AbstractOptionCheck instance. |
| Modifier and Type | Method and Description |
|---|---|
T |
getAbstractOption() |
void |
setOption(String aOption)
Set the option to enforce.
|
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitTokengetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic void setOption(String aOption) throws org.apache.commons.beanutils.ConversionException
aOption - string to decode option fromorg.apache.commons.beanutils.ConversionException - if unable to decodepublic T getAbstractOption()
AbstractOption setCopyright © 2001-2012. All Rights Reserved.