001 // GraphLab Project: http://graphlab.sharif.edu 002 // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology 003 // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/ 004 package graphlab.plugins.main.saveload.xmlparser; 005 006 import org.xml.sax.Attributes; 007 import org.xml.sax.SAXException; 008 009 public interface GraphmlHandler { 010 011 /** 012 * A data element event handling method. 013 * 014 * @param data value or null 015 * @param meta attributes 016 */ 017 public void handle_key(final java.lang.String data, final Attributes meta) throws SAXException; 018 019 /** 020 * A container element start event handling method. 021 * 022 * @param meta attributes 023 */ 024 public void start_edge(final Attributes meta) throws SAXException; 025 026 /** 027 * A container element end event handling method. 028 */ 029 public void end_edge() throws SAXException; 030 031 /** 032 * An empty element event handling method. 033 * 034 * @param data value or null 035 */ 036 public void handle_locator(final Attributes meta) throws SAXException; 037 038 /** 039 * A data element event handling method. 040 * 041 * @param data value or null 042 * @param meta attributes 043 */ 044 public void handle_data(final java.lang.String data, final Attributes meta) throws SAXException; 045 046 /** 047 * A container element start event handling method. 048 * 049 * @param meta attributes 050 */ 051 public void start_node(final Attributes meta) throws SAXException; 052 053 /** 054 * A container element end event handling method. 055 */ 056 public void end_node() throws SAXException; 057 058 /** 059 * A container element start event handling method. 060 * 061 * @param meta attributes 062 */ 063 public void start_graph(final Attributes meta) throws SAXException; 064 065 /** 066 * A container element end event handling method. 067 */ 068 public void end_graph() throws SAXException; 069 070 /** 071 * A container element start event handling method. 072 * 073 * @param meta attributes 074 */ 075 public void start_endpoint(final Attributes meta) throws SAXException; 076 077 /** 078 * A container element end event handling method. 079 */ 080 public void end_endpoint() throws SAXException; 081 082 /** 083 * A container element start event handling method. 084 * 085 * @param meta attributes 086 */ 087 public void start_graphml(final Attributes meta) throws SAXException; 088 089 /** 090 * A container element end event handling method. 091 */ 092 public void end_graphml() throws SAXException; 093 094 /** 095 * A container element start event handling method. 096 * 097 * @param meta attributes 098 */ 099 public void start_hyperedge(final Attributes meta) throws SAXException; 100 101 /** 102 * A container element end event handling method. 103 */ 104 public void end_hyperedge() throws SAXException; 105 106 /** 107 * A container element start event handling method. 108 * 109 * @param meta attributes 110 */ 111 public void start_port(final Attributes meta) throws SAXException; 112 113 /** 114 * A container element end event handling method. 115 */ 116 public void end_port() throws SAXException; 117 118 /** 119 * A data element event handling method. 120 * 121 * @param data value or null 122 * @param meta attributes 123 */ 124 public void handle_desc(final java.lang.String data, final Attributes meta) throws SAXException; 125 }