Class RelationPathHandler
java.lang.Object
ch.tocco.nice2.model.entity.impl.reading.relation.RelationPathHandler
- Direct Known Subclasses:
NullRelationPathHandler
Reads the model of the source and target tags in relation xml files.
-
Constructor Summary
ConstructorDescriptionRelationPathHandler
(NiceModelReceiver receiver, DisplayValueFactory displays, SelectorFactoryManager selectorFactories, ConfigModuleContext configModuleContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSelector
(String name, String type, String spec) void
finish()
label()
void
setDeletionBehavior
(DeleteBehavior.Cascade cascade, DeleteBehavior.Visualisation visualisation) void
setDisplay
(boolean show, Integer order) void
setEntityModel
(String entityModelName) void
void
void
setPropagateLock
(boolean propagateLock) void
startElement
(String elementName, URI resourceName)
-
Constructor Details
-
RelationPathHandler
public RelationPathHandler(NiceModelReceiver receiver, DisplayValueFactory displays, SelectorFactoryManager selectorFactories, ConfigModuleContext configModuleContext)
-
-
Method Details
-
startElement
@StartElement public void startElement(@ElementName String elementName, @ResourceName URI resourceName) throws ModelBuildException - Throws:
ModelBuildException
-
setEntityModel
@Attribute("entity-model") @Required public void setEntityModel(String entityModelName) throws InvalidValueException - Throws:
InvalidValueException
-
setName
-
setLabel
-
label
-
setPropagateLock
-
setDeletionBehavior
@Element("delete") public void setDeletionBehavior(@Attribute("cascade") @Required DeleteBehavior.Cascade cascade, @Attribute("visualisation") DeleteBehavior.Visualisation visualisation) throws ModelBuildException - Throws:
ModelBuildException
-
setDisplay
@Element("display") public void setDisplay(@Attribute("show") boolean show, @Attribute("order") Integer order) throws ModelBuildException - Throws:
ModelBuildException
-
addSelector
@Element("selector") @Cardinality(max=2147483647) public void addSelector(@Attribute("name") @Required String name, @Attribute("type") @Required String type, @Content String spec) throws ModelBuildException - Throws:
ModelBuildException
-
setVisualisation
-
finish
- Throws:
ModelBuildException
-
getRelation
-