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