Class DateFormType
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.type.AbstractFormFieldType
-
- org.camunda.bpm.engine.impl.form.type.DateFormType
-
- All Implemented Interfaces:
FormType
public class DateFormType extends AbstractFormFieldType
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected DateFormatdateFormatprotected StringdatePatternstatic StringTYPE_NAME
-
Constructor Summary
Constructors Constructor Description DateFormType(String datePattern)
-
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.TypedValueconvertToFormValue(org.camunda.bpm.engine.variable.value.TypedValue modelValue)org.camunda.bpm.engine.variable.value.TypedValueconvertToModelValue(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.
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
datePattern
protected String datePattern
-
dateFormat
protected DateFormat dateFormat
-
-
Constructor Detail
-
DateFormType
public DateFormType(String datePattern)
-
-
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
-
convertToModelValue
public org.camunda.bpm.engine.variable.value.TypedValue convertToModelValue(org.camunda.bpm.engine.variable.value.TypedValue propertyValue)
- Specified by:
convertToModelValuein classAbstractFormFieldType
-
convertToFormValue
public org.camunda.bpm.engine.variable.value.TypedValue convertToFormValue(org.camunda.bpm.engine.variable.value.TypedValue modelValue)
- Specified by:
convertToFormValuein classAbstractFormFieldType
-
convertFormValueToModelValue
public Object convertFormValueToModelValue(Object propertyValue)
- Specified by:
convertFormValueToModelValuein classAbstractFormFieldType
-
convertModelValueToFormValue
public String convertModelValueToFormValue(Object modelValue)
- Specified by:
convertModelValueToFormValuein classAbstractFormFieldType
-
-