Package org.n52.shetland.ogc.swe
Class SweAbstractDataRecord
java.lang.Object
org.n52.shetland.ogc.swe.SweAbstractDataComponent
org.n52.shetland.ogc.swe.SweAbstractDataRecord
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,DataRecord
- Direct Known Subclasses:
SweDataRecord,SweSimpleDataRecord
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds field to field listabstract SweAbstractDataRecordcopy()booleanbooleanexistsFieldForIdentifier(String fieldNameOrElementDefinition) getFieldByIdentifier(String fieldNameOrElementDefinition) intgetFieldIndexByIdentifier(String fieldNameOrElementDefinition) Return the index of the first field with the given fieldNameOrElementDefinition or -1 if not found.inthashCode()(package private) booleanisElementDefinition(String fieldNameOrElementDefinition, SweField sweField) (package private) booleanisFieldName(String fieldNameOrElementDefinition, SweField sweField) booleanCheck if there are field elementsMethods inherited from class org.n52.shetland.ogc.swe.SweAbstractDataComponent
accept, accept, addName, addName, addName, copyValueTo, getDataComponentType, getDefaultElementEncoding, getDefinition, getDescription, getIdentifier, getLabel, getName, getNames, getXml, isSetDefinition, isSetDescription, isSetIdentifier, isSetLabel, isSetName, isSetNames, isSetXml, setDefaultElementEncoding, setDefinition, setDescription, setIdentifier, setLabel, setName, setName, setName, setXmlMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
Constructor Details
-
SweAbstractDataRecord
public SweAbstractDataRecord()
-
-
Method Details
-
getFields
- Specified by:
getFieldsin interfaceDataRecord- Returns:
- the fields
-
setFields
- Specified by:
setFieldsin interfaceDataRecord- Parameters:
fields- the fields to set- Returns:
- this
-
addField
Description copied from interface:DataRecordAdds field to field list- Specified by:
addFieldin interfaceDataRecord- Parameters:
field- Field to add- Returns:
- this
-
isSetFields
public boolean isSetFields()Description copied from interface:DataRecordCheck if there are field elements- Specified by:
isSetFieldsin interfaceDataRecord- Returns:
- Fields not empty
-
getFieldIndexByIdentifier
Description copied from interface:DataRecordReturn the index of the first field with the given fieldNameOrElementDefinition or -1 if not found.- Specified by:
getFieldIndexByIdentifierin interfaceDataRecord- Parameters:
fieldNameOrElementDefinition- a definition identifying aSweFieldin thisDataRecord.- Returns:
- the index of the first field with the given fieldDefinition or -1 if not found.
-
getFieldByIdentifier
- Specified by:
getFieldByIdentifierin interfaceDataRecord
-
existsFieldForIdentifier
- Specified by:
existsFieldForIdentifierin interfaceDataRecord
-
isFieldName
-
isElementDefinition
-
equals
- Overrides:
equalsin classSweAbstractDataComponent
-
hashCode
public int hashCode()- Overrides:
hashCodein classSweAbstractDataComponent
-
getSweAbstractSimpleTypeFromFields
- Specified by:
getSweAbstractSimpleTypeFromFieldsin interfaceDataRecord
-
copy
- Specified by:
copyin interfaceCopyable<SweAbstractDataComponent>
-