Package repast.simphony.parameter.xml
Class ObjectListSetterCreator
- java.lang.Object
-
- repast.simphony.parameter.xml.AbstractParameterSetterCreator
-
- repast.simphony.parameter.xml.ObjectListSetterCreator
-
- All Implemented Interfaces:
ParameterSetterCreator
public class ObjectListSetterCreator extends AbstractParameterSetterCreator
Creator for ObjectListParameterSteppers. Parameter lists of non-primitive object types where the user specifies a converter.- Author:
- Nick Collier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class repast.simphony.parameter.xml.AbstractParameterSetterCreator
AbstractParameterSetterCreator.AttributesValueGetter, AbstractParameterSetterCreator.MapValueGetter, AbstractParameterSetterCreator.ValueGetter
-
-
Field Summary
-
Fields inherited from class repast.simphony.parameter.xml.AbstractParameterSetterCreator
attributes, name
-
-
Constructor Summary
Constructors Constructor Description ObjectListSetterCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(ParametersCreator creator)
Adds the parameter to the specified creator based on the attributes added in init.ParameterSetter
createSetter()
Creates a parameter setter from the specified attributesvoid
init(Map<String,String> attributes)
Initializes this ParameterSetterCreator with the specified attributes.void
init(Attributes attributes)
Initializes this ParameterSetterCreator with the specified attributes.
-
-
-
Method Detail
-
addParameter
public void addParameter(ParametersCreator creator)
Adds the parameter to the specified creator based on the attributes added in init.- Parameters:
creator
-
-
init
public void init(Attributes attributes) throws ParameterFormatException
Initializes this ParameterSetterCreator with the specified attributes. Any following calls to addParameter or createSetter will use this attributes.- Specified by:
init
in interfaceParameterSetterCreator
- Overrides:
init
in classAbstractParameterSetterCreator
- Parameters:
attributes
-- Throws:
ParameterFormatException
-
init
public void init(Map<String,String> attributes) throws ParameterFormatException
Initializes this ParameterSetterCreator with the specified attributes. Any following calls to addParameter or createSetter will use this attributes.- Overrides:
init
in classAbstractParameterSetterCreator
- Parameters:
attributes
-- Throws:
ParameterFormatException
-
createSetter
public ParameterSetter createSetter()
Creates a parameter setter from the specified attributes- Returns:
- a parameter setter created from the specified attributes
-
-