Interface DataRecord

All Known Implementing Classes:
SweAbstractDataRecord, SweDataRecord, SweSimpleDataRecord

public interface DataRecord
Since:
1.0.0
  • Method Details

    • getFields

      List<SweField> getFields()
      Returns:
      the fields
    • setFields

      DataRecord setFields(List<SweField> fields)
      Parameters:
      fields - the fields to set
      Returns:
      this
    • addField

      DataRecord addField(SweField field)
      Adds field to field list
      Parameters:
      field - Field to add
      Returns:
      this
    • isSetFields

      boolean isSetFields()
      Check if there are field elements
      Returns:
      Fields not empty
    • getFieldIndexByIdentifier

      int getFieldIndexByIdentifier(String fieldNameOrElementDefinition)
      Return the index of the first field with the given fieldNameOrElementDefinition or -1 if not found.
      Parameters:
      fieldNameOrElementDefinition - a definition identifying a SweField in this DataRecord.
      Returns:
      the index of the first field with the given fieldDefinition or -1 if not found.
    • getFieldByIdentifier

      SweAbstractDataComponent getFieldByIdentifier(String fieldNameOrElementDefinition)
    • existsFieldForIdentifier

      boolean existsFieldForIdentifier(String fieldNameOrElementDefinition)
    • getSweAbstractSimpleTypeFromFields

      Set<SweAbstractSimpleType<?>> getSweAbstractSimpleTypeFromFields(Class<?> clazz)