Class GraphXMLFunctions

java.lang.Object
mgui.interfaces.Utility
mgui.io.domestic.graphs.xml.GraphXMLFunctions

public class GraphXMLFunctions
extends Utility
Utility class for XML operations involving graphs.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Summary

    Constructors
    Constructor Description
    GraphXMLFunctions()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String getEdgeTypeAsString​(edu.uci.ics.jung.graph.util.EdgeType type)
    Returns a string representation of type.
    static edu.uci.ics.jung.graph.util.EdgeType getEdgeTypeForString​(java.lang.String type)
    Returns the type corresponding to the string representation type.
    static AbstractGraphEdge getGraphEdgeInstance​(org.xml.sax.Attributes attributes)
    Returns a new instance of AbstractGraphEdge, from the given SAX attributes.
    static InterfaceAbstractGraph getGraphInstance​(org.xml.sax.Attributes attributes)
    Returns a new instance of InterfaceAbstractGraph, from the given SAX attributes.
    static AbstractGraphNode getGraphNodeInstance​(org.xml.sax.Attributes attributes)
    Returns a new instance of AbstractGraphNode, from the given SAX attributes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GraphXMLFunctions

      public GraphXMLFunctions()
  • Method Details

    • getGraphInstance

      public static InterfaceAbstractGraph getGraphInstance​(org.xml.sax.Attributes attributes)
      Returns a new instance of InterfaceAbstractGraph, from the given SAX attributes.
      Parameters:
      attributes -
      Returns:
      The new instance, or null if things didn't work out
    • getGraphEdgeInstance

      public static AbstractGraphEdge getGraphEdgeInstance​(org.xml.sax.Attributes attributes)
      Returns a new instance of AbstractGraphEdge, from the given SAX attributes.
      Parameters:
      attributes -
      Returns:
      The new instance, or null if things didn't work out
    • getGraphNodeInstance

      public static AbstractGraphNode getGraphNodeInstance​(org.xml.sax.Attributes attributes)
      Returns a new instance of AbstractGraphNode, from the given SAX attributes.
      Parameters:
      attributes -
      Returns:
      The new instance, or null if things didn't work out
    • getEdgeTypeAsString

      public static java.lang.String getEdgeTypeAsString​(edu.uci.ics.jung.graph.util.EdgeType type)
      Returns a string representation of type.
      Parameters:
      type -
      Returns:
    • getEdgeTypeForString

      public static edu.uci.ics.jung.graph.util.EdgeType getEdgeTypeForString​(java.lang.String type)
      Returns the type corresponding to the string representation type.
      Parameters:
      type -
      Returns:
      The type, or null if there is no corresponding type