Class EnumFormType
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.type.AbstractFormFieldType
-
- org.camunda.bpm.engine.impl.form.type.SimpleFormFieldType
-
- org.camunda.bpm.engine.impl.form.type.EnumFormType
-
- All Implemented Interfaces:
FormType
public class EnumFormType extends SimpleFormFieldType
- Author:
- Tom Baeyens
-
-
Constructor Summary
Constructors Constructor Description EnumFormType(Map<String,String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectconvertFormValueToModelValue(Object propertyValue)StringconvertModelValueToFormValue(Object modelValue)org.camunda.bpm.engine.variable.value.TypedValueconvertValue(org.camunda.bpm.engine.variable.value.TypedValue propertyValue)ObjectgetInformation(String key)Retrieve type specific extra information like the list of values for enum types or the format for date types.StringgetName()Name for the form type.Map<String,String>getValues()protected voidvalidateValue(Object value)-
Methods inherited from class org.camunda.bpm.engine.impl.form.type.SimpleFormFieldType
convertToFormValue, convertToModelValue
-
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:FormTypeName for the form type.- Specified by:
getNamein interfaceFormType- Specified by:
getNamein classAbstractFormFieldType
-
getInformation
public Object getInformation(String key)
Description copied from interface:FormTypeRetrieve type specific extra information like the list of values for enum types or the format for date types. Look in the userguide for which extra information keys each type provides and what return type they give.- Specified by:
getInformationin interfaceFormType- Overrides:
getInformationin classAbstractFormFieldType
-
convertValue
public org.camunda.bpm.engine.variable.value.TypedValue convertValue(org.camunda.bpm.engine.variable.value.TypedValue propertyValue)
- Specified by:
convertValuein classSimpleFormFieldType
-
validateValue
protected void validateValue(Object value)
-
convertFormValueToModelValue
public Object convertFormValueToModelValue(Object propertyValue)
- Specified by:
convertFormValueToModelValuein classAbstractFormFieldType
-
convertModelValueToFormValue
public String convertModelValueToFormValue(Object modelValue)
- Specified by:
convertModelValueToFormValuein classAbstractFormFieldType
-
-