Class MethodInterfaceDescription
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.component.information.method.MethodInterfaceDescription
Describes an interface of a method. Contains of a name, a list of parameters and a return type.
- Author:
- Fraunhofer IESE
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
A description of the method.protected Long
The component_id.protected @NotBlank String
The name of the method.protected PepComponentInformation
protected PipComponentInformation
protected PxpComponentInformation
protected @NotBlank String
The return type of the method. -
Constructor Summary
ConstructorDescriptionMethodInterfaceDescription
(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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the parameter.boolean
Class<?>
Gets the return type of the method.int
hashCode()
void
setParameters
(List<InputParameterDescription> parameters) void
setReturnType
(Class<?> clazz) Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
Field Details
-
id
The component_id. -
methodName
The name of the method. -
description
A description of the method. -
returnType
The return type of the method. -
pipComponentInformation
-
pepComponentInformation
-
pxpComponentInformation
-
-
Constructor Details
-
MethodInterfaceDescription
Instantiates a new interface description.- Parameters:
methodName
- name of the methodreturnType
- return type of the methoddescription
- description of the method
-
MethodInterfaceDescription
public MethodInterfaceDescription(String methodName, Class<?> returnType, String description, InputParameterDescription... parameters) Instantiates a new interface description.- Parameters:
methodName
- name of the methodreturnType
- return type of the methoddescription
- description of the methodparameters
- a list of parameters for the method
-
MethodInterfaceDescription
public MethodInterfaceDescription(String methodName, Class<?> returnType, String description, @Nonnull List<InputParameterDescription> parameters) Instantiates a new interface description.- Parameters:
methodName
- name of the methodreturnType
- return type of the methoddescription
- description of the methodparameters
- a list of parameters for the method
-
-
Method Details
-
addParameter
Adds the parameter.- Parameters:
param
- the param
-
equals
-
getReturnTypeClass
Gets the return type of the method.- Returns:
- the return type of the method
- Throws:
ClassNotFoundException
-
setReturnType
- Parameters:
clazz
-
-
hashCode
public int hashCode() -
getParameters
- Returns:
- the list of inputparametersdescription elements
-
setParameters
- Parameters:
parameters
-
-