edu.uci.ics.jung.io.graphml.parser
Class ParserContext<G extends Hypergraph<V,E>,V,E>

java.lang.Object
  extended by edu.uci.ics.jung.io.graphml.parser.ParserContext<G,V,E>
Type Parameters:
G - The graph type
V - The vertex type
E - The edge type

public class ParserContext<G extends Hypergraph<V,E>,V,E>
extends Object

Provides resources related to the current parsing context.

Author:
Nathan Mittler - nathan.mittler@gmail.com

Constructor Summary
ParserContext(ElementParserRegistry<G,V,E> elementParserRegistry, KeyMap keyMap, org.apache.commons.collections15.Transformer<GraphMetadata,G> graphTransformer, org.apache.commons.collections15.Transformer<NodeMetadata,V> vertexTransformer, org.apache.commons.collections15.Transformer<EdgeMetadata,E> edgeTransformer, org.apache.commons.collections15.Transformer<HyperEdgeMetadata,E> hyperEdgeTransformer)
           
 
Method Summary
 E createEdge(EdgeMetadata metadata)
           
 G createGraph(GraphMetadata metadata)
           
 E createHyperEdge(HyperEdgeMetadata metadata)
           
 V createVertex(NodeMetadata metadata)
           
 ElementParserRegistry<G,V,E> getElementParserRegistry()
           
 KeyMap getKeyMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserContext

public ParserContext(ElementParserRegistry<G,V,E> elementParserRegistry,
                     KeyMap keyMap,
                     org.apache.commons.collections15.Transformer<GraphMetadata,G> graphTransformer,
                     org.apache.commons.collections15.Transformer<NodeMetadata,V> vertexTransformer,
                     org.apache.commons.collections15.Transformer<EdgeMetadata,E> edgeTransformer,
                     org.apache.commons.collections15.Transformer<HyperEdgeMetadata,E> hyperEdgeTransformer)
Method Detail

getElementParserRegistry

public ElementParserRegistry<G,V,E> getElementParserRegistry()

getKeyMap

public KeyMap getKeyMap()

createGraph

public G createGraph(GraphMetadata metadata)

createVertex

public V createVertex(NodeMetadata metadata)

createEdge

public E createEdge(EdgeMetadata metadata)

createHyperEdge

public E createHyperEdge(HyperEdgeMetadata metadata)


Copyright © 2009. All Rights Reserved.