public class MethodDefinition extends Object
MethodDefinition class contains detailed information
about a vAPI method. This should contain all the information
required to address a method in the vAPI runtime.| Modifier and Type | Class and Description |
|---|---|
static class |
MethodDefinition.TaskSupport
Levels of task support by the method
|
| Constructor and Description |
|---|
MethodDefinition(MethodIdentifier id,
DataDefinition input,
DataDefinition output,
Set<ErrorDefinition> errors)
Constructor.
|
MethodDefinition(MethodIdentifier id,
DataDefinition input,
DataDefinition output,
Set<ErrorDefinition> errors,
MethodDefinition.TaskSupport taskSupport)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ErrorDefinition |
getErrorDefinition(String errorName)
Returns the error definition with the specified name reported by this
method or
null if this method doesn't report an error with
the specified name. |
Set<ErrorDefinition> |
getErrorDefinitions()
Returns a set of error definitions describing the errors
which this method can report.
|
MethodIdentifier |
getIdentifier()
Returns the identifier of this method.
|
DataDefinition |
getInputDefinition()
Returns the input definition of this method.
|
DataDefinition |
getOutputDefinition()
Returns the output definition of this method.
|
MethodDefinition.TaskSupport |
getTaskSupport()
Returns task support level of the method.
|
int |
hashCode() |
String |
toString() |
public MethodDefinition(MethodIdentifier id, DataDefinition input, DataDefinition output, Set<ErrorDefinition> errors)
id - method identifierinput - data definition of the method inputoutput - data definition of the method outputerrors - set of ErrorDefinitions for errors
that can be reported by the method; might be
nullpublic MethodDefinition(MethodIdentifier id, DataDefinition input, DataDefinition output, Set<ErrorDefinition> errors, MethodDefinition.TaskSupport taskSupport)
id - method identifierinput - data definition of the method inputoutput - data definition of the method outputerrors - set of ErrorDefinitions for errors
that can be reported by the method; might be
nulltaskSupport - Task support level of the methodpublic MethodIdentifier getIdentifier()
public DataDefinition getInputDefinition()
public DataDefinition getOutputDefinition()
public Set<ErrorDefinition> getErrorDefinitions()
ErrorDefinitions for the methodpublic ErrorDefinition getErrorDefinition(String errorName)
null if this method doesn't report an error with
the specified name.errorName - name of the error definition to returnnull if this method doesn't report an error with
the specified name.NullPointerException - if the error name is nullpublic MethodDefinition.TaskSupport getTaskSupport()
Copyright © 2022. All rights reserved.