Class AttributeConfigurable
java.lang.Object
com.codingchili.core.configuration.Attributes
com.codingchili.core.configuration.AttributeConfigurable
- All Implemented Interfaces:
Configurable
,Serializable
Simple configurable that maps to a json object.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class com.codingchili.core.configuration.Attributes
attributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
Get the path of a loaded configuration file.Set the path of a configurable to allow saving to the same location it was loaded from.Methods inherited from class com.codingchili.core.configuration.Attributes
clear, getAttributes, getBool, getDouble, getInt, getObject, getString, put, remove, setAttributes, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.codingchili.core.configuration.Configurable
save, serialize
-
Constructor Details
-
AttributeConfigurable
public AttributeConfigurable()
-
-
Method Details
-
getPath
Description copied from interface:Configurable
Get the path of a loaded configuration file.- Specified by:
getPath
in interfaceConfigurable
- Returns:
- the directory path to the configuration file.
-
setPath
Description copied from interface:Configurable
Set the path of a configurable to allow saving to the same location it was loaded from.- Specified by:
setPath
in interfaceConfigurable
- Parameters:
path
- the path to the configurable on disk for reloading and saving.- Returns:
- fluent
-