Class ElementNames

java.lang.Object
lu.kbra.modelizer_next.domain.shared.ElementNames

public class ElementNames extends Object
Display names for the same model element in conceptual, logical, and physical views.
  • Constructor Details

    • ElementNames

      public ElementNames()
      Creates an element names instance.
    • ElementNames

      public ElementNames(String conceptualName)
      Creates an element names instance.
      Parameters:
      conceptualName - name value to use
    • ElementNames

      public ElementNames(String conceptualName, String technicalName)
      Creates an element names instance.
      Parameters:
      conceptualName - name value to use
      technicalName - name value to use
  • Method Details

    • get

      public String get(PanelType panelType)
      Returns the value for the requested panel or key.
      Parameters:
      panelType - diagram panel type whose model or layout should be used
      Returns:
      the value
    • getConceptualName

      public String getConceptualName()
      Returns the conceptual name.
      Returns:
      the conceptual name
    • getTechnicalName

      public String getTechnicalName()
      Returns the technical name.
      Returns:
      the technical name
    • hasTechnicalName

      public boolean hasTechnicalName()
      Checks whether this object has a technical name.
      Returns:
      true if technical name exists; otherwise false
    • set

      public void set(PanelType panelType, String name)
      Sets the value for the requested panel or key.
      Parameters:
      panelType - diagram panel type whose model or layout should be used
      name - name value to read, write, or display
    • set

      public void set(PanelType panelType, boolean maybeTechnical, String name)
      Sets the value for the requested panel or key.
      Parameters:
      panelType - diagram panel type whose model or layout should be used
      maybeTechnical - whether maybe technical is enabled
      name - name value to read, write, or display
    • set

      public void set(boolean forceTechnicalName, String name)
      Sets the value for the requested panel or key.
      Parameters:
      forceTechnicalName - name value to use
      name - name value to read, write, or display
    • setConceptualName

      public void setConceptualName(String name)
      Sets the conceptual name.
      Parameters:
      name - name value to read, write, or display
    • setTechnicalName

      public void setTechnicalName(String technicalName)
      Sets the technical name.
      Parameters:
      technicalName - name value to use
    • toString

      public String toString()
      Builds a debug string for this element names.
      Overrides:
      toString in class Object
      Returns:
      a debug string for this object