Alignment API and Server 4.5 (1846M)

fr.inrialpes.exmo.align.impl.renderer
Class GenericReflectiveVisitor

java.lang.Object
  extended by 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.


Constructor Summary
GenericReflectiveVisitor()
           
 
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
 

Constructor Detail

GenericReflectiveVisitor

public GenericReflectiveVisitor()
Method Detail

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

Alignment API and Server 4.5 (1846M)

(C) INRIA & friends, 2003-2013