Class ElementNames
java.lang.Object
lu.kbra.modelizer_next.domain.shared.ElementNames
Display names for the same model element in conceptual, logical, and physical views.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an element names instance.ElementNames(String conceptualName) Creates an element names instance.ElementNames(String conceptualName, String technicalName) Creates an element names instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value for the requested panel or key.Returns the conceptual name.Returns the technical name.booleanChecks whether this object has a technical name.voidSets the value for the requested panel or key.voidSets the value for the requested panel or key.voidSets the value for the requested panel or key.voidsetConceptualName(String name) Sets the conceptual name.voidsetTechnicalName(String technicalName) Sets the technical name.toString()Builds a debug string for this element names.
-
Constructor Details
-
ElementNames
public ElementNames()Creates an element names instance. -
ElementNames
Creates an element names instance.- Parameters:
conceptualName- name value to use
-
ElementNames
Creates an element names instance.- Parameters:
conceptualName- name value to usetechnicalName- name value to use
-
-
Method Details
-
get
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
Returns the conceptual name.- Returns:
- the conceptual name
-
getTechnicalName
Returns the technical name.- Returns:
- the technical name
-
hasTechnicalName
public boolean hasTechnicalName()Checks whether this object has a technical name.- Returns:
trueif technical name exists; otherwisefalse
-
set
Sets the value for the requested panel or key.- Parameters:
panelType- diagram panel type whose model or layout should be usedname- name value to read, write, or display
-
set
Sets the value for the requested panel or key.- Parameters:
panelType- diagram panel type whose model or layout should be usedmaybeTechnical- whether maybe technical is enabledname- name value to read, write, or display
-
set
Sets the value for the requested panel or key.- Parameters:
forceTechnicalName- name value to usename- name value to read, write, or display
-
setConceptualName
Sets the conceptual name.- Parameters:
name- name value to read, write, or display
-
setTechnicalName
Sets the technical name.- Parameters:
technicalName- name value to use
-
toString
Builds a debug string for this element names.
-