public class ParameterDefinitionImpl extends Object implements ParameterDefinition, Serializable
Constructor and Description |
---|
ParameterDefinitionImpl(String name,
org.alfresco.service.namespace.QName type,
boolean isMandatory,
String displayLabel)
Constructor
|
ParameterDefinitionImpl(String name,
org.alfresco.service.namespace.QName type,
boolean isMandatory,
String displayLabel,
boolean isMultiValued)
Constructor
|
ParameterDefinitionImpl(String name,
org.alfresco.service.namespace.QName type,
boolean isMandatory,
String displayLabel,
boolean isMultiValued,
String parameterConstraintName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayLabel()
Get the display label of the parameter.
|
String |
getName()
Get the name of the parameter.
|
String |
getParameterConstraintName()
Gets the parameter constraint name, null if none set.
|
org.alfresco.service.namespace.QName |
getType()
Get the type of parameter
|
boolean |
isMandatory()
Indicates whether the parameter is mandatory or not.
|
boolean |
isMultiValued()
Is multi-valued?
|
public ParameterDefinitionImpl(String name, org.alfresco.service.namespace.QName type, boolean isMandatory, String displayLabel)
name
- the name of the parametertype
- the type of the parameterdisplayLabel
- the display labelpublic ParameterDefinitionImpl(String name, org.alfresco.service.namespace.QName type, boolean isMandatory, String displayLabel, boolean isMultiValued)
name
- the name of the parametertype
- the type of the parameterdisplayLabel
- the display labelpublic ParameterDefinitionImpl(String name, org.alfresco.service.namespace.QName type, boolean isMandatory, String displayLabel, boolean isMultiValued, String parameterConstraintName)
name
- Stringtype
- QNameisMandatory
- booleandisplayLabel
- StringisMultiValued
- booleanparameterConstraintName
- Stringpublic String getName()
ParameterDefinition
This is unique and is used to identify the parameter.
getName
in interface ParameterDefinition
ParameterDefinition.getName()
public org.alfresco.service.namespace.QName getType()
ParameterDefinition
getType
in interface ParameterDefinition
ParameterDefinition.getType()
public boolean isMandatory()
ParameterDefinition
If a parameter is mandatory it means that the value can not be null.
isMandatory
in interface ParameterDefinition
ParameterDefinition.isMandatory()
public boolean isMultiValued()
ParameterDefinition
isMultiValued
in interface ParameterDefinition
ParameterDefinition.isMultiValued()
public String getDisplayLabel()
ParameterDefinition
getDisplayLabel
in interface ParameterDefinition
ParameterDefinition.getDisplayLabel()
public String getParameterConstraintName()
ParameterDefinition
getParameterConstraintName
in interface ParameterDefinition
ParameterDefinition.getParameterConstraintName()
Copyright © 2005–2017 Alfresco Software. All rights reserved.