Class Utility

java.lang.Object
org.openprovenance.prov.notation.Utility

public class Utility extends Object
  • Constructor Details

    • Utility

      public Utility()
    • Utility

      public Utility(DateTimeOption dateTimeOption, TimeZone optionalTimeZone)
  • Method Details

    • warn

      public static void warn(String s)
    • warn

      public static void warn(Exception e)
    • getParserForFile

      public PROV_NParser getParserForFile(String file)
    • getParserForStream

      public PROV_NParser getParserForStream(InputStream is)
    • getParserForCharStream

      public PROV_NParser getParserForCharStream(org.antlr.runtime.CharStream input) throws IOException
      Throws:
      IOException
    • convertSyntaxTreeToTree

      public org.antlr.runtime.tree.CommonTree convertSyntaxTreeToTree(String file)
    • convertSyntaxTreeToTree

      public org.antlr.runtime.tree.CommonTree convertSyntaxTreeToTree(InputStream is)
    • convertTreeToJavaBean

      public Object convertTreeToJavaBean(org.antlr.runtime.tree.CommonTree tree, ProvFactory pFactory)
    • convertBeanToHTML

      public String convertBeanToHTML(Document doc, ProvFactory pFactory)
    • convertSyntaxTreeToJavaBean

      public Object convertSyntaxTreeToJavaBean(String file, ProvFactory pFactory)
    • convertJavaBeanToJavaBean

      public Object convertJavaBeanToJavaBean(Document doc, ProvFactory pFactory)
      A conversion function that copies a Java Bean deeply.
      Parameters:
      doc - a Document to convert
      pFactory - a ProvFactory
      Returns:
      a copy of the Document
    • convertBeanToSyntaxTree

      public String convertBeanToSyntaxTree(Document doc, ProvFactory pFactory)
    • convertBeanToSyntaxTree

      public void convertBeanToSyntaxTree(Document doc, Writer writer, ProvFactory pFactory)
    • printTree

      public void printTree(org.antlr.runtime.tree.CommonTree t, int indent)
    • writeTextToFile

      public void writeTextToFile(String text, String filename)
    • writeTextToFile

      public void writeTextToFile(String text, Writer out)
    • writeDocument

      public void writeDocument(Document doc, String filename, ProvFactory pFactory)
    • writeDocument

      public void writeDocument(Document doc, OutputStream os, ProvFactory pFactory)
    • readDocument

      public Document readDocument(String filename, ProvFactory pFactory)
    • readDocument

      public Document readDocument(InputStream is, ProvFactory pFactory)