Package ch.tocco.nice2.model.entity.api
Interface DeleteBehavior
- All Superinterfaces:
ModelElement
- All Known Implementing Classes:
DeleteBehaviorImpl
Describes how relations behave when the entity is deleted.
It describes two things:- Is this cascaded deletion showed to the user?
It describes two things:
- - Does deleting the entitiy cascade to the relation-entities
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setCascade
(DeleteBehavior.Cascade cascade) void
setIsDefault
(boolean isDefault) void
-
Method Details
-
getCascade
DeleteBehavior.Cascade getCascade() -
getVisualisation
DeleteBehavior.Visualisation getVisualisation() -
setCascade
- Parameters:
cascade
- the cascade-behavior, non-null- Throws:
IllegalStateException
- when try to change the model after finished model-reading
-
setVisualisation
- Parameters:
visual
- the visual-behavior, non-null- Throws:
IllegalStateException
- when try to change the model after finished model-reading
-
isDefault
boolean isDefault() -
setIsDefault
void setIsDefault(boolean isDefault)
-