1 /*
2 * Copyright (c) 2008, The JUNG Authors
3 *
4 * All rights reserved.
5 *
6 * This software is open-source under the BSD license; see either
7 * "license.txt" or
8 * https://github.com/jrtom/jung/blob/master/LICENSE for a description.
9 */
10
11 package edu.uci.ics.jung.io.graphml.parser;
12
13 import javax.xml.stream.XMLEventReader;
14 import javax.xml.stream.events.StartElement;
15
16 import edu.uci.ics.jung.io.GraphIOException;
17
18 /**
19 * Interface for all element parsers. All parsers will be registered with the registry.
20 *
21 * @author Nathan Mittler - nathan.mittler@gmail.com
22 *
23 * @see ElementParserRegistry
24 */
25 public interface ElementParser {
26 Object parse(XMLEventReader xmlEventReader, StartElement start)
27 throws GraphIOException;
28 }