Class NullRelationPathHandler
java.lang.Object
ch.tocco.nice2.model.entity.impl.reading.relation.RelationPathHandler
ch.tocco.nice2.model.entity.impl.reading.relation.NullRelationPathHandler
Model reader that gets used when the relation is disabled.
It reads the child elements of the relation tag when the relation tag itself is set to disabled. This is needed because the model reader goes and links the entities, but the case can be that they are disabled true, and thus are nonexistent at this stage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()voidsetDeletionBehavior(DeleteBehavior.Cascade cascade, DeleteBehavior.Visualisation visualisation) voidsetEntityModel(String entityModelName) voidvoidvoidsetPropagateLock(boolean propagateLock) Methods inherited from class RelationPathHandler
addSelector, label, setDisplay, setVisualisation, startElement
-
Constructor Details
-
NullRelationPathHandler
public NullRelationPathHandler()
-
-
Method Details
-
setEntityModel
@Attribute("entity-model") @Required public void setEntityModel(String entityModelName) throws InvalidValueException - Overrides:
setEntityModelin classRelationPathHandler- Throws:
InvalidValueException
-
setName
- Overrides:
setNamein classRelationPathHandler
-
setLabel
- Overrides:
setLabelin classRelationPathHandler
-
setPropagateLock
- Overrides:
setPropagateLockin classRelationPathHandler
-
setDeletionBehavior
@Element("delete") public void setDeletionBehavior(@Attribute("cascade") @Required DeleteBehavior.Cascade cascade, @Attribute("visualisation") DeleteBehavior.Visualisation visualisation) - Overrides:
setDeletionBehaviorin classRelationPathHandler
-
finish
- Overrides:
finishin classRelationPathHandler
-
getRelation
- Overrides:
getRelationin classRelationPathHandler
-