private class FileSourceGEXF.GEXFParser extends FileSourceXML.Parser implements FileSourceGEXF.GEXFConstants
FileSourceGEXF.GEXFConstants.ATTRIBUTEAttribute, FileSourceGEXF.GEXFConstants.ATTRIBUTESAttribute, FileSourceGEXF.GEXFConstants.AttributeType, FileSourceGEXF.GEXFConstants.ATTVALUEAttribute, FileSourceGEXF.GEXFConstants.Balise, FileSourceGEXF.GEXFConstants.ClassType, FileSourceGEXF.GEXFConstants.COLORAttribute, FileSourceGEXF.GEXFConstants.EDGEAttribute, FileSourceGEXF.GEXFConstants.EDGESAttribute, FileSourceGEXF.GEXFConstants.EDGESHAPEAttribute, FileSourceGEXF.GEXFConstants.EdgeShapeType, FileSourceGEXF.GEXFConstants.EdgeType, FileSourceGEXF.GEXFConstants.GEXFAttribute, FileSourceGEXF.GEXFConstants.GRAPHAttribute, FileSourceGEXF.GEXFConstants.IDType, FileSourceGEXF.GEXFConstants.METAAttribute, FileSourceGEXF.GEXFConstants.ModeType, FileSourceGEXF.GEXFConstants.NODEAttribute, FileSourceGEXF.GEXFConstants.NODESAttribute, FileSourceGEXF.GEXFConstants.NODESHAPEAttribute, FileSourceGEXF.GEXFConstants.NodeShapeType, FileSourceGEXF.GEXFConstants.PARENTAttribute, FileSourceGEXF.GEXFConstants.POSITIONAttribute, FileSourceGEXF.GEXFConstants.SIZEAttribute, FileSourceGEXF.GEXFConstants.SPELLAttribute, FileSourceGEXF.GEXFConstants.THICKNESSAttribute, FileSourceGEXF.GEXFConstants.TimeFormatType, FileSourceGEXF.GEXFConstants.WeightType
Modifier and Type | Field and Description |
---|---|
(package private) FileSourceGEXF.GEXFConstants.EdgeType |
defaultEdgeType |
(package private) java.util.HashMap<java.lang.String,FileSourceGEXF.Attribute> |
edgeAttributesDefinition |
(package private) java.util.HashMap<java.lang.String,FileSourceGEXF.Attribute> |
nodeAttributesDefinition |
(package private) FileSourceGEXF.GEXFConstants.TimeFormatType |
timeFormat |
Constructor and Description |
---|
FileSourceGEXF.GEXFParser() |
Modifier and Type | Method and Description |
---|---|
private FileSourceGEXF.Attribute |
__attribute()
name : ATTRIBUTE
attributes : ATTRIBUTEAttribute { ID, TITLE, TYPE }
structure : ( DEFAULT | OPTIONS ) *
|
private void |
__attributes()
name : ATTRIBUTES
attributes : ATTRIBUTESAttributes { CLASS!, MODE, START, STARTOPEN, END, ENDOPEN }
structure : ATTRIBUTE *
|
private java.lang.String |
__attvalue(FileSourceGEXF.GEXFConstants.ClassType type,
java.lang.String elementId)
name : ATTVALUE
attributes : ATTVALUEAttribute { FOR!, VALUE!, START, STARTOPEN, END, ENDOPEN }
structure :
|
private java.util.HashSet<java.lang.String> |
__attvalues(FileSourceGEXF.GEXFConstants.ClassType type,
java.lang.String elementId)
name : ATTVALUES
attributes :
structure : ATTVALUE *
|
private void |
__color(FileSourceGEXF.GEXFConstants.ClassType type,
java.lang.String id)
name : COLOR
attributes : COLORAttribute { R!, G!, B!, A, START, STARTOPEN, END, ENDOPEN }
structure : SPELLS ?
|
private java.lang.String |
__creator()
name : CREATOR attributes : structure : string
|
private java.lang.String |
__default()
name : DEFAULT
attributes :
structure : string
|
private java.lang.String |
__description()
name : DESCRIPTION
attributes :
structure : string
|
private void |
__edge_shape(java.lang.String edgeId)
name : EDGESHAPE
attributes : EDGESHAPEAttributes { VALUE!, START, STARTOPEN, END, ENDOPEN }
structure : SPELLS ?
|
private void |
__edge()
name : EDGE
attributes : EDGEAttribute { START, STARTOPEN, END, ENDOPEN, ID!, TYPE, LABEL, SOURCE!, TARGET!, WEIGHT }
structure : ( ATTVALUES | SPELLS | ( COLOR | THICKNESS | EDGESHAPE ) ) *
|
private void |
__edges()
name : EDGES
attributes : EDGESAttribute { 'count' }
structure : EDGE *
|
private void |
__gexf()
name : GEXF attributes : GEXFAttribute structure : META ? GRAPH
|
private void |
__graph()
name : GRAPH
attributes : GRAPHAttribute
structure : ATTRIBUTES * ( NODES | EDGES )*
|
private java.lang.String |
__keywords()
name : KEYWORDS attributes : structure : string
|
private void |
__meta()
name : META attributes : METAttribute structure : ( CREATOR |
KEYWORDS | DESCRIPTION )*
|
private void |
__node_shape(java.lang.String nodeId)
name : NODESHAPE
attributes : NODESHAPEAttributes { VALUE!, URI, START, STARTOPEN, END, ENDOPEN }
structure : SPELLS ?
|
private void |
__node()
name : NODE
attributes : NODEAttribute { 'pid', 'id', 'label', 'start', 'startopen', 'end', 'endopen' }
structure : ( ATTVALUES | SPELLS | ( NODES | EDGES ) | PARENTS | ( COLOR | POSITION | SIZE | NODESHAPE ) ) *
|
private void |
__nodes()
name : NODES
attributes : NODESAttribute { 'count' }
structure : NODE *
|
private java.lang.String |
__options()
name : OPTIONS
attributes :
structure : string
|
private void |
__parent(java.lang.String nodeId)
name : PARENT
attributes : PARENTAttribute { FOR! }
structure :
|
private void |
__parents(java.lang.String nodeId)
name : PARENTS
attributes :
structure : PARENT *
|
private void |
__position(java.lang.String nodeId)
name : POSITION
attributes : POSITIONAttribute { X!, Y!, Z!, START, STARTOPEN, END, ENDOPEN }
structure : SPELLS ?
|
private void |
__size(java.lang.String nodeId)
name : SIZE
attributes : SIZEAttribute { VALUE!, START, STARTOPEN, END, ENDOPEN }
structure : SPELLS ?
|
private void |
__spell()
name : SPELL
attributes : SPELLAttribute
structure :
|
private void |
__spells()
name : SPELLS
attributes :
structure : SPELL +
|
private void |
__thickness(java.lang.String edgeId)
name : THICKNESS
attributes : THICKNESSAttribute { VALUE!, START, STARTOPEN, END, ENDOPEN }
structure : SPELLS ?
|
private long |
getTime(java.lang.String time) |
__characters, checkRequiredAttributes, getAttributes
FileSourceGEXF.GEXFConstants.EdgeType defaultEdgeType
FileSourceGEXF.GEXFConstants.TimeFormatType timeFormat
java.util.HashMap<java.lang.String,FileSourceGEXF.Attribute> nodeAttributesDefinition
java.util.HashMap<java.lang.String,FileSourceGEXF.Attribute> edgeAttributesDefinition
private long getTime(java.lang.String time)
private void __gexf() throws java.io.IOException, javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException
private void __meta() throws java.io.IOException, javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException
private java.lang.String __creator() throws java.io.IOException, javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException
private java.lang.String __keywords() throws java.io.IOException, javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException
private java.lang.String __description() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : DESCRIPTION attributes : structure : string
java.io.IOException
javax.xml.stream.XMLStreamException
private void __graph() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : GRAPH attributes : GRAPHAttribute structure : ATTRIBUTES * ( NODES | EDGES )*
java.io.IOException
javax.xml.stream.XMLStreamException
private void __attributes() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : ATTRIBUTES attributes : ATTRIBUTESAttributes { CLASS!, MODE, START, STARTOPEN, END, ENDOPEN } structure : ATTRIBUTE *
java.io.IOException
javax.xml.stream.XMLStreamException
private FileSourceGEXF.Attribute __attribute() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : ATTRIBUTE attributes : ATTRIBUTEAttribute { ID, TITLE, TYPE } structure : ( DEFAULT | OPTIONS ) *
java.io.IOException
javax.xml.stream.XMLStreamException
private java.lang.String __default() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : DEFAULT attributes : structure : string
java.io.IOException
javax.xml.stream.XMLStreamException
private java.lang.String __options() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : OPTIONS attributes : structure : string
java.io.IOException
javax.xml.stream.XMLStreamException
private void __nodes() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : NODES attributes : NODESAttribute { 'count' } structure : NODE *
java.io.IOException
javax.xml.stream.XMLStreamException
private void __node() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : NODE attributes : NODEAttribute { 'pid', 'id', 'label', 'start', 'startopen', 'end', 'endopen' } structure : ( ATTVALUES | SPELLS | ( NODES | EDGES ) | PARENTS | ( COLOR | POSITION | SIZE | NODESHAPE ) ) *
java.io.IOException
javax.xml.stream.XMLStreamException
private java.util.HashSet<java.lang.String> __attvalues(FileSourceGEXF.GEXFConstants.ClassType type, java.lang.String elementId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : ATTVALUES attributes : structure : ATTVALUE *
java.io.IOException
javax.xml.stream.XMLStreamException
private java.lang.String __attvalue(FileSourceGEXF.GEXFConstants.ClassType type, java.lang.String elementId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : ATTVALUE attributes : ATTVALUEAttribute { FOR!, VALUE!, START, STARTOPEN, END, ENDOPEN } structure :
java.io.IOException
javax.xml.stream.XMLStreamException
private void __spells() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : SPELLS attributes : structure : SPELL +
java.io.IOException
javax.xml.stream.XMLStreamException
private void __spell() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : SPELL attributes : SPELLAttribute structure :
java.io.IOException
javax.xml.stream.XMLStreamException
private void __parents(java.lang.String nodeId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : PARENTS attributes : structure : PARENT *
java.io.IOException
javax.xml.stream.XMLStreamException
private void __parent(java.lang.String nodeId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : PARENT attributes : PARENTAttribute { FOR! } structure :
java.io.IOException
javax.xml.stream.XMLStreamException
private void __color(FileSourceGEXF.GEXFConstants.ClassType type, java.lang.String id) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : COLOR attributes : COLORAttribute { R!, G!, B!, A, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
java.io.IOException
javax.xml.stream.XMLStreamException
private void __position(java.lang.String nodeId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : POSITION attributes : POSITIONAttribute { X!, Y!, Z!, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
java.io.IOException
javax.xml.stream.XMLStreamException
private void __size(java.lang.String nodeId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : SIZE attributes : SIZEAttribute { VALUE!, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
java.io.IOException
javax.xml.stream.XMLStreamException
private void __node_shape(java.lang.String nodeId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : NODESHAPE attributes : NODESHAPEAttributes { VALUE!, URI, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
java.io.IOException
javax.xml.stream.XMLStreamException
private void __edges() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : EDGES attributes : EDGESAttribute { 'count' } structure : EDGE *
java.io.IOException
javax.xml.stream.XMLStreamException
private void __edge() throws java.io.IOException, javax.xml.stream.XMLStreamException
name : EDGE attributes : EDGEAttribute { START, STARTOPEN, END, ENDOPEN, ID!, TYPE, LABEL, SOURCE!, TARGET!, WEIGHT } structure : ( ATTVALUES | SPELLS | ( COLOR | THICKNESS | EDGESHAPE ) ) *
java.io.IOException
javax.xml.stream.XMLStreamException
private void __edge_shape(java.lang.String edgeId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : EDGESHAPE attributes : EDGESHAPEAttributes { VALUE!, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
java.io.IOException
javax.xml.stream.XMLStreamException
private void __thickness(java.lang.String edgeId) throws java.io.IOException, javax.xml.stream.XMLStreamException
name : THICKNESS attributes : THICKNESSAttribute { VALUE!, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
java.io.IOException
javax.xml.stream.XMLStreamException