Class MethodInterfaceDescription


  • @Entity
    public class MethodInterfaceDescription
    extends MyDataEntity
    Describes an interface of a method. Contains of a name, a list of parameters and a return type.
    Author:
    Fraunhofer IESE
    • Field Detail

      • id

        protected Long id
        The component_id.
      • methodName

        @NotBlank
        protected @NotBlank String methodName
        The name of the method.
      • description

        protected String description
        A description of the method.
      • returnType

        @NotBlank
        protected @NotBlank String returnType
        The return type of the method.
    • Constructor Detail

      • MethodInterfaceDescription

        public MethodInterfaceDescription​(String methodName,
                                          Class<?> returnType,
                                          String description)
        Instantiates a new interface description.
        Parameters:
        methodName - name of the method
        returnType - return type of the method
        description - 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 method
        returnType - return type of the method
        description - description of the method
        parameters - 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 method
        returnType - return type of the method
        description - description of the method
        parameters - a list of parameters for the method