Class ConstantBooleanSetterCreator

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

public class ConstantBooleanSetterCreator extends AbstractParameterSetterCreator
Creates a constant setter for boolean values.
Version:
$Revision$ $Date$
Author:
Nick Collier
  • Constructor Details

    • ConstantBooleanSetterCreator

      public ConstantBooleanSetterCreator()
  • 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.