Class SimpleStructureDefinition
- java.lang.Object
-
- org.activiti.engine.impl.bpmn.data.SimpleStructureDefinition
-
- All Implemented Interfaces:
FieldBaseStructureDefinition,StructureDefinition
public class SimpleStructureDefinition extends Object implements FieldBaseStructureDefinition
Represents a simple in memory structure
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>fieldNamesprotected List<Class<?>>fieldTypesprotected Stringid
-
Constructor Summary
Constructors Constructor Description SimpleStructureDefinition(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructureInstancecreateInstance()StringgetFieldNameAt(int index)Obtains the name of the field in the index positionintgetFieldSize()Obtains the number of fields that this structure hasClass<?>getFieldTypeAt(int index)Obtains the type of the field in the index positionStringgetId()Obtains the id of this structurevoidsetFieldName(int index, String fieldName, Class<?> type)
-
-
-
Constructor Detail
-
SimpleStructureDefinition
public SimpleStructureDefinition(String id)
-
-
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 String getId()
Description copied from interface:StructureDefinitionObtains the id of this structure- Specified by:
getIdin interfaceStructureDefinition- Returns:
- the id of this structure
-
getFieldNameAt
public 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 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
-
-