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()
StructureDefinition
getId
in interface StructureDefinition
public int getFieldSize()
FieldBaseStructureDefinition
getFieldSize
in interface FieldBaseStructureDefinition
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.