Class ConstantObjectSetterCreator

java.lang.Object
repast.simphony.parameter.xml.AbstractParameterSetterCreator
repast.simphony.parameter.xml.ConstantObjectSetterCreator
All Implemented Interfaces:
ParameterSetterCreator

public class ConstantObjectSetterCreator extends AbstractParameterSetterCreator
Creates a constant setter for custom types using a StringConverter.
Author:
Nick Collier
  • Constructor Details

    • ConstantObjectSetterCreator

      public ConstantObjectSetterCreator()
  • Method Details

    • 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 interface ParameterSetterCreator
      Overrides:
      init in class AbstractParameterSetterCreator
      Parameters:
      attributes -
      Throws:
      ParameterFormatException
    • addParameter

      public void addParameter(ParametersCreator creator)
      Adds the parameter to the specified creator based on the attributes added in init.
      Parameters:
      creator -
    • createSetter

      public ParameterSetter createSetter()
      Creates a parameter setter from the attributes added in init.
      Returns:
      a parameter setter from the attributes added in init.