Objects¶
Id Form¶
-
class
dlkit.id.objects.IdForm¶ Bases:
dlkit.osid.objects.OsidFormThis form provides a means of creating an
Id.Gets the metadata for the authority.
Returns: metadata for the authority Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
identifier_namespace_metadata¶ Gets the metadata for the identifier namespace.
Returns: metadata for the namespace Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
identifier_namespace¶
-
identifier_prefix_metadata¶ Gets the metadata for the identifier prefix.
Returns: metadata for the prefix Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
identifier_prefix¶
-
identifier_suffix_metadata¶ Gets the metadata for the identifier suffix.
Returns: metadata for the suffix Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
identifier_suffix¶
-
identifier_metadata¶ Gets the metadata for the identifier.
Returns: metadata for the identifier Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
identifier¶
Id List¶
-
class
dlkit.id.objects.IdList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,IdListprovides a means for accessingIdelements sequentially either one at a time or many at a time.Examples: while (il.hasNext()) { Id id = il.getNextId(); }
- or
- while (il.hasNext()) {
- Id[] ids = il.getNextIds(il.available());
}
-
next_id¶ Gets the next
Idin this list.Returns: the next Idin this list. Thehas_next()method should be used to test that a nextIdis available before calling this method.Return type: osid.id.IdRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_ids(n)¶ Gets the next set of
Idsin this list.The specified amount must be less than or equal to the return from
available().Parameters: n ( cardinal) – the number ofIdelements requested which must be less than or equal toavailable()Returns: an array of Idelements.The length of the array is less than or equal to the number specified.Return type: osid.id.IdRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.