public class ClassStructureDefinition extends Object implements FieldBaseStructureDefinition
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
classStructure |
protected String |
id |
| Constructor and Description |
|---|
ClassStructureDefinition(Class<?> classStructure) |
ClassStructureDefinition(String id,
Class<?> classStructure) |
| 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
|
public ClassStructureDefinition(Class<?> classStructure)
public String getId()
StructureDefinitiongetId in interface StructureDefinitionpublic int getFieldSize()
FieldBaseStructureDefinitiongetFieldSize in interface FieldBaseStructureDefinitionpublic 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.