Package org.camunda.bpm.engine.impl.form
Class FormFieldImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.FormFieldImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanbusinessKeyprotected java.lang.ObjectdefaultValueprotected java.lang.Stringidprotected java.lang.Stringlabelprotected java.util.Map<java.lang.String,java.lang.String>propertiesprotected FormTypetypeprotected java.util.List<FormFieldValidationConstraint>validationConstraintsprotected TypedValuevalue
-
Constructor Summary
Constructors Constructor Description FormFieldImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetDefaultValue()java.lang.StringgetId()java.lang.StringgetLabel()java.util.Map<java.lang.String,java.lang.String>getProperties()FormTypegetType()java.lang.StringgetTypeName()java.util.List<FormFieldValidationConstraint>getValidationConstraints()TypedValuegetValue()booleanisBusinessKey()voidsetBusinessKey(boolean businessKey)voidsetDefaultValue(java.lang.Object defaultValue)voidsetId(java.lang.String id)voidsetLabel(java.lang.String label)voidsetProperties(java.util.Map<java.lang.String,java.lang.String> properties)voidsetType(FormType type)voidsetValidationConstraints(java.util.List<FormFieldValidationConstraint> validationConstraints)voidsetValue(TypedValue value)
-
-
-
Field Detail
-
businessKey
protected boolean businessKey
-
id
protected java.lang.String id
-
label
protected java.lang.String label
-
type
protected FormType type
-
defaultValue
protected java.lang.Object defaultValue
-
value
protected TypedValue value
-
validationConstraints
protected java.util.List<FormFieldValidationConstraint> validationConstraints
-
properties
protected java.util.Map<java.lang.String,java.lang.String> properties
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getType
public FormType getType()
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeNamein interfaceFormField- Returns:
- the name of the type of this form field
-
setType
public void setType(FormType type)
-
getDefaultValue
public java.lang.Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceFormField- Returns:
- the default value for this form field.
-
getValue
public TypedValue getValue()
-
setDefaultValue
public void setDefaultValue(java.lang.Object defaultValue)
-
setValue
public void setValue(TypedValue value)
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Specified by:
getPropertiesin interfaceFormField- Returns:
- a
Mapof 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.
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
-
getValidationConstraints
public java.util.List<FormFieldValidationConstraint> getValidationConstraints()
- Specified by:
getValidationConstraintsin interfaceFormField- Returns:
- a list of
ValidationConstraints.
-
setValidationConstraints
public void setValidationConstraints(java.util.List<FormFieldValidationConstraint> validationConstraints)
-
isBusinessKey
public boolean isBusinessKey()
- Specified by:
isBusinessKeyin interfaceFormField- Returns:
- true if field is defined as businessKey, false otherwise
-
setBusinessKey
public void setBusinessKey(boolean businessKey)
-
-