Class FormPropertyAdapter
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.engine.FormPropertyAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected FormProperty
formProperty
protected List<FormFieldValidationConstraint>
validationConstraints
-
Constructor Summary
Constructors Constructor Description FormPropertyAdapter(FormProperty formProperty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getDefaultValue()
TypedValue
getDefaultValueTyped()
String
getId()
String
getLabel()
Map<String,String>
getProperties()
FormType
getType()
String
getTypeName()
List<FormFieldValidationConstraint>
getValidationConstraints()
TypedValue
getValue()
boolean
isBusinessKey()
-
-
-
Field Detail
-
formProperty
protected FormProperty formProperty
-
validationConstraints
protected List<FormFieldValidationConstraint> validationConstraints
-
-
Constructor Detail
-
FormPropertyAdapter
public FormPropertyAdapter(FormProperty formProperty)
-
-
Method Detail
-
getId
public String getId()
-
getLabel
public String getLabel()
-
getType
public FormType getType()
-
getTypeName
public String getTypeName()
- Specified by:
getTypeName
in interfaceFormField
- Returns:
- the name of the type of this form field
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValue
in interfaceFormField
- Returns:
- the default value for this form field.
-
getValidationConstraints
public List<FormFieldValidationConstraint> getValidationConstraints()
- Specified by:
getValidationConstraints
in interfaceFormField
- Returns:
- a list of
ValidationConstraints
.
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getProperties
in interfaceFormField
- Returns:
- a
Map
of additional properties. This map may be used for adding additional configuration to a form field. An example may be layout hints such as the size of the rendered form field or information about an icon to prepend or append to the rendered form field.
-
isBusinessKey
public boolean isBusinessKey()
- Specified by:
isBusinessKey
in interfaceFormField
- Returns:
- true if field is defined as businessKey, false otherwise
-
getDefaultValueTyped
public TypedValue getDefaultValueTyped()
-
getValue
public TypedValue getValue()
-
-