Interface Type
- All Superinterfaces:
Comparable<Type>, OsidPrimitive, OsidPrimitive, Serializable, Type
The Type is a form of identifier that is primarily used to identify
interface specifications. The Type differs from Id in that
it offers display information and Types may be arranged in
hierarchies to indicate an extended interface. Semantically, an Id
identifies any OSID object while the Type identifies 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 Type mai
also provide some additional metadata such as a name, description and
domain.
-
Method Summary
Modifier and TypeMethodDescriptionGets the authority of thisType.Gets a description of thisType.Gets the shorter display label for thisType.Gets the full display name of thisType.Gets the domain.Gets the identifier of thisType.This method is used to compare oneTypeto another.Gets the namespace of the identifier.Methods inherited from interface OsidPrimitive
toStringMethods inherited from interface Type
compareTo, equals, hashCodeModifier and TypeMethodDescriptionintCompares this type with the specifiedTypeto determine the natural order.booleanDetermines if the givenTypeis equal to this one.inthashCode()Returns a hash code value for thisTypebased on the authority, namespace, and identifier.
-
Method Details
-
getDisplayName
DisplayText getDisplayName()Gets the full display name of thisType.- Returns:
- the display name of this
Type - Compliance:
mandatory- This method must be implemented.
-
getDisplayLabel
DisplayText getDisplayLabel()Gets the shorter display label for thisType. Where a display name of aTypemight be"Critical Logging Priority Type", the display label could be "critical".- Returns:
- the display label for this
Type - Compliance:
mandatory- This method must be implemented.
-
getDescription
DisplayText getDescription()Gets a description of thisType.- Returns:
- the description of this
Type - Compliance:
mandatory- This method must be implemented.
-
getDomain
DisplayText getDomain()Gets the domain. The domain can provide an information label about ths application space of this Type.- Returns:
- the domain of this
Type - Compliance:
mandatory- This method must be implemented.
-
getAuthority
String getAuthority()Gets the authority of thisType. The authority is a string used to ensure the uniqueness of thisTypewhen 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
Type - Compliance:
mandatory- This method must be implemented.
-
getIdentifierNamespace
String getIdentifierNamespace()Gets the namespace of the identifier. This method is used to compare oneTypeto another.- Returns:
- the authority of this
Type - Compliance:
mandatory- This method must be implemented.
-
getIdentifier
String getIdentifier()Gets the identifier of thisType.This method is used to compare oneTypeto another.- Returns:
- the identifier of this
Type - Compliance:
mandatory- This method must be implemented.
-