@Entity public class MethodInterfaceDescription extends Ind2uceEntity
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
A description of the method.
|
protected Long |
id
The id.
|
protected String |
methodName
The name of the method.
|
protected String |
returnType
The return type of the method.
|
GSON_DEFAULT, GSON_PLAIN, GSON_PRETTY, version| Constructor and Description |
|---|
MethodInterfaceDescription(String methodName,
Class<?> returnType,
String description)
Instantiates a new interface description.
|
MethodInterfaceDescription(String methodName,
Class<?> returnType,
String description,
InputParameterDescription... parameters)
Instantiates a new interface description.
|
MethodInterfaceDescription(String methodName,
Class<?> returnType,
String description,
List<InputParameterDescription> parameters)
Instantiates a new interface description.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(InputParameterDescription param)
Adds the parameter.
|
boolean |
equals(Object obj) |
String |
getDescription()
Gets the a description of the method.
|
Long |
getId()
Gets the id.
|
String |
getMethodName()
Gets the name of the method.
|
List<InputParameterDescription> |
getParameters()
Gets the a list of parameters.
|
Class<?> |
getReturnType()
Gets the return type of the method.
|
String |
getReturnTypeName()
Gets the return type name.
|
int |
hashCode() |
void |
setDescription(String description)
Sets the a description of the method.
|
void |
setId(Long id)
Sets the id.
|
void |
setMethodName(String methodName)
Sets the name of the method.
|
void |
setParameters(List<InputParameterDescription> parameters)
Sets the a list of parameters.
|
void |
setReturnType(Class<?> returnType)
Sets the return type of the method.
|
fromJson, getGson, getVersion, toJson, toStringprotected Long id
protected String description
protected String methodName
protected String returnType
public MethodInterfaceDescription(String methodName, Class<?> returnType, String description)
methodName - name of the methodreturnType - return type of the methoddescription - description of the methodpublic MethodInterfaceDescription(String methodName, Class<?> returnType, String description, InputParameterDescription... parameters)
methodName - name of the methodreturnType - return type of the methoddescription - description of the methodparameters - a list of parameters for the methodpublic MethodInterfaceDescription(String methodName, Class<?> returnType, String description, List<InputParameterDescription> parameters)
methodName - name of the methodreturnType - return type of the methoddescription - description of the methodparameters - a list of parameters for the methodpublic void addParameter(InputParameterDescription param)
param - the parampublic String getDescription()
public Long getId()
public String getMethodName()
public List<InputParameterDescription> getParameters()
public Class<?> getReturnType()
public String getReturnTypeName()
public void setDescription(String description)
description - the new a description of the methodpublic void setId(Long id)
id - the new idpublic void setMethodName(String methodName)
methodName - the new name of the methodpublic void setParameters(List<InputParameterDescription> parameters)
parameters - the new a list of parameterspublic void setReturnType(Class<?> returnType)
returnType - the new return type of the methodCopyright © 2018. All rights reserved.