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

java.lang.Object
  extended by edu.uci.ics.jung.io.graphml.parser.AbstractElementParser<G,V,E>
All Implemented Interfaces:
ElementParser
Direct Known Subclasses:
DataElementParser, EdgeElementParser, EndpointElementParser, GraphElementParser, HyperEdgeElementParser, KeyElementParser, NodeElementParser, PortElementParser, StringElementParser

public abstract class AbstractElementParser<G extends Hypergraph<V,E>,V,E>
extends Object
implements ElementParser

Base class for element parsers - provides some minimal functionality.

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

Constructor Summary
protected AbstractElementParser(ParserContext<G,V,E> parserContext)
           
 
Method Summary
 void applyKeys(Metadata metadata)
           
 ElementParser getParser(String localName)
           
 ParserContext<G,V,E> getParserContext()
           
 ElementParser getUnknownParser()
           
protected  void verifyMatch(StartElement start, EndElement end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.uci.ics.jung.io.graphml.parser.ElementParser
parse
 

Constructor Detail

AbstractElementParser

protected AbstractElementParser(ParserContext<G,V,E> parserContext)
Method Detail

getParserContext

public ParserContext<G,V,E> getParserContext()

getParser

public ElementParser getParser(String localName)

applyKeys

public void applyKeys(Metadata metadata)

getUnknownParser

public ElementParser getUnknownParser()

verifyMatch

protected void verifyMatch(StartElement start,
                           EndElement end)
                    throws GraphIOException
Throws:
GraphIOException


Copyright © 2009. All Rights Reserved.