y.io.gml
Class InterEdgeParser
java.lang.Object
|
+--y.io.gml.ItemParser
|
+--y.io.gml.InterEdgeParser
- All Implemented Interfaces:
- GMLTokenizer.Callback
- public class InterEdgeParser
- extends ItemParser
This class can parse InterEdges from valid GML
Methods inherited from class y.io.gml.ItemParser |
addAttribute, addChild, attribute, attribute, begin, beginScope, childFinished, endScope, getAttributes, getBoolean, getDouble, getDouble, getInt, getInt, getLevel, getString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterEdgeParser
public InterEdgeParser(Graph2D graph,
Map id2Edge,
HierarchicGraphParser parent)
end
public void end()
- Description copied from class:
ItemParser
- this method will be called as soon as
the parser leaves the scope. This implementation does nothing.
Subclasses should nevertheless make a super call.
- Overrides:
end
in class ItemParser
findNode
protected Node findNode(String pathName,
HierarchicGraphParser parser)
getItem
public Object getItem()
- Description copied from class:
ItemParser
- Returns the "product" of this scope. This method should be
called after this parser has left the scope, i.e. after
ItemParser.end()
has been called. The latter should construct
the resulting item from the collected data and this item
should be returned by this method. By default, this method
return the map of the attributes.
- Overrides:
getItem
in class ItemParser
- Returns:
- the result of the parsing, in this case a
Map