jd.xml.xslt
Class CommandLine

java.lang.Object
  extended byjd.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.


Field Summary
static int EXIT_INCORRECT_USAGE
           
static int EXIT_OK
           
static int EXIT_PARSE_ERROR
           
static int EXIT_RUNTIME_ERROR
           
static int EXIT_STYLESHEET_ERROR
           
static String MBF_BIG
           
static String MBF_NORMAL
           
static String URI_IDENTITY
           
static String URI_MEMORY
           
static String URI_STDIN
           
 
Constructor Summary
CommandLine()
           
 
Method Summary
 void evaluate(String[] args)
          Evaluate the comandline.
 void evaluateAndExit(String[] args)
           
protected  XmlSource getAssocStylesheetSource()
           
 int getExitCode()
           
protected abstract  XObject getParamExpressionValue(String expr)
           
protected  XmlSource getSource(String uri)
           
protected abstract  Transformation getTransformation(Vector uris)
           
protected abstract  void printHelp()
           
protected  void printHelpLine(String s1, String s2)
           
protected  void printOptionsHelp(boolean canCreateStylesheets, boolean canTrace)
           
protected abstract  void printTransformationInfo(VerboseLog log)
           
protected  void setTransformationOptions(Transformation t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CommandLine

public CommandLine()
Method Detail

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)