Class OsidReturn
java.lang.Object
org.osid.meta.OsidReturn
Defines an OSID return statement.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOsidReturn(String type) Constructs a newOsidReturnfor enumerations.protectedOsidReturn(String type, boolean array) Constructs a newOsidReturnfor non-primitives.protectedOsidReturn(String type, boolean array, String specPrimitiveType) Constructs a newOsidReturnfor primitives. -
Method Summary
-
Constructor Details
-
OsidReturn
Constructs a newOsidReturnfor enumerations. This constructor marks the return as an enumeration.- Parameters:
type- the type of the enumeration
-
OsidReturn
Constructs a newOsidReturnfor non-primitives.- Parameters:
type- the return typearray-trueif the return type is an array
-
OsidReturn
Constructs a newOsidReturnfor primitives. This constructor marks the return as a primitive.- Parameters:
type- the type of the primitive or interfacearray-trueif the return is an arrayfalseotherwisespecPrimitiveType- the primitive type according to spec
-
-
Method Details
-
getType
-
getSpecType
Gets the specification type of this return..- Returns:
- the specification type
-
isPrimitive
public boolean isPrimitive()Tests if this return is an OSID primitive.- Returns:
trueif this return is an OSID primitive,codeotherwise
-
isEnumeration
public boolean isEnumeration()Tests if this return is an OSID enumeration.- Returns:
trueif this return is an OSID enumeration,codeotherwise
-
isArray
public boolean isArray()Tests if the return is an array.- Returns:
trueif this return is an array,codeotherwise
-