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

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

    • UMLClass

      public UMLClass(ClassType paramClassType, List<UMLField> paramFields, List<UMLMethod> paramMethods, String paramName, List<UMLStereotype> paramStereotypes)
      Instantiates a new UML class.
      Parameters:
      paramClassType - - ClassType - the class type
      paramFields - - List<UMLField> - the uml field information list
      paramMethods - - List<UMLMethod> - the uml method information list
      paramName - - String - the class name
      paramStereotypes - - List<UMLStereotype> - the stereotypes of the class
  • Method Details

    • getName

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

      public String getDiagramText()
      Gets the diagram text.
      Specified by:
      getDiagramText in interface PlantUMLDiagramElement
      Returns:
      the diagram text
    • addField

      public void addField(UMLField paramField)
      Adds the field.
      Parameters:
      paramField - the param field
    • addMethod

      public void addMethod(UMLMethod paramMethod)
      Adds the method.
      Parameters:
      paramMethod - the param method