Package net.sf.basedb.core
Class PasswordParameterType
- java.lang.Object
-
- net.sf.basedb.core.ParameterType<String>
-
- net.sf.basedb.core.StringParameterType
-
- net.sf.basedb.core.PasswordParameterType
-
public class PasswordParameterType extends StringParameterType
This class represent a parameter type that is a password (or any other type of masked string). Max length can not be longer than 255, and multiple values are not supported.- Since:
- 3.7
- Author:
- Nicklas
-
-
Constructor Summary
Constructors Constructor Description PasswordParameterType()
Create a new password parameter type, setting the max length to 255 and nulls are allowed.PasswordParameterType(Integer maxLength, boolean notNull)
Create a new password parameter type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMasked()
Should this parameter be masked in the GUI?(package private) ParameterValueData<String>
newParameterValueData()
Create a newStringParameterValueData
object.String
toString()
-
Methods inherited from class net.sf.basedb.core.StringParameterType
getMaxLength, validateValue
-
Methods inherited from class net.sf.basedb.core.ParameterType
getDefaultValue, getEnumeration, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getValueType, getWidth, isEnumeration, validate, validate
-
-
-
-
Constructor Detail
-
PasswordParameterType
public PasswordParameterType()
Create a new password parameter type, setting the max length to 255 and nulls are allowed.
-
PasswordParameterType
public PasswordParameterType(Integer maxLength, boolean notNull)
Create a new password parameter type.- Parameters:
maxLength
- The maximum length of the string that is allowed or null to allow as long as possiblenotNull
- FALSE if nulls values are allowed, TRUE otherwise
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classStringParameterType
-
newParameterValueData
ParameterValueData<String> newParameterValueData()
Create a newStringParameterValueData
object.- Overrides:
newParameterValueData
in classStringParameterType
-
isMasked
public boolean isMasked()
Description copied from class:ParameterType
Should this parameter be masked in the GUI?- Overrides:
isMasked
in classParameterType<String>
- Returns:
- FALSE, unless overridden by subclass
-
-