org.camunda.bpm.engine.impl.form.type
Class EnumFormType

java.lang.Object
  extended by org.camunda.bpm.engine.impl.form.type.AbstractFormFieldType
      extended by org.camunda.bpm.engine.impl.form.type.SimpleFormFieldType
          extended by org.camunda.bpm.engine.impl.form.type.EnumFormType
All Implemented Interfaces:
FormType

public class EnumFormType
extends SimpleFormFieldType

Author:
Tom Baeyens

Field Summary
static String TYPE_NAME
           
protected  Map<String,String> values
           
 
Constructor Summary
EnumFormType(Map<String,String> values)
           
 
Method Summary
 Object convertFormValueToModelValue(Object propertyValue)
           
 String convertModelValueToFormValue(Object modelValue)
           
 TypedValue convertValue(TypedValue propertyValue)
           
 Object getInformation(String key)
          Retrieve type specific extra information like the list of values for enum types or the format for date types.
 String getName()
          Name for the form type.
 Map<String,String> getValues()
           
protected  void validateValue(Object value)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.form.type.SimpleFormFieldType
convertToFormValue, convertToModelValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final String TYPE_NAME
See Also:
Constant Field Values

values

protected Map<String,String> values
Constructor Detail

EnumFormType

public EnumFormType(Map<String,String> values)
Method Detail

getName

public String getName()
Description copied from interface: FormType
Name for the form type.

Specified by:
getName in interface FormType
Specified by:
getName in class AbstractFormFieldType

getInformation

public Object getInformation(String key)
Description copied from interface: FormType
Retrieve 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:
getInformation in interface FormType
Overrides:
getInformation in class AbstractFormFieldType

convertValue

public TypedValue convertValue(TypedValue propertyValue)
Specified by:
convertValue in class SimpleFormFieldType

validateValue

protected void validateValue(Object value)

getValues

public Map<String,String> getValues()

convertFormValueToModelValue

public Object convertFormValueToModelValue(Object propertyValue)
Specified by:
convertFormValueToModelValue in class AbstractFormFieldType

convertModelValueToFormValue

public String convertModelValueToFormValue(Object modelValue)
Specified by:
convertModelValueToFormValue in class AbstractFormFieldType


Copyright © 2015 camunda services GmbH. All rights reserved.