Primitives¶
Type¶
-
class
dlkit.type.primitives.Type¶ Bases:
dlkit.osid.markers.OsidPrimitiveThe Type is a form of identifier that is primarily used to identify interface specifications.
The
Typediffers fromIdin that it offers display information andTypesmay be arranged in hierarchies to indicate an extended interface. Semantically, anIdidentifies any OSID object while theTypeidentifies a specification.The components of the Type that make up its identification are:
- identifier: a unique key or guid
- namespace: the namespace of the identifier
- authority: the isuer of the identifier
Persisting a type reference means to persist the above identification elements. In addition to these identifier components, A
Typemai also provide some additional metadata such as a name, description and domain.-
display_name¶ Gets the full display name of this
Type.Returns: the display name of this TypeReturn type: osid.locale.DisplayTextcompliance: mandatory – This method must be implemented.
-
display_label¶ Gets the shorter display label for this
Type.Where a display name of a
Typemight be"Critical Logging Priority Type”, the display label could be “critical”.Returns: the display label for this TypeReturn type: osid.locale.DisplayTextcompliance: mandatory – This method must be implemented.
-
description¶ Gets a description of this
Type.Returns: the description of this TypeReturn type: osid.locale.DisplayTextcompliance: mandatory – This method must be implemented.
-
domain¶ Gets the domain.
The domain can provide an information label about ths application space of this Type.
Returns: the domain of this TypeReturn type: osid.locale.DisplayTextcompliance: mandatory – This method must be implemented.
Gets the authority of this
Type.The authority is a string used to ensure the uniqueness of this
Typewhen using a non- federated identifier space. Generally, it is a domain name identifying the party responsible for thisType. This method is used to compare oneTypeto another.Returns: the authority of this TypeReturn type: stringcompliance: mandatory – This method must be implemented.
-
namespace¶ Gets the namespace of the identifier.
This method is used to compare one
Typeto another.Returns: the authority of this TypeReturn type: stringcompliance: mandatory – This method must be implemented.
-
identifier¶ Gets the identifier of this
Type.This method is used to compare one
Typeto another.Returns: the identifier of this TypeReturn type: stringcompliance: mandatory – This method must be implemented.