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
|
boolean |
equals(Object obj) |
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) |
addName, addName, addName, copyValueTo, getDataComponentType, getDefinition, getDescription, getIdentifier, getLabel, getName, getNames, getXml, isSetDefinition, isSetDescription, isSetIdentifier, isSetLabel, isSetName, isSetNames, isSetXml, setDefinition, setDescription, setIdentifier, setLabel, setName, setName, setName, setXml
public List<SweField> getFields()
getFields
in interface DataRecord
public SweAbstractDataRecord setFields(List<SweField> fields)
setFields
in interface DataRecord
fields
- the fields to setpublic SweAbstractDataRecord addField(SweField field)
DataRecord
addField
in interface DataRecord
field
- Field to addpublic boolean isSetFields()
DataRecord
isSetFields
in interface DataRecord
public int getFieldIndexByIdentifier(String fieldNameOrElementDefinition)
DataRecord
getFieldIndexByIdentifier
in interface DataRecord
fieldNameOrElementDefinition
- a definition identifying a SweField
in this
DataRecord
.boolean isElementDefinition(String fieldNameOrElementDefinition, SweField sweField)
public boolean equals(Object obj)
equals
in class SweAbstractDataComponent
public int hashCode()
hashCode
in class SweAbstractDataComponent
public Set<SweAbstractSimpleType<?>> getSweAbstractSimpleTypeFromFields(Class clazz)
getSweAbstractSimpleTypeFromFields
in interface DataRecord
Copyright © 2012-2015 52north.org. All Rights Reserved.