Package org.n52.shetland.ogc.swe
Interface DataRecord
-
- All Known Implementing Classes:
SweAbstractDataRecord,SweDataRecord,SweSimpleDataRecord
public interface DataRecord- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataRecordaddField(SweField field)Adds field to field listbooleanexistsFieldForIdentifier(String fieldNameOrElementDefinition)SweAbstractDataComponentgetFieldByIdentifier(String fieldNameOrElementDefinition)intgetFieldIndexByIdentifier(String fieldNameOrElementDefinition)Return the index of the first field with the given fieldNameOrElementDefinition or -1 if not found.List<SweField>getFields()Set<SweAbstractSimpleType<?>>getSweAbstractSimpleTypeFromFields(Class<?> clazz)booleanisSetFields()Check if there are field elementsDataRecordsetFields(List<SweField> fields)
-
-
-
Method Detail
-
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 aSweFieldin thisDataRecord.- 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)
-
-