Package lu.kbra.modelizer_next.domain
Class ClassModel
java.lang.Object
lu.kbra.modelizer_next.domain.ClassModel
- All Implemented Interfaces:
IdOwner,NamesOwner,StyleOwner,VisibilityOwner
Persistent model of a diagram class/table. It owns display names, style, visibility, and the
ordered list of fields.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the field.intgetFieldCount(PanelType panelType) Returns the field count.intgetFieldIndex(String fieldId) Returns the field index.intgetFieldIndex(String fieldId, PanelType panelType) Returns the field index.Returns the fields.Returns the fields.getId()Returns the ID.getNames()Returns the names.getStyle()Returns the style.Returns the visibility.voidsetFields(List<FieldModel> fields) Sets the fields.voidSets the ID.voidsetNames(ElementNames names) Sets the names.voidsetStyle(ElementStyle style) Sets the style.voidsetVisibility(LayerVisibility visibility) Sets the visibility.toString()Builds a debug string for this class model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface lu.kbra.modelizer_next.domain.impl.NamesOwner
getConceptualName, getName, getTechnicalName, hasTechnicalName, setConceptualName, setName, setName, setName, setTechnicalNameMethods inherited from interface lu.kbra.modelizer_next.domain.impl.StyleOwner
getBackgroundColor, getBorderColor, getTextColor, setBackgroundColor, setBorderColor, setTextColorMethods inherited from interface lu.kbra.modelizer_next.domain.impl.VisibilityOwner
clearVisibility, isVisible, isVisibleInConceptual, isVisibleInLogical, isVisibleInPhysical, setVisibility, setVisibility, setVisibleInConceptual, setVisibleInLogical, setVisibleInPhysical
-
Constructor Details
-
ClassModel
public ClassModel()Creates a class model instance.
-
-
Method Details
-
getField
Returns the field.- Parameters:
i- zero-based index to read or updatepanelType- diagram panel type whose model or layout should be used- Returns:
- the field
-
getFieldCount
Returns the field count.- Parameters:
panelType- diagram panel type whose model or layout should be used- Returns:
- the field count
-
getFieldIndex
Returns the field index.- Parameters:
fieldId- id of the field to look up or modify- Returns:
- the field index
-
getFieldIndex
Returns the field index.- Parameters:
fieldId- id of the field to look up or modifypanelType- diagram panel type whose model or layout should be used- Returns:
- the field index
-
getFields
Returns the fields.- Returns:
- the fields
-
getFields
Returns the fields.- Parameters:
panelType- diagram panel type whose model or layout should be used- Returns:
- the fields
-
getId
Returns the ID. -
getNames
Returns the names.- Specified by:
getNamesin interfaceNamesOwner- Returns:
- the names
-
getStyle
Returns the style.- Specified by:
getStylein interfaceStyleOwner- Returns:
- the style
-
getVisibility
Returns the visibility.- Specified by:
getVisibilityin interfaceVisibilityOwner- Returns:
- the visibility
-
setFields
Sets the fields.- Parameters:
fields- values for fields
-
setId
Sets the ID. -
toString
Builds a debug string for this class model.
-