Class ReadOnlyFlags
- java.lang.Object
-
- com.nomagic.magicdraw.dependencymatrix.datamodel.cell.ReadOnlyFlags
-
@OpenApiAll @Deprecated public final class ReadOnlyFlags extends java.lang.ObjectDeprecated.read only cell views are deprecated, to check whether the cell is editable or not you have try creating a criteria on the cellHolds readonly information about cell: whether relations can be created or deleted between two cell elements There are only six available choices: canCreate:true/false; canEdit:true/false deleteMulti:true/false and all are made static. No other instances should be created.
-
-
Field Summary
Fields Modifier and Type Field Description static ReadOnlyFlagsCREATE_DELETEDeprecated.static ReadOnlyFlagsCREATE_DELETE_MULTIDeprecated.static ReadOnlyFlagsCREATE_NOT_DELETEDeprecated.static ReadOnlyFlagsNOT_CREATE_DELETEDeprecated.static ReadOnlyFlagsNOT_CREATE_DELETE_MULTIDeprecated.static ReadOnlyFlagsNOT_CREATE_NOT_DELETEDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanCreate()Deprecated.Is it possible to create new dependencies for this cellbooleancanDelete()Deprecated.Is there any dependencies to delete herestatic ReadOnlyFlagsgetFlagObject(boolean canCreate, boolean canDelete)Deprecated.Returns required instance of this object according to provided flagsstatic ReadOnlyFlagsgetFlagObject(boolean canCreate, boolean canDelete, int deleteCount)Deprecated.returns flag object with additional info, if there are more than one delete action availablebooleanisDeleteMulti()Deprecated.Specific case, when it is required to know if there are one or more delete action for this cellbooleanisEditable()Deprecated.is this cell can create or can delete at least one dependency
-
-
-
Field Detail
-
CREATE_DELETE
public static final ReadOnlyFlags CREATE_DELETE
Deprecated.
-
CREATE_DELETE_MULTI
public static final ReadOnlyFlags CREATE_DELETE_MULTI
Deprecated.
-
NOT_CREATE_DELETE
public static final ReadOnlyFlags NOT_CREATE_DELETE
Deprecated.
-
NOT_CREATE_DELETE_MULTI
public static final ReadOnlyFlags NOT_CREATE_DELETE_MULTI
Deprecated.
-
CREATE_NOT_DELETE
public static final ReadOnlyFlags CREATE_NOT_DELETE
Deprecated.
-
NOT_CREATE_NOT_DELETE
public static final ReadOnlyFlags NOT_CREATE_NOT_DELETE
Deprecated.
-
-
Method Detail
-
canCreate
public boolean canCreate()
Deprecated.Is it possible to create new dependencies for this cell- Returns:
trueif it is possible to create at least one new dependency
-
canDelete
public boolean canDelete()
Deprecated.Is there any dependencies to delete here- Returns:
trueif it is possible to delete at least one dependency
-
isDeleteMulti
public boolean isDeleteMulti()
Deprecated.Specific case, when it is required to know if there are one or more delete action for this cell- Returns:
trueif there aer multiple delete actions
-
getFlagObject
public static ReadOnlyFlags getFlagObject(boolean canCreate, boolean canDelete)
Deprecated.Returns required instance of this object according to provided flags- Parameters:
canCreate- can relationship be createdcanDelete- can existing relationships be deleted- Returns:
- readonly flag instance
-
getFlagObject
public static ReadOnlyFlags getFlagObject(boolean canCreate, boolean canDelete, int deleteCount)
Deprecated.returns flag object with additional info, if there are more than one delete action available- Parameters:
canCreate- can relationship be createdcanDelete- can existing relationships be deleteddeleteCount- probable delete action count- Returns:
- readonly flag object instance
-
isEditable
public boolean isEditable()
Deprecated.is this cell can create or can delete at least one dependency- Returns:
trueif can create or can delete
-
-