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
FieldsModifier and TypeFieldDescriptionprotected StringA description of the method.protected LongThe component_id.protected @NotBlank StringThe name of the method.protected PepComponentInformationprotected PipComponentInformationprotected PxpComponentInformationprotected @NotBlank StringThe return type of the method. -
Constructor Summary
ConstructorsConstructorDescriptionMethodInterfaceDescription(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 TypeMethodDescriptionvoidAdds the parameter.booleanClass<?>Gets the return type of the method.inthashCode()voidsetParameters(List<InputParameterDescription> parameters) voidsetReturnType(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-
-