|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@UML(identifier="Record",
specification=ISO_19103)
public interface RecordA list of logically related elements as (name, value) pairs in a dictionary. A record may be used as an implementation representation for features.
This class can be think as the equivalent of the Java Object class.
RecordType| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
@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).
RecordType.locate(org.opengis.util.MemberName)
@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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||