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
Constructors -
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, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.codingchili.core.configuration.Configurable
save, serialize
-
Constructor Details
-
AttributeConfigurable
public AttributeConfigurable()
-
-
Method Details
-
getPath
Description copied from interface:ConfigurableGet the path of a loaded configuration file.- Specified by:
getPathin interfaceConfigurable- Returns:
- the directory path to the configuration file.
-
setPath
Description copied from interface:ConfigurableSet the path of a configurable to allow saving to the same location it was loaded from.- Specified by:
setPathin interfaceConfigurable- Parameters:
path- the path to the configurable on disk for reloading and saving.- Returns:
- fluent
-