Package org.metagene.genestrip
Class GSConfigKey.UpdateScopeConfigParamInfo
java.lang.Object
org.metagene.genestrip.make.ConfigParamInfo<GSConfigKey.UpdateScope>
org.metagene.genestrip.GSConfigKey.UpdateScopeConfigParamInfo
- Enclosing class:
- GSConfigKey
public static class GSConfigKey.UpdateScopeConfigParamInfo
extends ConfigParamInfo<GSConfigKey.UpdateScope>
Parameter info for
GSConfigKey.UpdateScope.-
Nested Class Summary
Nested classes/interfaces inherited from class org.metagene.genestrip.make.ConfigParamInfo
ConfigParamInfo.BooleanConfigParamInfo, ConfigParamInfo.DoubleConfigParamInfo, ConfigParamInfo.IntConfigParamInfo, ConfigParamInfo.ListConfigParamInfo<E>, ConfigParamInfo.LongConfigParamInfo, ConfigParamInfo.StringConfigParamInfo -
Constructor Summary
ConstructorsConstructorDescriptionUpdateScopeConfigParamInfo(GSConfigKey.UpdateScope defaultValue) Creates parameter info for the scope of the least-common-ancestor update. -
Method Summary
Modifier and TypeMethodDescriptionprotected GSConfigKey.UpdateScopefromString(String s) Parses a value from the given string, returningnullif it cannot be parsed.Returns the default value rendered for Markdown documentation.Returns a Markdown description of the allowed range; empty by default.Returns a short name of the value type (e.g.booleanReturns whether the given value is within the allowed range; by default any non-nullvalue.Methods inherited from class org.metagene.genestrip.make.ConfigParamInfo
defaultValue, isInRange, isValid
-
Constructor Details
-
UpdateScopeConfigParamInfo
Creates parameter info for the scope of the least-common-ancestor update.- Parameters:
defaultValue- the default scope
-
-
Method Details
-
isValueInRange
Description copied from class:ConfigParamInfoReturns whether the given value is within the allowed range; by default any non-nullvalue.- Overrides:
isValueInRangein classConfigParamInfo<GSConfigKey.UpdateScope>- Parameters:
o- the value to check- Returns:
trueif the value is within the allowed range
-
fromString
Description copied from class:ConfigParamInfoParses a value from the given string, returningnullif it cannot be parsed.- Specified by:
fromStringin classConfigParamInfo<GSConfigKey.UpdateScope>- Parameters:
s- the string to parse- Returns:
- the parsed value, or
nullif it cannot be parsed
-
getMDDefaultValue
Description copied from class:ConfigParamInfoReturns the default value rendered for Markdown documentation.- Overrides:
getMDDefaultValuein classConfigParamInfo<GSConfigKey.UpdateScope>- Returns:
- the default value as a Markdown string
-
getMDRangeDescriptor
Description copied from class:ConfigParamInfoReturns a Markdown description of the allowed range; empty by default.- Overrides:
getMDRangeDescriptorin classConfigParamInfo<GSConfigKey.UpdateScope>- Returns:
- the range description as a Markdown string
-
getTypeDescriptor
Description copied from class:ConfigParamInfoReturns a short name of the value type (e.g."int"); empty by default.- Overrides:
getTypeDescriptorin classConfigParamInfo<GSConfigKey.UpdateScope>- Returns:
- the value type descriptor
-