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 java.util.List<FormFieldValidationConstraint>
validationConstraints
-
Constructor Summary
Constructors Constructor Description FormPropertyAdapter(FormProperty formProperty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getDefaultValue()
TypedValue
getDefaultValueTyped()
java.lang.String
getId()
java.lang.String
getLabel()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
FormType
getType()
java.lang.String
getTypeName()
java.util.List<FormFieldValidationConstraint>
getValidationConstraints()
TypedValue
getValue()
boolean
isBusinessKey()
-
-
-
Field Detail
-
formProperty
protected FormProperty formProperty
-
validationConstraints
protected java.util.List<FormFieldValidationConstraint> validationConstraints
-
-
Constructor Detail
-
FormPropertyAdapter
public FormPropertyAdapter(FormProperty formProperty)
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getLabel
public java.lang.String getLabel()
-
getType
public FormType getType()
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in interfaceFormField
- Returns:
- the name of the type of this form field
-
getDefaultValue
public java.lang.Object getDefaultValue()
- Specified by:
getDefaultValue
in interfaceFormField
- Returns:
- the default value for this form field.
-
getValidationConstraints
public java.util.List<FormFieldValidationConstraint> getValidationConstraints()
- Specified by:
getValidationConstraints
in interfaceFormField
- Returns:
- a list of
ValidationConstraints
.
-
getProperties
public java.util.Map<java.lang.String,java.lang.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()
-
-