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()
FieldBaseStructureDefinitiongetFieldSize in interface FieldBaseStructureDefinitionpublic String getId()
StructureDefinitiongetId in interface StructureDefinitionpublic 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 StructureInstance createInstance()
createInstance in interface StructureDefinitionCopyright © 2016 Alfresco. All rights reserved.