i3.dragos.gm.core.schema
Class DefaultSchemaChecker
java.lang.Object
i3.dragos.gm.core.schema.DefaultSchemaChecker
- All Implemented Interfaces:
- SchemaChecker
public final class DefaultSchemaChecker
- extends java.lang.Object
- implements SchemaChecker
The DefaultSchemaChecker
verifies the correctness of the
Schema's contents.
Actually, it does not do any checking on its own, since schema consistency
is continually enforced through the modifying methods themselves
(please consult the "Consistency" section in the documentation
for details).
It may be extended with custom SchemaCheckers by extensions or an
application GM to perform additional checks.
- Author:
- Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>
- See Also:
SchemaChecker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSchemaChecker
public DefaultSchemaChecker()
addCustomSchemaChecker
public void addCustomSchemaChecker(SchemaChecker gpc)
- Adds a custom SchemaChecker that can perform additional checks.
It will be appended after any other custom SchemaCheckers
that may have already been added.
- Parameters:
gpc
- The custom SchemaChecker (null
is allowed for convenience, and will result in no modification).
check
public void check(java.util.Collection<? extends GraphEntityClass> c)
throws SchemaCheckException,
DragosException
- Checks all entity classes in the Collection.
Forwards the call to all custom checkers in the same order as they were
added.
- Specified by:
check
in interface SchemaChecker
- Parameters:
c
- A Collection containing the entity classes to check.
- Throws:
SchemaCheckException
- if an inconsistency or similar problem was
found.
DragosException
- in case of internal errors.
Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.