Class OsidParameter
java.lang.Object
org.osid.meta.OsidParameter
The definition for an OSID parameter.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOsidParameter(String name, String type) Constructs a newOsidParameterfor enumerations.protectedOsidParameter(String name, String type, boolean array) Constructs a newOsidParameterfor non-primitives.protectedOsidParameter(String name, String type, boolean array, String specPrimitiveType) Constructs a newOsidParameterfor primitives. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of this parameter.Gets the specification type of this parameter.getType()Gets the type of this parameter.booleanisArray()Tests if this parameter is an array.booleanTests if this parameter is an OSID enumeration.booleanTests if this parameter is an OSID primitive.
-
Constructor Details
-
OsidParameter
-
OsidParameter
-
OsidParameter
Constructs a newOsidParameterfor primitives. This constructor marks the parameter as a primitive.- Parameters:
name- the parameter nametype- the name of the primitive or interfacearray-trueif the parameter is an arrayfalseotherwisespecPrimitiveType- the primitive type according to spec
-
-
Method Details
-
getName
-
getType
-
getSpecType
Gets the specification type of this parameter.- Returns:
- the specification type
-
isPrimitive
public boolean isPrimitive()Tests if this parameter is an OSID primitive.- Returns:
trueif this parameter is an OSID primitive,codeotherwise
-
isEnumeration
public boolean isEnumeration()Tests if this parameter is an OSID enumeration.- Returns:
trueif this parameter is an OSID enumeration,codeotherwise
-
isArray
public boolean isArray()Tests if this parameter is an array.- Returns:
trueif this parameter is an array,codeotherwise
-