|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.plugins.main.saveload.xmlparser.GraphmlHandlerImpl
public class GraphmlHandlerImpl
Field Summary | |
---|---|
BlackBoard |
bb
|
static boolean |
DEBUG
|
GraphModel |
g
|
static java.util.HashMap<java.lang.String,java.lang.String> |
graphMLEdgeKeys
|
static java.util.HashMap<java.lang.String,java.lang.String> |
graphMLGraphKeys
|
static java.util.HashMap<java.lang.String,java.lang.String> |
graphMLVertexKeys
|
java.util.HashMap<java.lang.String,VertexModel> |
vByID
|
Constructor Summary | |
---|---|
GraphmlHandlerImpl()
|
|
GraphmlHandlerImpl(BlackBoard blackBoard)
|
|
GraphmlHandlerImpl(GraphModel graph)
|
Method Summary | |
---|---|
void |
end_edge()
A container element end event handling method. |
void |
end_endpoint()
A container element end event handling method. |
void |
end_graph()
A container element end event handling method. |
void |
end_graphml()
A container element end event handling method. |
void |
end_hyperedge()
A container element end event handling method. |
void |
end_node()
A container element end event handling method. |
void |
end_port()
A container element end event handling method. |
GraphModel |
getGraph()
|
void |
handle_data(java.lang.String data,
org.xml.sax.Attributes meta)
A data element event handling method. |
void |
handle_desc(java.lang.String data,
org.xml.sax.Attributes meta)
A data element event handling method. |
void |
handle_key(java.lang.String data,
org.xml.sax.Attributes meta)
A data element event handling method. |
void |
handle_locator(org.xml.sax.Attributes meta)
An empty element event handling method. |
void |
start_edge(org.xml.sax.Attributes meta)
A container element start event handling method. |
void |
start_endpoint(org.xml.sax.Attributes meta)
A container element start event handling method. |
void |
start_graph(org.xml.sax.Attributes meta)
A container element start event handling method. |
void |
start_graphml(org.xml.sax.Attributes meta)
A container element start event handling method. |
void |
start_hyperedge(org.xml.sax.Attributes meta)
A container element start event handling method. |
void |
start_node(org.xml.sax.Attributes meta)
A container element start event handling method. |
void |
start_port(org.xml.sax.Attributes meta)
A container element start event handling method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUG
public java.util.HashMap<java.lang.String,VertexModel> vByID
public GraphModel g
public BlackBoard bb
public static java.util.HashMap<java.lang.String,java.lang.String> graphMLGraphKeys
public static java.util.HashMap<java.lang.String,java.lang.String> graphMLVertexKeys
public static java.util.HashMap<java.lang.String,java.lang.String> graphMLEdgeKeys
Constructor Detail |
---|
public GraphmlHandlerImpl(GraphModel graph)
graph
- if graph is null a new graph will be generated which can be get by getGraph() , otherwise the loaded graph
will be added to the given graphpublic GraphmlHandlerImpl()
GraphmlHandlerImpl(GraphModel graph)
public GraphmlHandlerImpl(BlackBoard blackBoard)
Method Detail |
---|
public GraphModel getGraph()
public void handle_key(java.lang.String data, org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
handle_key
in interface GraphmlHandler
data
- value or nullmeta
- attributes
org.xml.sax.SAXException
public void start_edge(org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
start_edge
in interface GraphmlHandler
meta
- attributes
org.xml.sax.SAXException
public void end_edge() throws org.xml.sax.SAXException
GraphmlHandler
end_edge
in interface GraphmlHandler
org.xml.sax.SAXException
public void handle_locator(org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
handle_locator
in interface GraphmlHandler
org.xml.sax.SAXException
public void handle_data(java.lang.String data, org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
handle_data
in interface GraphmlHandler
data
- value or nullmeta
- attributes
org.xml.sax.SAXException
public void start_node(org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
start_node
in interface GraphmlHandler
meta
- attributes
org.xml.sax.SAXException
public void end_node() throws org.xml.sax.SAXException
GraphmlHandler
end_node
in interface GraphmlHandler
org.xml.sax.SAXException
public void start_graph(org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
start_graph
in interface GraphmlHandler
meta
- attributes
org.xml.sax.SAXException
public void end_graph() throws org.xml.sax.SAXException
GraphmlHandler
end_graph
in interface GraphmlHandler
org.xml.sax.SAXException
public void start_endpoint(org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
start_endpoint
in interface GraphmlHandler
meta
- attributes
org.xml.sax.SAXException
public void end_endpoint() throws org.xml.sax.SAXException
GraphmlHandler
end_endpoint
in interface GraphmlHandler
org.xml.sax.SAXException
public void start_graphml(org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
start_graphml
in interface GraphmlHandler
meta
- attributes
org.xml.sax.SAXException
public void end_graphml() throws org.xml.sax.SAXException
GraphmlHandler
end_graphml
in interface GraphmlHandler
org.xml.sax.SAXException
public void start_hyperedge(org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
start_hyperedge
in interface GraphmlHandler
meta
- attributes
org.xml.sax.SAXException
public void end_hyperedge() throws org.xml.sax.SAXException
GraphmlHandler
end_hyperedge
in interface GraphmlHandler
org.xml.sax.SAXException
public void start_port(org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
start_port
in interface GraphmlHandler
meta
- attributes
org.xml.sax.SAXException
public void end_port() throws org.xml.sax.SAXException
GraphmlHandler
end_port
in interface GraphmlHandler
org.xml.sax.SAXException
public void handle_desc(java.lang.String data, org.xml.sax.Attributes meta) throws org.xml.sax.SAXException
GraphmlHandler
handle_desc
in interface GraphmlHandler
data
- value or nullmeta
- attributes
org.xml.sax.SAXException
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |