java.lang.Object
de.elnarion.util.plantuml.generator.classdiagram.internal.UMLMethod
All Implemented Interfaces:
PlantUMLDiagramElement

public class UMLMethod extends Object implements PlantUMLDiagramElement
The Class UMLMethod encapsulates all information needed for creating a diagram text for a uml method object.
  • Constructor Details

    • UMLMethod

      public UMLMethod(ClassifierType paramClassifierType, VisibilityType paramVisibility, String paramResultType, String paramName, Map<String,String> paramParametersAndType, List<String> paramStereotypes)
      Instantiates a new method.
      Parameters:
      paramClassifierType - - ClassifierType - the classifier type
      paramVisibility - - VisibilityType - the visibility type
      paramResultType - - String - the result type name
      paramName - - String - the method name
      paramParametersAndType - - Map<String,String> - the sorted map with parameter names and their corresponding parameter type names
      paramStereotypes - - List<String> - the stereotypes of this method
  • Method Details

    • getName

      public String getName()
      Gets the name.
      Returns:
      String - the name
    • getClassifierType

      public ClassifierType getClassifierType()
      Gets the classifier type.
      Returns:
      ClassifierType - the classifier type
    • getParametersAndTypes

      public Map<String,String> getParametersAndTypes()
      Gets the parameters and types.
      Returns:
      Map - the parameters and types
    • getDiagramText

      public String getDiagramText()
      Description copied from interface: PlantUMLDiagramElement
      Gets the diagram text.
      Specified by:
      getDiagramText in interface PlantUMLDiagramElement
      Returns:
      String - the diagram text