Package org.openprovenance.prov.notation
Class Utility
java.lang.Object
org.openprovenance.prov.notation.Utility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertBeanToHTML(Document doc, ProvFactory pFactory) voidconvertBeanToSyntaxTree(Document doc, Writer writer, ProvFactory pFactory) convertBeanToSyntaxTree(Document doc, ProvFactory pFactory) convertJavaBeanToJavaBean(Document doc, ProvFactory pFactory) A conversion function that copies a Java Bean deeply.convertSyntaxTreeToJavaBean(String file, ProvFactory pFactory) org.antlr.runtime.tree.CommonTreeorg.antlr.runtime.tree.CommonTreeconvertTreeToJavaBean(org.antlr.runtime.tree.CommonTree tree, ProvFactory pFactory) getParserForCharStream(org.antlr.runtime.CharStream input) getParserForFile(String file) voidprintTree(org.antlr.runtime.tree.CommonTree t, int indent) readDocument(InputStream is, ProvFactory pFactory) readDocument(String filename, ProvFactory pFactory) static voidstatic voidvoidwriteDocument(Document doc, OutputStream os, ProvFactory pFactory) voidwriteDocument(Document doc, String filename, ProvFactory pFactory) voidwriteTextToFile(String text, Writer out) voidwriteTextToFile(String text, String filename)
-
Constructor Details
-
Utility
public Utility() -
Utility
-
-
Method Details
-
warn
-
warn
-
getParserForFile
-
getParserForStream
-
getParserForCharStream
- Throws:
IOException
-
convertSyntaxTreeToTree
-
convertSyntaxTreeToTree
-
convertTreeToJavaBean
-
convertBeanToHTML
-
convertSyntaxTreeToJavaBean
-
convertJavaBeanToJavaBean
A conversion function that copies a Java Bean deeply.- Parameters:
doc- a Document to convertpFactory- a ProvFactory- Returns:
- a copy of the Document
-
convertBeanToSyntaxTree
-
convertBeanToSyntaxTree
-
printTree
public void printTree(org.antlr.runtime.tree.CommonTree t, int indent) -
writeTextToFile
-
writeTextToFile
-
writeDocument
-
writeDocument
-
readDocument
-
readDocument
-