org.graphdrawing.graphml.util
Interface Lookup

All Known Implementing Classes:
GraphMLParseContext, GraphMLWriteContext

public interface Lookup

Interface for lookup capabilities. This allows to retrieve additional implementation aspects that are not provided by an interface contract. This is used mainly by the parse and write context classes, that allow to pass arbitrary additional information into the current parse/write state without introducing additional dependencies into the core library classes.

See Also:
GraphMLParseContext, GraphMLWriteContext

Method Summary
 Object lookup(Class c)
          Retrieve an object that is indexed by class c.
 

Method Detail

lookup

public Object lookup(Class c)
Retrieve an object that is indexed by class c. The return value should be an instance of class c or a subclass.

Parameters:
c - The class for which we want an implementation
Returns:
an implementation of c.


Copyright ©2000-2008, yWorks GmbH. All rights reserved.