public class BatchOptions
extends <any>
BatchOptionsGui
. BatchOptions()
.
#parse(String[],MessageReceiver)
has_[X]()
. get_[X]_[n]()
. get_[X]_[n](k)
. If anything went wrong in parsing, errors
have been sent to the MessageReceiver
.
Then further analysis methods can be applied (#getParsingProtocol()
, #getMissingOptions()
, #usage()
, etc.)
For further details. please see the
documentation of the methods inherited from the superclass Model
and the option
compiler's user documentation.
Here is the source text.
The usage()
method will show this screen:
=================== command line usage: =================== ----------------------------- main operation parameters: ----------------------------- --path ( string )+(="RES_eu.bandm.tools.doctypes.DocTypes/d2d_gp") where to look for type definition modules --sources ( uri(="") )+ path of source files to process, relative to common file base --fileBase uri(="") directory position as common prefix for all input and output files --inputPattern string(="%") file name pattern to analyse the input files. --xmlResult string(="") file name pattern where to store the xml version of the d2d inputs --transformations ( string(="") string(="") string(="") string(="") )* tuples of target name, tdom class names and top element (both possibly empty = '-') and output file pattern. ---------------------------------- output modification parameters: ---------------------------------- --partialdocs (bool)?(=true iff present) whether partially correct but incomplete documents may be produced. --stylesheetParams ( string(="") string(="") )* parameters for an xslt style sheet processing. --stylesheetParamFiles ( uri(="") )* list of files containing parameters for xslt processing. --tpathFunctions string(="") name of a subclass of eu.bandm.tools.tpath.runtime.FunctionLibrary, defining tpath functions. Defaults to tpath+xslt pre-defined functions. ------------------------------------- operation modification parameters: ------------------------------------- -d / --debug int(=0) debug level, 0=silent 100=maximal verbose --interactive int(=0) which info to print in case of error: (=1) stack situation (=2) generated output so far --strictCheck boolean(=true) whether to type check unreachable code --pedantic boolean(=true) whether to follow specification even when it seems not sensible --totalizedTranslation (bool)?(=true iff present) whether to always create a result document, even with errors --noTxsl (bool)?(=true iff present) do not use bandm txsl, but jre built-in xslt processor. --txslTraceFlags traceflag*(=EnumSet.noneOf(traceflag.class)) sequence of flags which enable the different debug tracing separately --lineWidth int(=70) width of a line for diverse print out procedures. traceflag: Enabling of very different trace outputs of bandm tXsl separately. * silent: Suppress all log messages, even warnings. Print only errors. * justWarnings: Suppress all log messages. Print errors and warnings. (Overrides "silent") * extendedInfo: Print additional information with most messages. * showSource: Display source text as soon as parsed, for additional information. * templateDirs: Dump the template directories as soon they are filled. * globalValues: Trace the calculation of all global values (parameters and variables) * resourceFinding: Trace the resolution of URLs/URIs/file names and the access to resource objets. * templateResolution: Trace finding of templates. Includes xsl:for-each application. * templateCall: Trace parameter set up and code executon start for template calls and applies. * tpathEval: Trace evaluation of all tpath expressions * tpathTypes: Print the results of type checking tpath expressions * tpathFunctions: Trace calls, parameters and results of functions called from tpath expressions * testDecisions: Trace the deciding expressions in xsl:if and xsl:choose expressions * exceptionStackTraces: Print the java stack trace in case of exceptions * elementReducing: Trace the reduce step of a collected result element, ie. the call of the tdom semi-parser. * verbatimText: Dumps all verbatim inserted XML fragments. * writeIntermediate: Write out intermediate files when collecting xslt code.
Modifier and Type | Class and Description |
---|---|
class |
BatchOptions.Descriptions
Programmatically generated catalog of translations.
|
static class |
BatchOptions.traceflag
This enum type indicates: Enabling of very
different trace outputs of bandm tXsl separately.
|
class |
BatchOptions.Values_path
One instance realizes one repeated argument group of option
path . |
class |
BatchOptions.Values_sources
One instance realizes one repeated argument group of option
sources . |
class |
BatchOptions.Values_stylesheetParamFiles
One instance realizes one repeated argument group of option
stylesheetParamFiles . |
class |
BatchOptions.Values_stylesheetParams
One instance realizes one repeated argument group of option
stylesheetParams . |
class |
BatchOptions.Values_transformations
One instance realizes one repeated argument group of option
transformations . |
Constructor and Description |
---|
BatchOptions() |
Modifier and Type | Method and Description |
---|---|
protected void |
_finalCheck() |
String |
_getMissingOptions() |
String |
_getRedundantOptions() |
protected void |
checkActive() |
int |
get_debug_0()
Getter method for the only argument of option
debug . |
String |
get_fileBase_0()
Getter method for the only argument of option
fileBase . |
String |
get_inputPattern_0()
Getter method for the only argument of option
inputPattern . |
int |
get_interactive_0()
Getter method for the only argument of option
interactive . |
int |
get_lineWidth_0()
Getter method for the only argument of option
lineWidth . |
boolean |
get_noTxsl_0()
Getter method for the 0th argument of option
noTxsl . |
boolean |
get_partialdocs_0()
Getter method for the 0th argument of option
partialdocs . |
String |
get_path_0(int index)
Getter method for the only repeated argument of option
path . |
List<BatchOptions.Values_path> |
get_path()
Getter method for all repetition groups of option
path . |
boolean |
get_pedantic_0()
Getter method for the only argument of option
pedantic . |
String |
get_sources_0(int index)
Getter method for the only repeated argument of option
sources . |
List<BatchOptions.Values_sources> |
get_sources()
Getter method for all repetition groups of option
sources . |
boolean |
get_strictCheck_0()
Getter method for the only argument of option
strictCheck . |
String |
get_stylesheetParamFiles_0(int index)
Getter method for the only repeated argument of option
stylesheetParamFiles . |
List<BatchOptions.Values_stylesheetParamFiles> |
get_stylesheetParamFiles()
Getter method for all repetition groups of option
stylesheetParamFiles . |
String |
get_stylesheetParams_0(int index)
Getter method for the 0th in a group of repeated arguments of option
stylesheetParams . |
String |
get_stylesheetParams_1(int index)
Getter method for the 1st in a group of repeated arguments of option
stylesheetParams . |
List<BatchOptions.Values_stylesheetParams> |
get_stylesheetParams()
Getter method for all repetition groups of option
stylesheetParams . |
boolean |
get_totalizedTranslation_0()
Getter method for the only argument of option
totalizedTranslation . |
String |
get_tpathFunctions_0()
Getter method for the only argument of option
tpathFunctions . |
String |
get_transformations_0(int index)
Getter method for the 0th in a group of repeated arguments of option
transformations . |
String |
get_transformations_1(int index)
Getter method for the 1st in a group of repeated arguments of option
transformations . |
String |
get_transformations_2(int index)
Getter method for the 2nd in a group of repeated arguments of option
transformations . |
String |
get_transformations_3(int index)
Getter method for the 3rd in a group of repeated arguments of option
transformations . |
List<BatchOptions.Values_transformations> |
get_transformations()
Getter method for all repetition groups of option
transformations . |
EnumSet<BatchOptions.traceflag> |
get_txslTraceFlags_0()
Getter method for the only argument of option
txslTraceFlags . |
String |
get_xmlResult_0()
Getter method for the only argument of option
xmlResult . |
boolean |
has_debug()
Deprecated.
|
boolean |
has_fileBase()
Deprecated.
|
boolean |
has_inputPattern()
Deprecated.
|
boolean |
has_interactive()
Deprecated.
|
boolean |
has_lineWidth()
Deprecated.
|
boolean |
has_noTxsl()
Deprecated.
|
boolean |
has_partialdocs()
Deprecated.
|
boolean |
has_path()
Deprecated.
|
boolean |
has_pedantic()
Deprecated.
|
boolean |
has_sources()
Deprecated.
|
boolean |
has_strictCheck()
Deprecated.
|
boolean |
has_stylesheetParamFiles()
Deprecated.
|
boolean |
has_stylesheetParams()
Deprecated.
|
boolean |
has_totalizedTranslation()
Deprecated.
|
boolean |
has_tpathFunctions()
Deprecated.
|
boolean |
has_transformations()
Deprecated.
|
boolean |
has_txslTraceFlags()
Deprecated.
|
boolean |
has_xmlResult()
Deprecated.
|
BatchOptions |
makeDefaultInstance() |
protected int |
numberOfPositionals() |
protected void |
parseAbbrev(String select) |
protected void |
parseName(String select) |
protected void |
parsePositionals() |
String |
serialize() |
void |
usage_de()
Print usage information in the language 'de' on System.err.
|
void |
usage_de(PrintStream pr)
Print usage information in the language 'de'.
|
void |
usage_en()
Print usage information in the language 'en' on System.err.
|
void |
usage_en(PrintStream pr)
Print usage information in the language 'en'.
|
void |
usage(PrintStream pr)
Print usage information in the default language.
|
void |
usage(PrintStream pr,
String lang)
Print usage information in the requested language.
|
protected boolean has_path
protected List<BatchOptions.Values_path> repvalues_path
public final Function<BatchOptions.Values_path,String> serialize_path
protected boolean has_sources
protected List<BatchOptions.Values_sources> repvalues_sources
public final Function<BatchOptions.Values_sources,String> serialize_sources
protected boolean has_fileBase
protected String value_fileBase_0
protected boolean has_inputPattern
protected String value_inputPattern_0
protected boolean has_xmlResult
protected String value_xmlResult_0
protected boolean has_transformations
protected List<BatchOptions.Values_transformations> repvalues_transformations
public final Function<BatchOptions.Values_transformations,String> serialize_transformations
protected boolean has_partialdocs
protected boolean value_partialdocs_0
protected boolean has_stylesheetParams
protected List<BatchOptions.Values_stylesheetParams> repvalues_stylesheetParams
public final Function<BatchOptions.Values_stylesheetParams,String> serialize_stylesheetParams
protected boolean has_stylesheetParamFiles
protected List<BatchOptions.Values_stylesheetParamFiles> repvalues_stylesheetParamFiles
public final Function<BatchOptions.Values_stylesheetParamFiles,String> serialize_stylesheetParamFiles
protected boolean has_tpathFunctions
protected String value_tpathFunctions_0
protected boolean has_debug
protected int value_debug_0
protected boolean has_interactive
protected int value_interactive_0
protected boolean has_strictCheck
protected boolean value_strictCheck_0
protected boolean has_pedantic
protected boolean value_pedantic_0
protected boolean has_totalizedTranslation
protected boolean value_totalizedTranslation_0
protected boolean has_noTxsl
protected boolean value_noTxsl_0
protected boolean has_txslTraceFlags
protected EnumSet<BatchOptions.traceflag> value_txslTraceFlags_0
protected boolean has_lineWidth
protected int value_lineWidth_0
public BatchOptions makeDefaultInstance()
protected void checkActive()
@Deprecated public boolean has_path()
get_path()
.public List<BatchOptions.Values_path> get_path()
path
.
--path ( string )+(="RES_eu.bandm.tools.doctypes.DocTypes/d2d_gp")
public String get_path_0(int index)
path
.
For details of this option see the method get_path()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_sources()
get_sources()
.public List<BatchOptions.Values_sources> get_sources()
sources
.
--sources ( uri(="") )+
public String get_sources_0(int index)
sources
.
For details of this option see the method get_sources()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_fileBase()
get_fileBase_0()
.public String get_fileBase_0()
fileBase
.
--fileBase uri(="")
@Deprecated public boolean has_inputPattern()
get_inputPattern_0()
.public String get_inputPattern_0()
inputPattern
.
--inputPattern string(="%")
@Deprecated public boolean has_xmlResult()
get_xmlResult_0()
.public String get_xmlResult_0()
xmlResult
.
--xmlResult string(="")
@Deprecated public boolean has_transformations()
get_transformations()
.public List<BatchOptions.Values_transformations> get_transformations()
transformations
.
--transformations ( string(="") string(="") string(="") string(="") )*
public String get_transformations_0(int index)
transformations
.
For details of this option see the method get_transformations()
.index
- the index of the repetition group, zero based.public String get_transformations_1(int index)
transformations
.
For details of this option see the method get_transformations()
.index
- the index of the repetition group, zero based.public String get_transformations_2(int index)
transformations
.
For details of this option see the method get_transformations()
.index
- the index of the repetition group, zero based.public String get_transformations_3(int index)
transformations
.
For details of this option see the method get_transformations()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_partialdocs()
get_partialdocs_0()
.public boolean get_partialdocs_0()
partialdocs
.
--partialdocs (bool)?(=true iff present)
@Deprecated public boolean has_stylesheetParams()
get_stylesheetParams()
.public List<BatchOptions.Values_stylesheetParams> get_stylesheetParams()
stylesheetParams
.
--stylesheetParams ( string(="") string(="") )*
public String get_stylesheetParams_0(int index)
stylesheetParams
.
For details of this option see the method get_stylesheetParams()
.index
- the index of the repetition group, zero based.public String get_stylesheetParams_1(int index)
stylesheetParams
.
For details of this option see the method get_stylesheetParams()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_stylesheetParamFiles()
get_stylesheetParamFiles()
.public List<BatchOptions.Values_stylesheetParamFiles> get_stylesheetParamFiles()
stylesheetParamFiles
.
--stylesheetParamFiles ( uri(="") )*
public String get_stylesheetParamFiles_0(int index)
stylesheetParamFiles
.
For details of this option see the method get_stylesheetParamFiles()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_tpathFunctions()
get_tpathFunctions_0()
.public String get_tpathFunctions_0()
tpathFunctions
.
--tpathFunctions string(="")
@Deprecated public boolean has_debug()
get_debug_0()
.public int get_debug_0()
debug
.
-d / --debug int(=0)
@Deprecated public boolean has_interactive()
get_interactive_0()
.public int get_interactive_0()
interactive
.
--interactive int(=0)
@Deprecated public boolean has_strictCheck()
get_strictCheck_0()
.public boolean get_strictCheck_0()
strictCheck
.
--strictCheck boolean(=true)
@Deprecated public boolean has_pedantic()
get_pedantic_0()
.public boolean get_pedantic_0()
pedantic
.
--pedantic boolean(=true)
@Deprecated public boolean has_totalizedTranslation()
get_totalizedTranslation_0()
.public boolean get_totalizedTranslation_0()
totalizedTranslation
.
--totalizedTranslation (bool)?(=true iff present)
@Deprecated public boolean has_noTxsl()
get_noTxsl_0()
.public boolean get_noTxsl_0()
noTxsl
.
--noTxsl (bool)?(=true iff present)
@Deprecated public boolean has_txslTraceFlags()
get_txslTraceFlags_0()
.public EnumSet<BatchOptions.traceflag> get_txslTraceFlags_0()
txslTraceFlags
.
--txslTraceFlags traceflag*(=EnumSet.noneOf(traceflag.class))
@Deprecated public boolean has_lineWidth()
get_lineWidth_0()
.public int get_lineWidth_0()
lineWidth
.
--lineWidth int(=70)
public String serialize()
public void usage(PrintStream pr)
public void usage(PrintStream pr, String lang)
public void usage_de()
public void usage_de(PrintStream pr)
public void usage_en()
public void usage_en(PrintStream pr)
protected void parseAbbrev(String select)
protected void parseName(String select)
protected int numberOfPositionals()
protected void parsePositionals()
protected void _finalCheck()
public String _getMissingOptions()
public String _getRedundantOptions()
see also the complete user documentation .