public class OsidMethod
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
OsidMethod(java.lang.String name)
Constructs a new
OsidMethod . |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(java.lang.String error) |
protected void |
addParameter(OsidParameter parameter) |
java.util.Collection<java.lang.String> |
getErrors()
Gets the method errors.
|
java.lang.String |
getName()
Gets the method name.
|
java.util.Collection<OsidParameter> |
getParameters()
Gets the method paramerers.
|
OsidReturn |
getReturn()
Gets the method return.
|
boolean |
isMandatory()
Tests if the method is specified as mandatory..
|
protected void |
setMandatory(boolean mandatory) |
protected void |
setReturn(OsidReturn ret) |
protected OsidMethod(java.lang.String name)
OsidMethod
.name
- method namepublic java.lang.String getName()
public OsidReturn getReturn()
null
if noneprotected void setReturn(OsidReturn ret)
public java.util.Collection<OsidParameter> getParameters()
null
if noneprotected void addParameter(OsidParameter parameter)
public java.util.Collection<java.lang.String> getErrors()
null
if noneprotected void addError(java.lang.String error)
public boolean isMandatory()
true
if the method is mandatory,
false
otherwiseprotected void setMandatory(boolean mandatory)