Class OsidMethod
java.lang.Object
org.osid.meta.OsidMethod
Describes the structure of an OSID method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidaddParameter(OsidParameter parameter) Gets the method errors.getName()Gets the method name.Gets the method paramerers.Gets the method return.booleanTests if the method is specified as deprecated.booleanTests if the method is specified as mandatory.booleanisNew()Tests if the method is specified as new.protected voidsetDeprecated(String asOf) protected voidsetMandatory(boolean mandatory) protected voidprotected voidsetReturn(OsidReturn ret)
-
Constructor Details
-
OsidMethod
-
-
Method Details
-
getName
-
getReturn
-
setReturn
-
getParameters
Gets the method paramerers.- Returns:
- the parameters or
nullif none
-
addParameter
-
getErrors
-
addError
-
isMandatory
public boolean isMandatory()Tests if the method is specified as mandatory.- Returns:
trueif the method is mandatory,falseotherwise
-
setMandatory
protected void setMandatory(boolean mandatory) -
isDeprecated
public boolean isDeprecated()Tests if the method is specified as deprecated.- Returns:
trueif the method is deprecated,falseotherwise
-
setDeprecated
-
isNew
public boolean isNew()Tests if the method is specified as new.- Returns:
trueif the method is new,falseotherwise
-
setNew
-