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 |
isDeprecated()
Tests if the method is specified as deprecated.
|
boolean |
isMandatory()
Tests if the method is specified as mandatory.
|
boolean |
isNew()
Tests if the method is specified as new.
|
protected void |
setDeprecated(java.lang.String asOf) |
protected void |
setMandatory(boolean mandatory) |
protected void |
setNew(java.lang.String asOf) |
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)
public boolean isDeprecated()
true
if the method is deprecated,
false
otherwiseprotected void setDeprecated(java.lang.String asOf)
public boolean isNew()
true
if the method is new,
false
otherwiseprotected void setNew(java.lang.String asOf)