public class SimpleStructureDefinition extends Object implements FieldBaseStructureDefinition
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
fieldNames |
protected List<Class<?>> |
fieldParameterTypes |
protected List<Class<?>> |
fieldTypes |
protected String |
id |
| Constructor and Description |
|---|
SimpleStructureDefinition(String id) |
| Modifier and Type | Method and Description |
|---|---|
StructureInstance |
createInstance() |
String |
getFieldNameAt(int index)
Obtains the name of the field in the index position
|
Class<?> |
getFieldParameterTypeAt(int index)
Obtains the parameter type of the field in the index position
|
int |
getFieldSize()
Obtains the number of fields that this structure has
|
Class<?> |
getFieldTypeAt(int index)
Obtains the type of the field in the index position
|
String |
getId()
Obtains the id of this structure
|
void |
setFieldName(int index,
String fieldName,
Class<?> type,
Class<?> parameterType) |
protected String id
public SimpleStructureDefinition(String id)
public int getFieldSize()
FieldBaseStructureDefinitiongetFieldSize in interface FieldBaseStructureDefinitionpublic String getId()
StructureDefinitiongetId in interface StructureDefinitionpublic void setFieldName(int index,
String fieldName,
Class<?> type,
Class<?> parameterType)
public String getFieldNameAt(int index)
FieldBaseStructureDefinitiongetFieldNameAt in interface FieldBaseStructureDefinitionindex - the position of the fieldpublic Class<?> getFieldTypeAt(int index)
FieldBaseStructureDefinitiongetFieldTypeAt in interface FieldBaseStructureDefinitionindex - the position of the fieldpublic Class<?> getFieldParameterTypeAt(int index)
FieldBaseStructureDefinitiongetFieldParameterTypeAt in interface FieldBaseStructureDefinitionindex - the position of the fieldnull if the type is not a parameterized typepublic StructureInstance createInstance()
createInstance in interface StructureDefinitionCopyright © 2020 Flowable. All rights reserved.