public abstract class SweAbstractDataRecord extends SweAbstractDataComponent implements DataRecord
| Constructor and Description |
|---|
SweAbstractDataRecord() |
| Modifier and Type | Method and Description |
|---|---|
SweAbstractDataRecord |
addField(SweField field)
Adds field to field list
|
abstract SweAbstractDataRecord |
copy() |
boolean |
equals(Object obj) |
boolean |
existsFieldForIdentifier(String fieldNameOrElementDefinition) |
SweField |
getFieldByIdentifier(String fieldNameOrElementDefinition) |
int |
getFieldIndexByIdentifier(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) |
int |
hashCode() |
(package private) boolean |
isElementDefinition(String fieldNameOrElementDefinition,
SweField sweField) |
(package private) boolean |
isFieldName(String fieldNameOrElementDefinition,
SweField sweField) |
boolean |
isSetFields()
Check if there are field elements
|
SweAbstractDataRecord |
setFields(List<SweField> fields) |
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, setXmlclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisSetDefaultElementEncodingpublic List<SweField> getFields()
getFields in interface DataRecordpublic SweAbstractDataRecord setFields(List<SweField> fields)
setFields in interface DataRecordfields - the fields to setpublic SweAbstractDataRecord addField(SweField field)
DataRecordaddField in interface DataRecordfield - Field to addpublic boolean isSetFields()
DataRecordisSetFields in interface DataRecordpublic int getFieldIndexByIdentifier(String fieldNameOrElementDefinition)
DataRecordgetFieldIndexByIdentifier in interface DataRecordfieldNameOrElementDefinition - a definition identifying a SweField in this
DataRecord.public SweField getFieldByIdentifier(String fieldNameOrElementDefinition)
getFieldByIdentifier in interface DataRecordpublic boolean existsFieldForIdentifier(String fieldNameOrElementDefinition)
existsFieldForIdentifier in interface DataRecordboolean isElementDefinition(String fieldNameOrElementDefinition, SweField sweField)
public boolean equals(Object obj)
equals in class SweAbstractDataComponentpublic int hashCode()
hashCode in class SweAbstractDataComponentpublic Set<SweAbstractSimpleType<?>> getSweAbstractSimpleTypeFromFields(Class clazz)
getSweAbstractSimpleTypeFromFields in interface DataRecordpublic abstract SweAbstractDataRecord copy()
copy in interface Copyable<SweAbstractDataComponent>Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.