Package org.alfresco.repo.action
Class ParameterDefinitionImpl
- java.lang.Object
-
- org.alfresco.repo.action.ParameterDefinitionImpl
-
- All Implemented Interfaces:
Serializable,ParameterDefinition
public class ParameterDefinitionImpl extends Object implements ParameterDefinition, Serializable
Parameter definition implementation class.- Author:
- Roy Wetherall
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterDefinitionImpl(String name, org.alfresco.service.namespace.QName type, boolean isMandatory, String displayLabel)ConstructorParameterDefinitionImpl(String name, org.alfresco.service.namespace.QName type, boolean isMandatory, String displayLabel, boolean isMultiValued)ConstructorParameterDefinitionImpl(String name, org.alfresco.service.namespace.QName type, boolean isMandatory, String displayLabel, boolean isMultiValued, String parameterConstraintName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayLabel()Get the display label of the parameter.StringgetName()Get the name of the parameter.StringgetParameterConstraintName()Gets the parameter constraint name, null if none set.org.alfresco.service.namespace.QNamegetType()Get the type of parameterbooleanisMandatory()Indicates whether the parameter is mandatory or not.booleanisMultiValued()Is multi-valued?
-
-
-
Constructor Detail
-
ParameterDefinitionImpl
public ParameterDefinitionImpl(String name, org.alfresco.service.namespace.QName type, boolean isMandatory, String displayLabel)
Constructor- Parameters:
name- the name of the parametertype- the type of the parameterdisplayLabel- the display label
-
ParameterDefinitionImpl
public ParameterDefinitionImpl(String name, org.alfresco.service.namespace.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, org.alfresco.service.namespace.QName type, boolean isMandatory, String displayLabel, boolean isMultiValued, String parameterConstraintName)
Constructor- Parameters:
name- Stringtype- QNameisMandatory- booleandisplayLabel- StringisMultiValued- booleanparameterConstraintName- String
-
-
Method Detail
-
getName
public String 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:
ParameterDefinition.getName()
-
getType
public org.alfresco.service.namespace.QName getType()
Description copied from interface:ParameterDefinitionGet the type of parameter- Specified by:
getTypein interfaceParameterDefinition- Returns:
- the parameter type qname
- See Also:
ParameterDefinition.getType()
-
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:
ParameterDefinition.isMandatory()
-
isMultiValued
public boolean isMultiValued()
Description copied from interface:ParameterDefinitionIs multi-valued?- Specified by:
isMultiValuedin interfaceParameterDefinition- See Also:
ParameterDefinition.isMultiValued()
-
getDisplayLabel
public String getDisplayLabel()
Description copied from interface:ParameterDefinitionGet the display label of the parameter.- Specified by:
getDisplayLabelin interfaceParameterDefinition- Returns:
- the parameter display label
- See Also:
ParameterDefinition.getDisplayLabel()
-
getParameterConstraintName
public String 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:
ParameterDefinition.getParameterConstraintName()
-
-