Last update: 2011-06-23

org.proteios.core
Class IntegerParameterType

java.lang.Object
  extended by org.proteios.core.ParameterType<Integer>
      extended by org.proteios.core.IntegerParameterType

public class IntegerParameterType
extends ParameterType<Integer>

This class represent a parameter type that is an integer. This type defines a lower limit and an upper limit for the range of allowed values.

Version:
2.0
Author:
Samuel, Nicklas
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $

Constructor Summary
IntegerParameterType()
          Create a new integer parameter type, without any limits and allowing null values.
IntegerParameterType(Integer lowerLimit, Integer upperLimit, Integer defaultValue, boolean notNull)
          Create a new integer parameter type.
IntegerParameterType(Integer lowerLimit, Integer upperLimit, Integer defaultValue, boolean notNull, int multiplicity, int width, int height, List<Integer> items)
           
 
Method Summary
 Integer getLowerLimit()
          Get the lowest valid value of the parameter.
 Integer getUpperLimit()
          Get the highest valid value of the parameter.
 String toString()
           
 
Methods inherited from class org.proteios.core.ParameterType
getDefaultValue, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getWidth, isEnumeration, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerParameterType

public IntegerParameterType()
Create a new integer parameter type, without any limits and allowing null values.


IntegerParameterType

public IntegerParameterType(Integer lowerLimit,
                            Integer upperLimit,
                            Integer defaultValue,
                            boolean notNull)
Create a new integer parameter type.

Parameters:
lowerLimit - The lowest allowed value, or null to have no limit
upperLimit - The highest allowed value, or null to have no limit
notNull - FALSE if nulls values are allowed, TRUE otherwise

IntegerParameterType

public IntegerParameterType(Integer lowerLimit,
                            Integer upperLimit,
                            Integer defaultValue,
                            boolean notNull,
                            int multiplicity,
                            int width,
                            int height,
                            List<Integer> items)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getLowerLimit

public Integer getLowerLimit()
Get the lowest valid value of the parameter.

Returns:
Lowest valid value or null if none is set.

getUpperLimit

public Integer getUpperLimit()
Get the highest valid value of the parameter.

Returns:
Highest valid value or null if none is set.

Last update: 2011-06-23