Interface FieldBaseStructureDefinition

All Superinterfaces:
StructureDefinition
All Known Implementing Classes:
ClassStructureDefinition, SimpleStructureDefinition

public interface FieldBaseStructureDefinition extends StructureDefinition
Represents a structure definition based on fields
Author:
Esteban Robles Luna
  • Method Details

    • getFieldSize

      int getFieldSize()
      Obtains the number of fields that this structure has
      Returns:
      the number of fields that this structure has
    • getFieldNameAt

      String getFieldNameAt(int index)
      Obtains the name of the field in the index position
      Parameters:
      index - the position of the field
      Returns:
      the name of the field
    • getFieldTypeAt

      Class<?> getFieldTypeAt(int index)
      Obtains the type of the field in the index position
      Parameters:
      index - the position of the field
      Returns:
      the type of the field
    • getFieldParameterTypeAt

      Class<?> getFieldParameterTypeAt(int index)
      Obtains the parameter type of the field in the index position
      Parameters:
      index - the position of the field
      Returns:
      the parameter type of the field, or null if the type is not a parameterized type