public class SimpleStructureDefinition extends Object implements FieldBaseStructureDefinition
Modifier and Type | Field and Description |
---|---|
protected List<String> |
fieldNames |
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
|
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) |
protected String id
public SimpleStructureDefinition(String id)
public int getFieldSize()
FieldBaseStructureDefinition
getFieldSize
in interface FieldBaseStructureDefinition
public String getId()
StructureDefinition
getId
in interface StructureDefinition
public String getFieldNameAt(int index)
FieldBaseStructureDefinition
getFieldNameAt
in interface FieldBaseStructureDefinition
index
- the position of the fieldpublic Class<?> getFieldTypeAt(int index)
FieldBaseStructureDefinition
getFieldTypeAt
in interface FieldBaseStructureDefinition
index
- the position of the fieldpublic StructureInstance createInstance()
createInstance
in interface StructureDefinition
Copyright © 2015. All rights reserved.