Class SimpleStructureDefinition
- java.lang.Object
-
- org.activiti.engine.impl.bpmn.data.SimpleStructureDefinition
-
- All Implemented Interfaces:
FieldBaseStructureDefinition,StructureDefinition
public class SimpleStructureDefinition extends java.lang.Object implements FieldBaseStructureDefinition
Represents a simple in memory structure
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>fieldNamesprotected java.util.List<java.lang.Class<?>>fieldTypesprotected java.lang.Stringid
-
Constructor Summary
Constructors Constructor Description SimpleStructureDefinition(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructureInstancecreateInstance()java.lang.StringgetFieldNameAt(int index)Obtains the name of the field in the index positionintgetFieldSize()Obtains the number of fields that this structure hasjava.lang.Class<?>getFieldTypeAt(int index)Obtains the type of the field in the index positionjava.lang.StringgetId()Obtains the id of this structurevoidsetFieldName(int index, java.lang.String fieldName, java.lang.Class<?> type)
-
-
-
Method Detail
-
getFieldSize
public int getFieldSize()
Description copied from interface:FieldBaseStructureDefinitionObtains the number of fields that this structure has- Specified by:
getFieldSizein interfaceFieldBaseStructureDefinition- Returns:
- the number of fields that this structure has
-
getId
public java.lang.String getId()
Description copied from interface:StructureDefinitionObtains the id of this structure- Specified by:
getIdin interfaceStructureDefinition- Returns:
- the id of this structure
-
setFieldName
public void setFieldName(int index, java.lang.String fieldName, java.lang.Class<?> type)
-
getFieldNameAt
public java.lang.String getFieldNameAt(int index)
Description copied from interface:FieldBaseStructureDefinitionObtains the name of the field in the index position- Specified by:
getFieldNameAtin interfaceFieldBaseStructureDefinition- Parameters:
index- the position of the field- Returns:
- the name of the field
-
getFieldTypeAt
public java.lang.Class<?> getFieldTypeAt(int index)
Description copied from interface:FieldBaseStructureDefinitionObtains the type of the field in the index position- Specified by:
getFieldTypeAtin interfaceFieldBaseStructureDefinition- Parameters:
index- the position of the field- Returns:
- the type of the field
-
createInstance
public StructureInstance createInstance()
- Specified by:
createInstancein interfaceStructureDefinition- Returns:
- a new instance of this structure definition
-
-