|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.algorithm.Parameter
public class Parameter
Defines a parameter as an association between a String and an Object.
Nested Class Summary | |
---|---|
static class |
Parameter.ParametersProcessor
Defines the object which will process parameters. |
Constructor Summary | |
---|---|
Parameter(String key,
Object value)
Build a new parameter. |
Method Summary | ||
---|---|---|
static Properties |
exportParameters(Object env)
|
|
String |
getKey()
Get the key of this parameter. |
|
|
getValue()
Get the value of this parameter. |
|
static Parameter |
parameter(String key,
Object value)
Shortcut for "new Parameter(key,value)". |
|
static void |
processParameters(Object env,
InputStream in,
boolean xml)
|
|
static void |
processParameters(Object env,
Parameter... params)
Process parameters. |
|
static void |
processParameters(Object env,
Properties prop)
|
|
static void |
processParameters(Object env,
String propertiesPath)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parameter(String key, Object value)
key
- value
- Method Detail |
---|
public static final Parameter parameter(String key, Object value)
key
- key of the parametervalue
- value of the parameter
public static void processParameters(Object env, Parameter... params) throws InvalidParameterException, MissingParameterException
env
- object to set attributesparams
- parameters
InvalidParameterException
MissingParameterException
public static void processParameters(Object env, Properties prop) throws InvalidParameterException, MissingParameterException
InvalidParameterException
MissingParameterException
public static void processParameters(Object env, String propertiesPath) throws InvalidParameterException, MissingParameterException, InvalidPropertiesFormatException, IOException
InvalidParameterException
MissingParameterException
InvalidPropertiesFormatException
IOException
public static void processParameters(Object env, InputStream in, boolean xml) throws InvalidParameterException, MissingParameterException, InvalidPropertiesFormatException, IOException
InvalidParameterException
MissingParameterException
InvalidPropertiesFormatException
IOException
public static Properties exportParameters(Object env)
public String getKey()
public <T> T getValue()
T
- type asked for the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |