@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)
Set the value for the attribute of the specified name.
|
@UML(identifier="recordType", obligation=OPTIONAL, specification=ISO_19103) RecordType getRecordType()
getRecordType().getAttributeTypes().keySet().containsAll(getAttributes().keySet())
This method can be think as the equivalent of the Java Object.getClass()
method.
@UML(identifier="attributes", obligation=MANDATORY, specification=ISO_19103) Map<MemberName,Object> getAttributes()
RecordType.getAttributeTypes()
@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().locate(name)
.@Extension 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.Copyright © 1996–2019 Geotools. All rights reserved.