Objects¶
Type Form¶
-
class
dlkit.type.objects.TypeForm¶ Bases:
dlkit.osid.objects.OsidFormThis form provides a means of updating various fields in the
Type.Note that the domain, authority and identifier are part of the
Typeidentification, and as such not modifiable.-
display_name_metadata¶ Gets the metadata for the display name.
Returns: metadata for the display name Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
display_name¶
-
display_label_metadata¶ Gets the metadata for the display label.
Returns: metadata for the display label Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
display_label¶
-
description_metadata¶ Gets the metadata for the description.
Returns: metadata for the description Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
description¶
-
domain_metadata¶ Gets the metadata for the domain.
Returns: metadata for the domain Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
domain¶
-
Type List¶
-
class
dlkit.type.objects.TypeList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,TypeListprovides a means for accessingTypeelements sequentially either one at a time or many at a time.Examples: while (tl.hasNext()) { Type type = tl.getNextType(); }
- or
- while (tl.hasNext()) {
- Type[] types = tl.getNextTypes(tl.available());
}
-
next_type¶ Gets the next
Typein this list.Returns: the next Typein this list. Thehas_next()method should be used to test that a nextTypeis available before calling this method.Return type: osid.type.TypeRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_types(n)¶ Gets the next set of
Typesin this list.The specified amount must be less than or equal to the return from
available().Parameters: n ( cardinal) – the number ofTypeelements requested which must be less than or equal toavailable()Returns: an array of Typeelements.The length of the array is less than or equal to the number specified.Return type: osid.type.TypeRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.