Interface Entry
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
An Entry contains a key and a value. The key and value have a
Type such that an entry is identified by the combination of the key, key
type, and value type. The Type may indicate the key and value are simple
strings or, more complex objects may be managed that allows for a
translation from one arbitrary object to another.
-
Method Summary
Modifier and TypeMethodDescriptiongetEntryRecord(Type entryRecordType) Gets the entry record corresponding to the givenEntryrecordType.This method is used to retrieve an object implementing the requested record.getKey()Gets the key of this entry.Gets theTypeof this entry key.getValue()Gets the value in this entry.Gets theTypeof this entry value.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getKeyType
Type getKeyType()Gets theTypeof this entry key.- Returns:
- the key
Type - Compliance:
mandatory- This method must be implemented.
-
getKey
Object getKey()Gets the key of this entry.- Returns:
- the key
- Compliance:
mandatory- This method must be implemented.
-
getValueType
Type getValueType()Gets theTypeof this entry value.- Returns:
- the value
Type - Compliance:
mandatory- This method must be implemented.
-
getValue
Object getValue()Gets the value in this entry.- Returns:
- the value
- Compliance:
mandatory- This method must be implemented.
-
getEntryRecord
Gets the entry record corresponding to the givenEntryrecordType.This method is used to retrieve an object implementing the requested record. TheentryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(entryRecordType)istrue.- Parameters:
entryRecordType- the type of the record to retrieve- Returns:
- the entry record
- Throws:
NullArgumentException-entryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(entryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-