public class PetalTool extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug
set to true for debugging
|
static int |
exitCode |
protected String |
format |
protected String |
input |
protected String |
output |
protected boolean |
showTree |
protected String |
srcRoot |
static boolean |
testMode |
static String |
VERSION |
Constructor and Description |
---|
PetalTool() |
Modifier and Type | Method and Description |
---|---|
void |
exportXmi(String input,
String output)
export the given input Rational Rose mdl file to the given output Rational
Rose mdl file
|
PetalFile |
getTree(String input)
get the PetalFile Tree for the given input
|
void |
handle(Throwable t)
handle the given Throwable (in commandline mode)
|
static void |
main(String[] args)
XMIExport from the command line
|
protected int |
maininstance(String[] args)
main instance - this is the non-static version of main - it will run as a
static main would but return it's exitCode to the static main the static
main will then decide whether to do a System.exit(exitCode) or not.
|
void |
showHelp()
show Help
|
static void |
showVersion()
show the Version
|
void |
usage(String msg)
show a usage
|
public static final String VERSION
public static boolean testMode
public static int exitCode
protected boolean debug
protected String input
protected String output
protected String format
protected String srcRoot
protected boolean showTree
public void handle(Throwable t)
t
- public static void showVersion()
public void usage(String msg)
public void showHelp()
public void exportXmi(String input, String output) throws Exception
input
- - the path to the .mdl file if null then use System.inoutput
- - the path to the .xmi output file if null use System.outException
public PetalFile getTree(String input)
input
- - the input file name or "-" for stdinprotected int maininstance(String[] args)
args
- - command line argumentsCopyright © 2018 BITPlan GmbH. All rights reserved.