Package zombie.config
Class ConfigOption
java.lang.Object
zombie.config.ConfigOption
- Direct Known Subclasses:
BooleanConfigOption
,DoubleConfigOption
,IntegerConfigOption
,StringConfigOption
public abstract class ConfigOption
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
-
Constructor Summary
Constructors Constructor Description ConfigOption(java.lang.String string)
-
Method Summary
Modifier and Type Method Description java.lang.String
getName()
abstract java.lang.String
getType()
abstract java.lang.Object
getValueAsObject()
abstract java.lang.String
getValueAsString()
abstract boolean
isValidString(java.lang.String string)
abstract void
parse(java.lang.String string)
abstract void
resetToDefault()
abstract void
setDefaultToCurrentValue()
abstract void
setValueFromObject(java.lang.Object object)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
name
protected java.lang.String name
-
-
Constructor Details
-
ConfigOption
public ConfigOption(java.lang.String string)
-
-
Method Details
-
getName
public java.lang.String getName() -
getType
public abstract java.lang.String getType() -
resetToDefault
public abstract void resetToDefault() -
setDefaultToCurrentValue
public abstract void setDefaultToCurrentValue() -
parse
public abstract void parse(java.lang.String string) -
getValueAsString
public abstract java.lang.String getValueAsString() -
setValueFromObject
public abstract void setValueFromObject(java.lang.Object object) -
getValueAsObject
public abstract java.lang.Object getValueAsObject() -
isValidString
public abstract boolean isValidString(java.lang.String string)
-