Package eu.bandm.tools.umod
Class Checker
java.lang.Object
eu.bandm.tools.umod.Checker
Checks the consistency of a particular umod meta-model.
Currently only few consistency checks are applied.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classChecks whether there is at most one field marked as KEY field.protected classAux class to check the uniqueness of field names on each path from root to leaf. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UMod.ForestThe meta-model to check.protected final MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> The drain of all messages. -
Constructor Summary
ConstructorsConstructorDescriptionChecker(UMod.Forest model, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Only constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()Perform consistency checks.protected voiderror(UMod.FieldDef fd, String text) Send an error message.static booleanReturn whether a field is defined as abstract getter or abstract setter.
-
Field Details
-
model
The meta-model to check. -
msg
The drain of all messages.
-
-
Constructor Details
-
Checker
Only constructor.- Parameters:
model- the meta-model to checkmsg- the drain of all messages.
-
-
Method Details
-
isAbstract
Return whether a field is defined as abstract getter or abstract setter.- Returns:
- whether a field is defined as abstract getter or abstract setter.
-
check
public void check()Perform consistency checks. -
error
Send an error message.- Parameters:
fd- the field which is involved.text- the error text
-