|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.xsugar.Main
public class Main
Command-line interface.
| Method Summary | |
|---|---|
static void |
analyzeReversibility(String xsg_file,
String xsg,
String xsg_encoding,
boolean verbose,
int left_unfold_level,
String left_unfold_left,
String left_unfold_right,
boolean tokenize)
Analyzes reversibility. |
static void |
analyzeValidity(String xsg_file,
String xsg,
String xsg_encoding,
String schema,
String schema_root,
boolean verbose)
Analyzes validity. |
static void |
main(String[] args)
Main method. |
static void |
setOut(PrintWriter out)
Sets output print writer. |
static String |
transformFromXML(String xsg_file,
String xsg,
String xsg_encoding,
String xml,
boolean verbose)
Transforms from XML to non-XML. |
static String |
transformToXML(String xsg_file,
String xsg,
String xsg_encoding,
String txt,
boolean verbose)
Transforms from non-XML to XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void analyzeReversibility(String xsg_file,
String xsg,
String xsg_encoding,
boolean verbose,
int left_unfold_level,
String left_unfold_left,
String left_unfold_right,
boolean tokenize)
throws IOException,
XSugarException,
InstantiationException,
IllegalAccessException,
ClassNotFoundException
xsg_file - name of XSugar stylesheetxsg - XSugar stylesheetxsg_encoding - character encoding of stylesheet filesverbose - verbose output if trueleft_unfold_level - unfold number (only for left grammar!)left_unfold_left - unfolding left parentheses symbolsleft_unfold_right - unfolding right parentheses symbolstokenize - if true, tokenize grammars before ambiguity analysis
IOException - if I/O error occurs
XSugarException - if the XSugar stylesheet is illegal
ClassNotFoundException - if unable to perform ambiguity analysis
IllegalAccessException - if unable to perform ambiguity analysis
InstantiationException - if unable to perform ambiguity analysissetOut(PrintWriter)
public static void analyzeValidity(String xsg_file,
String xsg,
String xsg_encoding,
String schema,
String schema_root,
boolean verbose)
throws IOException,
XSugarException,
ParseException
xsg_file - name of XSugar stylesheetxsg - XSugar stylesheetxsg_encoding - character encoding of stylesheet filesschema - URL or path of schemaschema_root - schema_root root element (on the form {namespaceURI}localname), if null then auto-detect (for DTD) or use all globally defined (for XML Schema)verbose - verbose output if true
IOException - if I/O error occurs
XSugarException - if the XSugar stylesheet is illegal
ParseExceptionsetOut(PrintWriter)public static void main(String[] args)
public static void setOut(PrintWriter out)
System.out with default encoding.
out - print writer for output
public static String transformFromXML(String xsg_file,
String xsg,
String xsg_encoding,
String xml,
boolean verbose)
throws IOException,
XSugarException,
ParseException
xsg_file - name of XSugar stylesheetxsg - XSugar stylesheetxsg_encoding - character encoding of stylesheet filesxml - XML documentverbose - verbose output if true
IOException - if I/O error occurs
XSugarException - if the XSugar stylesheet is illegal
ParseException - if parse error occurs in input
public static String transformToXML(String xsg_file,
String xsg,
String xsg_encoding,
String txt,
boolean verbose)
throws IOException,
XSugarException,
ParseException
xsg_file - name of XSugar stylesheetxsg - XSugar stylesheetxsg_encoding - character encoding of stylesheet filestxt - input textverbose - verbose output if true
IOException - if I/O error occurs
XSugarException - if the XSugar stylesheet is illegal
ParseException - if parse error occurs in input
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||