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) HashMap<String,FileSourceGEXF.Attribute> |
edgeAttributesDefinition |
(package private) HashMap<String,FileSourceGEXF.Attribute> |
nodeAttributesDefinition |
(package private) FileSourceGEXF.GEXFConstants.TimeFormatType |
timeFormat |
Constructor and Description |
---|
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!
|
private String |
__attvalue(FileSourceGEXF.GEXFConstants.ClassType type,
String elementId)
name : ATTVALUE
attributes : ATTVALUEAttribute { FOR!
|
private HashSet<String> |
__attvalues(FileSourceGEXF.GEXFConstants.ClassType type,
String elementId)
name : ATTVALUES
attributes :
structure : ATTVALUE *
|
private void |
__color(FileSourceGEXF.GEXFConstants.ClassType type,
String id)
name : COLOR
attributes : COLORAttribute { R!
|
private String |
__creator()
name : CREATOR attributes : structure : string
|
private String |
__default()
name : DEFAULT
attributes :
structure : string
|
private String |
__description()
name : DESCRIPTION
attributes :
structure : string
|
private void |
__edge_shape(String edgeId)
name : EDGESHAPE
attributes : EDGESHAPEAttributes { VALUE!
|
private void |
__edge()
name : EDGE
attributes : EDGEAttribute { START, STARTOPEN, END, ENDOPEN, ID!
|
private void |
__edges()
name : EDGES
attributes : EDGESAttribute { 'count' }
structure : EDGE *
|
private void |
__gexf()
name : GEXF attributes : GEXFAttribute structure : META ?
|
private void |
__graph()
name : GRAPH
attributes : GRAPHAttribute
structure : ATTRIBUTES * ( NODES | EDGES )*
|
private String |
__keywords()
name : KEYWORDS attributes : structure : string
|
private void |
__meta()
name : META attributes : METAttribute structure : ( CREATOR |
KEYWORDS | DESCRIPTION )*
|
private void |
__node_shape(String nodeId)
name : NODESHAPE
attributes : NODESHAPEAttributes { VALUE!
|
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 String |
__options()
name : OPTIONS
attributes :
structure : string
|
private void |
__parent(String nodeId)
name : PARENT
attributes : PARENTAttribute { FOR!
|
private void |
__parents(String nodeId)
name : PARENTS
attributes :
structure : PARENT *
|
private void |
__position(String nodeId)
name : POSITION
attributes : POSITIONAttribute { X!
|
private void |
__size(String nodeId)
name : SIZE
attributes : SIZEAttribute { VALUE!
|
private void |
__spell()
name : SPELL
attributes : SPELLAttribute
structure :
|
private void |
__spells()
name : SPELLS
attributes :
structure : SPELL +
|
private void |
__thickness(String edgeId)
name : THICKNESS
attributes : THICKNESSAttribute { VALUE!
|
private long |
getTime(String time) |
__characters, checkRequiredAttributes, getAttributes
FileSourceGEXF.GEXFConstants.EdgeType defaultEdgeType
HashMap<String,FileSourceGEXF.Attribute> nodeAttributesDefinition
HashMap<String,FileSourceGEXF.Attribute> edgeAttributesDefinition
GEXFParser()
private void __gexf() throws IOException, XMLStreamException
IOException
XMLStreamException
private void __meta() throws IOException, XMLStreamException
IOException
XMLStreamException
private String __creator() throws IOException, XMLStreamException
IOException
XMLStreamException
private String __keywords() throws IOException, XMLStreamException
IOException
XMLStreamException
private String __description() throws IOException, XMLStreamException
name : DESCRIPTION attributes : structure : string
IOException
XMLStreamException
private void __graph() throws IOException, XMLStreamException
name : GRAPH attributes : GRAPHAttribute structure : ATTRIBUTES * ( NODES | EDGES )*
IOException
XMLStreamException
private void __attributes() throws IOException, XMLStreamException
name : ATTRIBUTES attributes : ATTRIBUTESAttributes { CLASS!, MODE, START, STARTOPEN, END, ENDOPEN } structure : ATTRIBUTE *
IOException
XMLStreamException
private FileSourceGEXF.Attribute __attribute() throws IOException, XMLStreamException
name : ATTRIBUTE attributes : ATTRIBUTEAttribute { ID, TITLE, TYPE } structure : ( DEFAULT | OPTIONS ) *
IOException
XMLStreamException
private String __default() throws IOException, XMLStreamException
name : DEFAULT attributes : structure : string
IOException
XMLStreamException
private String __options() throws IOException, XMLStreamException
name : OPTIONS attributes : structure : string
IOException
XMLStreamException
private void __nodes() throws IOException, XMLStreamException
name : NODES attributes : NODESAttribute { 'count' } structure : NODE *
IOException
XMLStreamException
private void __node() throws IOException, XMLStreamException
name : NODE attributes : NODEAttribute { 'pid', 'id', 'label', 'start', 'startopen', 'end', 'endopen' } structure : ( ATTVALUES | SPELLS | ( NODES | EDGES ) | PARENTS | ( COLOR | POSITION | SIZE | NODESHAPE ) ) *
IOException
XMLStreamException
private HashSet<String> __attvalues(FileSourceGEXF.GEXFConstants.ClassType type, String elementId) throws IOException, XMLStreamException
name : ATTVALUES attributes : structure : ATTVALUE *
IOException
XMLStreamException
private String __attvalue(FileSourceGEXF.GEXFConstants.ClassType type, String elementId) throws IOException, XMLStreamException
name : ATTVALUE attributes : ATTVALUEAttribute { FOR!, VALUE!, START, STARTOPEN, END, ENDOPEN } structure :
IOException
XMLStreamException
private void __spells() throws IOException, XMLStreamException
name : SPELLS attributes : structure : SPELL +
IOException
XMLStreamException
private void __spell() throws IOException, XMLStreamException
name : SPELL attributes : SPELLAttribute structure :
IOException
XMLStreamException
private void __parents(String nodeId) throws IOException, XMLStreamException
name : PARENTS attributes : structure : PARENT *
IOException
XMLStreamException
private void __parent(String nodeId) throws IOException, XMLStreamException
name : PARENT attributes : PARENTAttribute { FOR! } structure :
IOException
XMLStreamException
private void __color(FileSourceGEXF.GEXFConstants.ClassType type, String id) throws IOException, XMLStreamException
name : COLOR attributes : COLORAttribute { R!, G!, B!, A, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
IOException
XMLStreamException
private void __position(String nodeId) throws IOException, XMLStreamException
name : POSITION attributes : POSITIONAttribute { X!, Y!, Z!, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
IOException
XMLStreamException
private void __size(String nodeId) throws IOException, XMLStreamException
name : SIZE attributes : SIZEAttribute { VALUE!, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
IOException
XMLStreamException
private void __node_shape(String nodeId) throws IOException, XMLStreamException
name : NODESHAPE attributes : NODESHAPEAttributes { VALUE!, URI, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
IOException
XMLStreamException
private void __edges() throws IOException, XMLStreamException
name : EDGES attributes : EDGESAttribute { 'count' } structure : EDGE *
IOException
XMLStreamException
private void __edge() throws IOException, XMLStreamException
name : EDGE attributes : EDGEAttribute { START, STARTOPEN, END, ENDOPEN, ID!, TYPE, LABEL, SOURCE!, TARGET!, WEIGHT } structure : ( ATTVALUES | SPELLS | ( COLOR | THICKNESS | EDGESHAPE ) ) *
IOException
XMLStreamException
private void __edge_shape(String edgeId) throws IOException, XMLStreamException
name : EDGESHAPE attributes : EDGESHAPEAttributes { VALUE!, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
IOException
XMLStreamException
private void __thickness(String edgeId) throws IOException, XMLStreamException
name : THICKNESS attributes : THICKNESSAttribute { VALUE!, START, STARTOPEN, END, ENDOPEN } structure : SPELLS ?
IOException
XMLStreamException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses