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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
void
setDeletionBehavior
(DeleteBehavior.Cascade cascade, DeleteBehavior.Visualisation visualisation) void
setEntityModel
(String entityModelName) void
void
void
setPropagateLock
(boolean propagateLock) Methods inherited from class ch.tocco.nice2.model.entity.impl.reading.relation.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:
setEntityModel
in classRelationPathHandler
- Throws:
InvalidValueException
-
setName
- Overrides:
setName
in classRelationPathHandler
-
setLabel
- Overrides:
setLabel
in classRelationPathHandler
-
setPropagateLock
- Overrides:
setPropagateLock
in classRelationPathHandler
-
setDeletionBehavior
@Element("delete") public void setDeletionBehavior(@Attribute("cascade") @Required DeleteBehavior.Cascade cascade, @Attribute("visualisation") DeleteBehavior.Visualisation visualisation) - Overrides:
setDeletionBehavior
in classRelationPathHandler
-
finish
- Overrides:
finish
in classRelationPathHandler
-
getRelation
- Overrides:
getRelation
in classRelationPathHandler
-