public abstract class Property<T>
extends java.lang.Object
Property is the abstract class that represents a generic Property of type T.| Constructor and Description |
|---|
Property(int id)
Constructor of Property.
|
| Modifier and Type | Method and Description |
|---|---|
static Property |
findPropertybyId(java.util.ArrayList<Property> list,
int id)
Deprecated.
no more to be used
|
T |
get()
Gets the current value of the Property.
|
int |
getId()
Gets the integer value of the unique identifier
PropertyID of the property. |
java.lang.String |
getName()
Gets the name of the unique identifier
PropertyID of the property. |
PropertyType |
getType()
Gets the type of the Property.
|
boolean |
isSupported()
Returns whether a Property is supported or not.
|
int |
load(PropertyGetter from)
Deprecated.
no more to be used
|
static int |
loadlist(PropertyGetter from,
java.util.ArrayList list)
Deprecated.
no more to be used
|
int |
set(T value)
Sets the value of the property.
|
int |
store(PropertyEditor to)
Deprecated.
no more to be used
|
static int |
storelist(PropertyEditor to,
java.util.ArrayList list)
Deprecated.
no more to be used
|
public Property(int id)
id - int a corresponding numeric ID.public T get()
ConfigException - when the property is not supported, when exceptions are enabled through the ErrorManager singleton.public int set(T value)
ConfigurationManager.commit() of ConfigurationManager must be called.value - The value to be set.int ConfigException.SUCCESS in case of success
otherwise a possible error code, matching one of the ConfigException error constants.ConfigException - when the property is not supported, when exceptions are enabled through the ErrorManager singleton.public PropertyType getType()
PropertyTypepublic java.lang.String getName()
PropertyID of the property.public boolean isSupported()
boolean value representing whether the Property is supported or not.public int getId()
PropertyID of the property.int The PropertyID, as a number.@Deprecated public int load(PropertyGetter from)
from - The PropertyGetter called to synchronize the current values.int ConfigException.SUCCESS in case of success,
otherwise a possible error code, matching one of the ConfigException error constants.ConfigException - in case of error, when exceptions are enabled through the ErrorManager singleton.@Deprecated public int store(PropertyEditor to)
to - The PropertyEditor in charge of applying the desired values.int ConfigException.SUCCESS in case of success,
otherwise a possible error code, matching one of the ConfigException error constants.ConfigException - in case of error, when exceptions are enabled through the ErrorManager singleton.@Deprecated public static Property findPropertybyId(java.util.ArrayList<Property> list, int id)
list - The ArrayList containing all the Properties.id - The int representing the ID that should be found.@Deprecated public static int storelist(PropertyEditor to, java.util.ArrayList list)
to - The PropertyEditor used to store all the values.list - The ArrayList containing the Properties.int ConfigException.SUCCESS in case of success,
otherwise a possible error code, matching one of the ConfigException error constants.ConfigException - in case of error, when exceptions are enabled through the ErrorManager singleton.@Deprecated public static int loadlist(PropertyGetter from, java.util.ArrayList list)
from - The PropertyGetter used to sync all the active values associated to the Properties.list - The ArrayList containing the Properties to be loaded.int ConfigException.SUCCESS in case of success,
otherwise a possible error code, matching one of the ConfigException error constants.ConfigException - in case of error, when exceptions are enabled through the ErrorManager singleton.