The Type class captures the fundamental concept of categorizing an object.
Type are designed to be shared among various OSIDs and Managers. The exact meaning of a particular type is left to the developers who use a given Type subclass. The form of the Type class enables categorization. There are four Strings that make up the Type class: authority, domain, keyword, and description. The first three of these Strings are used by the isEqual method to determine if two instance of the Type class are equal. The fourth String, description, is used to clarify the semantic meaning of the instance.
<p> An example of a FunctionType instance: </p>
<p>
<p>
This Type could be used with the authorization OSID. It could also be used with the dictionary OSID to determine the text to display for a given locale (for example, CANADA_FRENCH). The dictionary OSID could use the FunctionType instance as a key to find the display text, but it could also use just the keyword string from the FunctionType as a key. By using the keyword the same display text could then be used for other FunctionTypes such as:
<p> OSID Version: 2.0 </p>
<p> Licensed under the org.osid.SidImplementationLicenseMIT. </p>
Located in /harmoni/oki2/osid/shared/Type.php (line 55)
SObject | --Type
Class | Description |
---|---|
StorableOKIType | This is the StorablePrimitive equivalent of OKIType. |
HarmoniType | A generic type for Harmoni. Constructor takes the desired authority, domain, keyword, and description. |
Constructor
Return a printable string
Inherited From SObject
SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()
Documentation generated on Wed, 19 Sep 2007 10:27:35 -0400 by phpDocumentor 1.3.0RC3