public class OsidReturn
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
OsidReturn(java.lang.String type)
Constructs a new
OsidReturn for
enumerations. |
protected |
OsidReturn(java.lang.String type,
boolean array)
Constructs a new
OsidReturn for non-primitives. |
protected |
OsidReturn(java.lang.String type,
boolean array,
java.lang.String specPrimitiveType)
Constructs a new
OsidReturn for primitives. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSpecType()
Gets the specification type of this return..
|
java.lang.String |
getType()
Gets the type of the return.
|
boolean |
isArray()
Tests if the return is an array.
|
boolean |
isEnumeration()
Tests if this return is an OSID enumeration.
|
boolean |
isPrimitive()
Tests if this return is an OSID primitive.
|
protected OsidReturn(java.lang.String type)
OsidReturn
for
enumerations. This constructor marks the return as an
enumeration.type
- the type of the enumerationprotected OsidReturn(java.lang.String type, boolean array)
OsidReturn
for non-primitives.type
- the return typearray
- true
if the return type is an arrayprotected OsidReturn(java.lang.String type, boolean array, java.lang.String specPrimitiveType)
OsidReturn
for primitives. This
constructor marks the return as a primitive.type
- the type of the primitive or interfacearray
- true
if the return is an array
false
otherwisespecPrimitiveType
- the primitive type according to specpublic java.lang.String getType()
public java.lang.String getSpecType()
public boolean isPrimitive()
true
if this return is an OSID
primitive, code
otherwisepublic boolean isEnumeration()
true
if this return is an OSID
enumeration, code
otherwisepublic boolean isArray()
true
if this return is an array,
code
otherwise