Last update: 2011-06-23

org.proteios.core
Class StringParameterType

java.lang.Object
  extended by org.proteios.core.ParameterType<String>
      extended by org.proteios.core.StringParameterType

public class StringParameterType
extends ParameterType<String>

This class represent a parameter type that is a string. This type defines a max length for the text.

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

Constructor Summary
StringParameterType()
          Create a new string parameter type, setting the max length to 255 and nulls are allowed.
StringParameterType(Integer maxLength, String defaultValue, boolean notNull)
          Create a new string parameter type.
StringParameterType(Integer maxLength, String defaultValue, boolean notNull, int multiplicity, int width, int height, List<String> items)
           
 
Method Summary
 Integer getMaxLength()
          Get the max length 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

StringParameterType

public StringParameterType()
Create a new string parameter type, setting the max length to 255 and nulls are allowed.


StringParameterType

public StringParameterType(Integer maxLength,
                           String defaultValue,
                           boolean notNull)
Create a new string parameter type.

Parameters:
maxLength - The maximum length of the string that is allowed or null to allow as long as possible
notNull - FALSE if nulls values are allowed, TRUE otherwise

StringParameterType

public StringParameterType(Integer maxLength,
                           String defaultValue,
                           boolean notNull,
                           int multiplicity,
                           int width,
                           int height,
                           List<String> items)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getMaxLength

public Integer getMaxLength()
Get the max length of the parameter.

Returns:
Max length or null if none is set.

Last update: 2011-06-23