|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.surethingies.properties.ParameterFactory
public class ParameterFactory
Method Summary | |
---|---|
static void |
addDefaultParameters(String group,
SortedSet<Parameter> params)
Add a Parameter which could be used to translate Settings in TypedParameters |
void |
addParameter(TypedParameter parameter)
Add a TypedParameters |
void |
addParameters(Set<TypedParameter> typedParameters)
Add a List of TypedParameters |
List<TypedParameter> |
get(Parameter parameter)
|
TypedParameter |
get(Parameter parameter,
String identifier)
|
List<TypedParameter> |
get(String group)
Get a Parameter identified |
List<TypedParameter> |
get(String group,
String identifier)
Get a Parameter identified |
List<String> |
getGroups()
|
static void |
init(File propertyFile)
|
static ParameterFactory |
instance()
|
void |
loadProperties()
Load all Properties from File properties into this Factory |
void |
loadProperties(File propertyFile)
Load all Properties from File properties into this Factory |
protected Parameters |
parameters()
|
static void |
reset()
|
void |
saveProperties()
|
void |
saveProperties(File propertyFile)
Safe the current Properties to the given File |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ParameterFactory instance()
public static void init(File propertyFile)
public static void reset()
public List<TypedParameter> get(String group)
group
- by the Settings group
public List<TypedParameter> get(String group, String identifier)
group
- by the Settings groupidentifier
- and a unique Identifier
public List<TypedParameter> get(Parameter parameter)
public TypedParameter get(Parameter parameter, String identifier)
public List<String> getGroups()
public static void addDefaultParameters(String group, SortedSet<Parameter> params)
group
- The Property Groupparams
- public void addParameter(TypedParameter parameter)
parameter
- public void addParameters(Set<TypedParameter> typedParameters)
typedParameters
- public void loadProperties() throws Exception
propertyFile
- the File to load the Properties from
Exception
public void loadProperties(File propertyFile) throws Exception
propertyFile
- the File to load the Properties from
Exception
public void saveProperties() throws Exception
Exception
public void saveProperties(File propertyFile) throws Exception
propertyFile
- the File to safe the Properties to
Exception
- Errors while safingprotected Parameters parameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |