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

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

public class DateFormType
extends AbstractFormFieldType

Author:
Tom Baeyens

Field Summary
protected  DateFormat dateFormat
           
protected  String datePattern
           
static String TYPE_NAME
           
 
Constructor Summary
DateFormType(String datePattern)
           
 
Method Summary
 Object convertFormValueToModelValue(Object propertyValue)
           
 String convertModelValueToFormValue(Object modelValue)
           
 org.camunda.bpm.engine.variable.value.TypedValue convertToFormValue(org.camunda.bpm.engine.variable.value.TypedValue modelValue)
           
 org.camunda.bpm.engine.variable.value.TypedValue convertToModelValue(org.camunda.bpm.engine.variable.value.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.
 
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

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: 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

convertToModelValue

public org.camunda.bpm.engine.variable.value.TypedValue convertToModelValue(org.camunda.bpm.engine.variable.value.TypedValue propertyValue)
Specified by:
convertToModelValue in class AbstractFormFieldType

convertToFormValue

public org.camunda.bpm.engine.variable.value.TypedValue convertToFormValue(org.camunda.bpm.engine.variable.value.TypedValue modelValue)
Specified by:
convertToFormValue in class AbstractFormFieldType

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.