Package org.alfresco.repo.action
Class ParameterDefinitionImpl
java.lang.Object
org.alfresco.repo.action.ParameterDefinitionImpl
- All Implemented Interfaces:
Serializable,ParameterDefinition
Parameter definition implementation class.
- Author:
- Roy Wetherall
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParameterDefinitionImpl(String name, QName type, boolean isMandatory, String displayLabel) ConstructorParameterDefinitionImpl(String name, QName type, boolean isMandatory, String displayLabel, boolean isMultiValued) ConstructorParameterDefinitionImpl(String name, QName type, boolean isMandatory, String displayLabel, boolean isMultiValued, String parameterConstraintName) Constructor -
Method Summary
-
Constructor Details
-
ParameterDefinitionImpl
Constructor- Parameters:
name- the name of the parametertype- the type of the parameterdisplayLabel- the display label
-
ParameterDefinitionImpl
public ParameterDefinitionImpl(String name, QName type, boolean isMandatory, String displayLabel, boolean isMultiValued) Constructor- Parameters:
name- the name of the parametertype- the type of the parameterdisplayLabel- the display label
-
ParameterDefinitionImpl
public ParameterDefinitionImpl(String name, QName type, boolean isMandatory, String displayLabel, boolean isMultiValued, String parameterConstraintName) Constructor- Parameters:
name- Stringtype- QNameisMandatory- booleandisplayLabel- StringisMultiValued- booleanparameterConstraintName- String
-
-
Method Details
-
getName
Description copied from interface:ParameterDefinitionGet the name of the parameter.This is unique and is used to identify the parameter.
- Specified by:
getNamein interfaceParameterDefinition- Returns:
- the parameter name
- See Also:
-
getType
Description copied from interface:ParameterDefinitionGet the type of parameter- Specified by:
getTypein interfaceParameterDefinition- Returns:
- the parameter type qname
- See Also:
-
isMandatory
public boolean isMandatory()Description copied from interface:ParameterDefinitionIndicates whether the parameter is mandatory or not.If a parameter is mandatory it means that the value can not be null.
- Specified by:
isMandatoryin interfaceParameterDefinition- Returns:
- true if the parameter is mandatory, false otherwise
- See Also:
-
isMultiValued
public boolean isMultiValued()Description copied from interface:ParameterDefinitionIs multi-valued?- Specified by:
isMultiValuedin interfaceParameterDefinition- See Also:
-
getDisplayLabel
Description copied from interface:ParameterDefinitionGet the display label of the parameter.- Specified by:
getDisplayLabelin interfaceParameterDefinition- Returns:
- the parameter display label
- See Also:
-
getParameterConstraintName
Description copied from interface:ParameterDefinitionGets the parameter constraint name, null if none set.- Specified by:
getParameterConstraintNamein interfaceParameterDefinition- Returns:
- the parameter constraint name
- See Also:
-