@UML(identifier="Record", specification=ISO_19103) public interface Record
This class can be think as the equivalent of the Java Object class.
RecordType| Modifier and Type | Method and Description |
|---|---|
Map<MemberName,Object> |
getAttributes()
Returns the dictionary of all (name, value) pairs in this record.
|
RecordType |
getRecordType()
Returns the type definition of record.
|
Object |
locate(MemberName name)
Returns the value for an attribute of the specified name.
|
void |
set(MemberName name,
Object value)
Sets the value for the attribute of the specified name.
|
@UML(identifier="recordType", obligation=OPTIONAL, specification=ISO_19103) RecordType getRecordType()
getRecordType().getMemberTypes().containsAll(getAttributes().keySet())
This method can be think as the equivalent of the Java Object.getClass() method.
null.@UML(identifier="memberValue", obligation=MANDATORY, specification=ISO_19103) Map<MemberName,Object> getAttributes()
RecordType.getMemberTypes()Departure from OGC/ISO specification:
Figure 15 in ISO 19103:2005 specifies a cardinality of 1. However, this seems to contradict the semantics of thelocate(name)andRecordType.getMemberTypes()methods.
@UML(identifier="locate", obligation=MANDATORY, specification=ISO_19103) Object locate(MemberName name)
getAttributes().get(name).
The type of the returned object is given by
getRecordType().getMemberTypes().get(name).name - The name of the attribute to lookup.RecordType.locate(MemberName)void set(MemberName name, Object value) throws UnsupportedOperationException
getAttributes().put(name,value).
Remind that name keys are constrained to record type members only.name - The name of the attribute to modify.value - The new value for the attribute.UnsupportedOperationException - if this record is not modifiable.Departure from OGC/ISO specification:
This method provides no additional functionality compared to the ISO standard methods, but is declared in GeoAPI as a convenient shortcut.
Copyright © 1994–2019 Open Geospatial Consortium. All rights reserved.