Interface GraphReaderWriter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Object getProperty​(String name)
      Returns a property for the reader/writer.
      Graph read()
      Creates a Graph from some permanent representation.
      void setProperty​(String name, Object obj)
      Sets a property for the reader/writer.
      void write​(Graph g)
      Writes the graph to a permanent representation.
    • Method Detail

      • setProperty

        void setProperty​(String name,
                         Object obj)
        Sets a property for the reader/writer.
        Parameters:
        name - Name of the property.
        obj - Value of the property.
      • getProperty

        Object getProperty​(String name)
        Returns a property for the reader/writer. This method will return null if the property has not been set with a call to setProperty(String,Object).
        Parameters:
        name - Name of the property.
        Returns:
        Value of the property or null if the property is undefined.
      • read

        Graph read()
            throws Exception
        Creates a Graph from some permanent representation.
        Returns:
        The represented graph.
        Throws:
        Exception
      • write

        void write​(Graph g)
            throws Exception
        Writes the graph to a permanent representation.
        Parameters:
        g - The graph to be
        Throws:
        Exception