public class Options
extends <any>
GuiOptions
. Options()
.
#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:
====== usage: ====== --sourceDtd uri(="") file position of the dtd source text of the transformations's source format; used for tpath type check only. --sourceRoots ( string(="") )+ namespace names of possible toplevel source elements, in '{...}...' pseudo format; used for tpath type check only. --tpathFunctions string(="") name of an accessible subclass of eu.bandm.tools.tpath.runtime.FunctionLibrary, defining tpath functions. Defaults to tpath+xslt pre-defined functions. --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 --transformations string(="") ( string(="") string(="") string(="") )+ all transformations: input file name pattern, followed by a sequence of (a) an xslt source file (b) a tdom package name (or '#text') and (c) an output file pattern. --inputFiles ( uri(="") )+ file position of the xml sources to transform --filesRoot uri(="") common root for input and output file positions, is prepended to each input file before pattern matching application. --stylesheetParams ( string(="") string(="") )* parameters parsed to the xslt code and declared there on top-level --stylesheetParamsFile ( string(="") string(="") )* one file containing parameters parsed to the xslt code and declared there on top-level --linewidth int(=78) number of columns for the generated xml output --traceflags traceflag*(=EnumSet.of( traceflag.silent, traceflag.extendedInfo)) Sequence of flags, activates the different debug tracing outputs separately. --diagnoseSources ( string(="") int(=0) int(=0) )+ a sequence of filters to restrict logging messages to certain areas in the source files. --reportFiles ( string(="") )+ a sequence of file names where to write diagnosis information from the analyses of the xslt sources, in their sequential order in --transformations traceflag: Switch on/off different trace outputs individually. * 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, and as additional information. * templateDirs: Dump the template directories as soon they are filled. * globalValues: Trace 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.
Modifier and Type | Class and Description |
---|---|
class |
Options.Descriptions
Programmatically generated catalog of translations.
|
static class |
Options.traceflag
This enum type indicates: Switch on/off different
trace outputs individually.
|
class |
Options.Values_diagnoseSources
One instance realizes one repeated argument group of option
diagnoseSources . |
class |
Options.Values_inputFiles
One instance realizes one repeated argument group of option
inputFiles . |
class |
Options.Values_reportFiles
One instance realizes one repeated argument group of option
reportFiles . |
class |
Options.Values_sourceRoots
One instance realizes one repeated argument group of option
sourceRoots . |
class |
Options.Values_stylesheetParams
One instance realizes one repeated argument group of option
stylesheetParams . |
class |
Options.Values_stylesheetParamsFile
One instance realizes one repeated argument group of option
stylesheetParamsFile . |
class |
Options.Values_transformations
One instance realizes one repeated argument group of option
transformations . |
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
protected void |
_finalCheck() |
String |
_getMissingOptions() |
String |
_getRedundantOptions() |
protected void |
checkActive() |
String |
get_diagnoseSources_0(int index)
Getter method for the 0th in a group of repeated arguments of option
diagnoseSources . |
int |
get_diagnoseSources_1(int index)
Getter method for the 1st in a group of repeated arguments of option
diagnoseSources . |
int |
get_diagnoseSources_2(int index)
Getter method for the 2nd in a group of repeated arguments of option
diagnoseSources . |
List<Options.Values_diagnoseSources> |
get_diagnoseSources()
Getter method for all repetition groups of option
diagnoseSources . |
String |
get_filesRoot_0()
Getter method for the only argument of option
filesRoot . |
String |
get_inputFiles_0(int index)
Getter method for the only repeated argument of option
inputFiles . |
List<Options.Values_inputFiles> |
get_inputFiles()
Getter method for all repetition groups of option
inputFiles . |
int |
get_linewidth_0()
Getter method for the only argument of option
linewidth . |
boolean |
get_pedantic_0()
Getter method for the only argument of option
pedantic . |
String |
get_reportFiles_0(int index)
Getter method for the only repeated argument of option
reportFiles . |
List<Options.Values_reportFiles> |
get_reportFiles()
Getter method for all repetition groups of option
reportFiles . |
String |
get_sourceDtd_0()
Getter method for the only argument of option
sourceDtd . |
String |
get_sourceRoots_0(int index)
Getter method for the only repeated argument of option
sourceRoots . |
List<Options.Values_sourceRoots> |
get_sourceRoots()
Getter method for all repetition groups of option
sourceRoots . |
boolean |
get_strictCheck_0()
Getter method for the only argument of option
strictCheck . |
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<Options.Values_stylesheetParams> |
get_stylesheetParams()
Getter method for all repetition groups of option
stylesheetParams . |
String |
get_stylesheetParamsFile_0(int index)
Getter method for the 0th in a group of repeated arguments of option
stylesheetParamsFile . |
String |
get_stylesheetParamsFile_1(int index)
Getter method for the 1st in a group of repeated arguments of option
stylesheetParamsFile . |
List<Options.Values_stylesheetParamsFile> |
get_stylesheetParamsFile()
Getter method for all repetition groups of option
stylesheetParamsFile . |
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 . |
EnumSet<Options.traceflag> |
get_traceflags_0()
Getter method for the only argument of option
traceflags . |
String |
get_transformations_0()
Getter method for the only argument of option
transformations . |
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 . |
List<Options.Values_transformations> |
get_transformations()
Getter method for all repetition groups of option
transformations . |
boolean |
has_diagnoseSources()
Deprecated.
|
boolean |
has_filesRoot()
Deprecated.
|
boolean |
has_inputFiles()
Deprecated.
|
boolean |
has_linewidth()
Deprecated.
|
boolean |
has_pedantic()
Deprecated.
|
boolean |
has_reportFiles()
Deprecated.
|
boolean |
has_sourceDtd()
Deprecated.
|
boolean |
has_sourceRoots()
Deprecated.
|
boolean |
has_strictCheck()
Deprecated.
|
boolean |
has_stylesheetParams()
Deprecated.
|
boolean |
has_stylesheetParamsFile()
Deprecated.
|
boolean |
has_totalizedTranslation()
Deprecated.
|
boolean |
has_tpathFunctions()
Deprecated.
|
boolean |
has_traceflags()
Deprecated.
|
boolean |
has_transformations()
Deprecated.
|
Options |
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_sourceDtd
protected String value_sourceDtd_0
protected boolean has_sourceRoots
protected List<Options.Values_sourceRoots> repvalues_sourceRoots
public final Function<Options.Values_sourceRoots,String> serialize_sourceRoots
protected boolean has_tpathFunctions
protected String value_tpathFunctions_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_transformations
protected String value_transformations_0
protected List<Options.Values_transformations> repvalues_transformations
public final Function<Options.Values_transformations,String> serialize_transformations
protected boolean has_inputFiles
protected List<Options.Values_inputFiles> repvalues_inputFiles
public final Function<Options.Values_inputFiles,String> serialize_inputFiles
protected boolean has_filesRoot
protected String value_filesRoot_0
protected boolean has_stylesheetParams
protected List<Options.Values_stylesheetParams> repvalues_stylesheetParams
public final Function<Options.Values_stylesheetParams,String> serialize_stylesheetParams
protected boolean has_stylesheetParamsFile
protected List<Options.Values_stylesheetParamsFile> repvalues_stylesheetParamsFile
public final Function<Options.Values_stylesheetParamsFile,String> serialize_stylesheetParamsFile
protected boolean has_linewidth
protected int value_linewidth_0
protected boolean has_traceflags
protected EnumSet<Options.traceflag> value_traceflags_0
protected boolean has_diagnoseSources
protected List<Options.Values_diagnoseSources> repvalues_diagnoseSources
public final Function<Options.Values_diagnoseSources,String> serialize_diagnoseSources
protected boolean has_reportFiles
protected List<Options.Values_reportFiles> repvalues_reportFiles
public final Function<Options.Values_reportFiles,String> serialize_reportFiles
public Options makeDefaultInstance()
protected void checkActive()
@Deprecated public boolean has_sourceDtd()
get_sourceDtd_0()
.public String get_sourceDtd_0()
sourceDtd
.
--sourceDtd uri(="")
@Deprecated public boolean has_sourceRoots()
get_sourceRoots()
.public List<Options.Values_sourceRoots> get_sourceRoots()
sourceRoots
.
--sourceRoots ( string(="") )+
public String get_sourceRoots_0(int index)
sourceRoots
.
For details of this option see the method get_sourceRoots()
.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_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_transformations()
get_transformations_0()
.public String get_transformations_0()
transformations
.
--transformations string(="") ( string(="") string(="") string(="") )+The other arguments of this option are accessed by the method(s) starting with
get_transformations..
.public List<Options.Values_transformations> get_transformations()
transformations
.
For details of this option see the method get_transformations_0()
.public String get_transformations_0(int index)
transformations
.
For details of this option see the method get_transformations_0()
.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_0()
.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_0()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_inputFiles()
get_inputFiles()
.public List<Options.Values_inputFiles> get_inputFiles()
inputFiles
.
--inputFiles ( uri(="") )+
public String get_inputFiles_0(int index)
inputFiles
.
For details of this option see the method get_inputFiles()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_filesRoot()
get_filesRoot_0()
.public String get_filesRoot_0()
filesRoot
.
--filesRoot uri(="")
@Deprecated public boolean has_stylesheetParams()
get_stylesheetParams()
.public List<Options.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_stylesheetParamsFile()
get_stylesheetParamsFile()
.public List<Options.Values_stylesheetParamsFile> get_stylesheetParamsFile()
stylesheetParamsFile
.
--stylesheetParamsFile ( string(="") string(="") )*
public String get_stylesheetParamsFile_0(int index)
stylesheetParamsFile
.
For details of this option see the method get_stylesheetParamsFile()
.index
- the index of the repetition group, zero based.public String get_stylesheetParamsFile_1(int index)
stylesheetParamsFile
.
For details of this option see the method get_stylesheetParamsFile()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_linewidth()
get_linewidth_0()
.public int get_linewidth_0()
linewidth
.
--linewidth int(=78)
@Deprecated public boolean has_traceflags()
get_traceflags_0()
.public EnumSet<Options.traceflag> get_traceflags_0()
traceflags
.
--traceflags traceflag*(=EnumSet.of( traceflag.silent, traceflag.extendedInfo))
@Deprecated public boolean has_diagnoseSources()
get_diagnoseSources()
.public List<Options.Values_diagnoseSources> get_diagnoseSources()
diagnoseSources
.
--diagnoseSources ( string(="") int(=0) int(=0) )+
public String get_diagnoseSources_0(int index)
diagnoseSources
.
For details of this option see the method get_diagnoseSources()
.index
- the index of the repetition group, zero based.public int get_diagnoseSources_1(int index)
diagnoseSources
.
For details of this option see the method get_diagnoseSources()
.index
- the index of the repetition group, zero based.public int get_diagnoseSources_2(int index)
diagnoseSources
.
For details of this option see the method get_diagnoseSources()
.index
- the index of the repetition group, zero based.@Deprecated public boolean has_reportFiles()
get_reportFiles()
.public List<Options.Values_reportFiles> get_reportFiles()
reportFiles
.
--reportFiles ( string(="") )+
public String get_reportFiles_0(int index)
reportFiles
.
For details of this option see the method get_reportFiles()
.index
- the index of the repetition group, zero based.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 .