Class Component

All Implemented Interfaces:
Documentable, PropertyHolder, Comparable<ModelItem>

public final class Component extends StaticStructureElement implements Documentable
Represents a "component" in the C4 model.
  • Method Details

    • getParent

      public Element getParent()
      Description copied from class: Element
      Gets the parent of this element.
      Specified by:
      getParent in class Element
      Returns:
      the parent Element, or null if this element doesn't have a parent (i.e. a Person or SoftwareSystem)
    • getContainer

      public Container getContainer()
    • getTechnology

      public String getTechnology()
      Gets the technology associated with this component (e.g. "Spring Bean").
      Returns:
      the technology, as a String, or null if no technology has been specified
    • setTechnology

      public void setTechnology(String technology)
      Sets the technology associated with this component (e.g. "Spring Bean").
      Parameters:
      technology - the technology, as a String
    • getCanonicalName

      public String getCanonicalName()
      Gets the canonical name of this component, in the form "/Software System/Container/Component".
      Specified by:
      getCanonicalName in class ModelItem
      Returns:
      the canonical name, as a String
    • getDefaultTags

      public Set<String> getDefaultTags()
      Specified by:
      getDefaultTags in class ModelItem
    • getDocumentation

      public Documentation getDocumentation()
      Gets the documentation associated with this component.
      Specified by:
      getDocumentation in interface Documentable
      Returns:
      a Documentation object