Class RelationModelHandler
java.lang.Object
ch.tocco.nice2.model.entity.impl.reading.relation.AbstractRelationModelHandler
ch.tocco.nice2.model.entity.impl.reading.relation.RelationModelHandler
- All Implemented Interfaces:
ValidatorReceivable
public final class RelationModelHandler
extends AbstractRelationModelHandler
implements ValidatorReceivable
The XML receiver for the relation model.
The "root" of building a relation.
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.entity.impl.reading.relation.AbstractRelationModelHandler
cardinality, defaultValueReceiver, displays, receiver, resolver, selectors, sourceHndlr, targetHndlr, validator, validatorReceiver
-
Constructor Summary
ConstructorDescriptionRelationModelHandler
(NiceModelReceiver receiver, DisplayValueFactory displays, SelectorFactoryManager selectors, ValidatorHandlerContextFactory validatorHandlerContextFactory, DefaultValueResolver resolver, ConfigModuleContext configModuleContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
void
setDisabled
(boolean disabled) void
setDocumentation
(String documentation) void
void
setReplace
(boolean replace) Tells if the relation model replaces an existing one, or if it's a new one.source()
target()
Methods inherited from class ch.tocco.nice2.model.entity.impl.reading.relation.AbstractRelationModelHandler
addDefaultValues, addNameAndDefaultLabels, addValidations, addValidator, parseCardinality, setDefaultValueToRelation, setSchema, startElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.validate.api.ValidatorReceivable
addValidator
-
Constructor Details
-
RelationModelHandler
public RelationModelHandler(NiceModelReceiver receiver, DisplayValueFactory displays, SelectorFactoryManager selectors, ValidatorHandlerContextFactory validatorHandlerContextFactory, DefaultValueResolver resolver, ConfigModuleContext configModuleContext)
-
-
Method Details
-
source
-
target
-
setDocumentation
-
setDisabled
-
setReplace
Tells if the relation model replaces an existing one, or if it's a new one. If this info does not match actual facts then an exception is thrown when booting. -
setLink
-
finish
- Throws:
InvalidValueException
-