fr.inrialpes.exmo.align.impl.renderer
Class GenericReflectiveVisitor
java.lang.Object
fr.inrialpes.exmo.align.impl.renderer.GenericReflectiveVisitor
- Direct Known Subclasses:
- COWLMappingRendererVisitor, HTMLMetadataRendererVisitor, HTMLRendererVisitor, IndentedRendererVisitor, SEKTMappingRendererVisitor, SKOSRendererVisitor, SWRLRendererVisitor, XMLMetadataRendererVisitor, XSLTRendererVisitor
public class GenericReflectiveVisitor
- extends Object
This class offers the tools for implementing Reflective visitors,
i.e., visitors in which the visit method will depend on the actual
class of the visited object.
This is useful for the AlignmentVisitors because: Alignment, Cell
and Relation may be extended.
Method Summary |
protected Method |
getMethod(Class c,
Class root)
Finds the visit(X) method corresponding to the object class (subclass of a root class)
Look-up for X in the superclass of c (up to root, otherwise it loops)
If not found, look it up in the implemented interface
(there may be such a method for interfaces) |
boolean |
subsumedInvocableMethod(Object visitor,
Object o,
Class cl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericReflectiveVisitor
public GenericReflectiveVisitor()
getMethod
protected Method getMethod(Class c,
Class root)
- Finds the visit(X) method corresponding to the object class (subclass of a root class)
Look-up for X in the superclass of c (up to root, otherwise it loops)
If not found, look it up in the implemented interface
(there may be such a method for interfaces)
subsumedInvocableMethod
public boolean subsumedInvocableMethod(Object visitor,
Object o,
Class cl)
throws AlignmentException
- Throws:
AlignmentException
(C) INRIA & friends, 2003-2013