jd.xml.xslt
Class CommandLine
java.lang.Object
jd.xml.xslt.CommandLine
- Direct Known Subclasses:
- Stylesheet.CmdLine
- public abstract class CommandLine
- extends Object
A helper class to parse the commandLine arguments of
Stylesheet.main and execute the transformation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXIT_OK
public static final int EXIT_OK
- See Also:
- Constant Field Values
EXIT_INCORRECT_USAGE
public static final int EXIT_INCORRECT_USAGE
- See Also:
- Constant Field Values
EXIT_PARSE_ERROR
public static final int EXIT_PARSE_ERROR
- See Also:
- Constant Field Values
EXIT_STYLESHEET_ERROR
public static final int EXIT_STYLESHEET_ERROR
- See Also:
- Constant Field Values
EXIT_RUNTIME_ERROR
public static final int EXIT_RUNTIME_ERROR
- See Also:
- Constant Field Values
URI_STDIN
public static final String URI_STDIN
- See Also:
- Constant Field Values
URI_IDENTITY
public static final String URI_IDENTITY
- See Also:
- Constant Field Values
URI_MEMORY
public static final String URI_MEMORY
- See Also:
- Constant Field Values
MBF_BIG
public static final String MBF_BIG
- See Also:
- Constant Field Values
MBF_NORMAL
public static final String MBF_NORMAL
- See Also:
- Constant Field Values
CommandLine
public CommandLine()
evaluateAndExit
public void evaluateAndExit(String[] args)
evaluate
public void evaluate(String[] args)
throws Exception
- Evaluate the comandline.
- Throws:
Exception
getExitCode
public int getExitCode()
getTransformation
protected abstract Transformation getTransformation(Vector uris)
throws Exception
- Throws:
Exception
setTransformationOptions
protected void setTransformationOptions(Transformation t)
getAssocStylesheetSource
protected XmlSource getAssocStylesheetSource()
throws Exception
- Throws:
Exception
getSource
protected XmlSource getSource(String uri)
throws IOException,
BadArgException
- Throws:
IOException
BadArgException
getParamExpressionValue
protected abstract XObject getParamExpressionValue(String expr)
printTransformationInfo
protected abstract void printTransformationInfo(VerboseLog log)
printHelp
protected abstract void printHelp()
printOptionsHelp
protected void printOptionsHelp(boolean canCreateStylesheets,
boolean canTrace)
printHelpLine
protected void printHelpLine(String s1,
String s2)