Package eu.bandm.tools.util3
Class ParameterExpanderOptions
java.lang.Object
eu.bandm.tools.option.runtime.Model<ParameterExpanderOptions>
eu.bandm.tools.util3.ParameterExpanderOptions
@Generated(generator="eu.bandm.tools.option",
           version="",
           timestamp="2025-08-17_22h52m17")
public class ParameterExpanderOptions
extends Model<ParameterExpanderOptions>
Generated source for command line processing. 
(A parallel GUI class has not been generated. The normal way of operation is:
(A parallel GUI class has not been generated. The normal way of operation is:
- Create a fresh instance by the only constructor ParameterExpanderOptions().
- Analyse command line by invoking Model.parse(String[],MessageReceiver,String)
- Inquire whether a particular option X has been set on the commandline 
 by invoking has_[X]().
- The arguments of each option are 
        determined by a sequence of types:      first a leading sequence, 
        values for which appear exactly once,       followed by a sequence 
        which may be repeated. Both type sequences may be empty.      
 Inquire value of the options n-th argument in the fixed, leading argument sequence byget_[X]_[n]().
- Inquire value of the 
        options n-th argument in the k-th repetition group        by get_[X]_[n](k).
If anything went wrong in parsing, errors have been sent to the MessageReceiver. Then further analysis methods can be
 applied (Model.getParsingProtocol(), Model.getMissingOptions(), Model.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.
There have been description texts only in one language, namely en.
The usage() method will show this screen:
 
 ======
 USAGE:
 ======
 -0 / --inputFiles     ( uri(="") )+
 List of input files. Each file must contain the substitution character for 
    deriving the name of the output file.
 -s / --substitutions  ( string(="") string(="") )+
 Pairs of substitutions, directly given as command line parameters. 
    Additionally to the file inputs, and valid for all qualifiers.
 -S / --substitutionFiles  ( uri(="") )+
 List of names of files, containing substitutions. Their format is the Java 
    standard "java.util.Property" file.
 --escape         string(="$")
 Lead in character for marking the start of a text to substitute.
 --encoding       string(="UTF-8")
 Character encoding used for input of source files and output of targets.
 --placeholder    string(="")
 String to be replaced in the name of the input file and the substitution 
    files. If not given, no such replacement is done. Else at least one 
    fileNameQualifier must be given.
 --qualifiers     ( string(="") )+
 To be inserted in the name of the input file for the name of the output file,
    and in the name of the substitution file. This list must be non-empty if a
    placeholder is defined.
 --targetdir      uri(="")
 If set, the target files will be generated in this directory instead of that 
    of the input files.
 --preserveLines  boolean(=false)
 Preserve line break characters in intrinsic commands and conditional 
 sections.
 
 
 
 
 Generated on 2025-08-17_22h52m17
by program bandm/metatools/option/compiler, version
command line =
 
by program bandm/metatools/option/compiler, version
command line =
java bandm/metatools/option/compiler ParameterExpanderOptions.xml eu.bandm.tools.util3 ParameterExpanderOptions  $(HOME)/metatools/src 
 - 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassProgrammatically generated catalog of translations.classOne instance realizes one repeated argument group of optioninputFiles.classOne instance realizes one repeated argument group of optionqualifiers.classOne instance realizes one repeated argument group of optionsubstitutionFiles.classOne instance realizes one repeated argument group of optionsubstitutions.Nested classes/interfaces inherited from class eu.bandm.tools.option.runtime.ModelModel.ExcDuplicate, Model.ExcEndOfRepet, Model.ExcNoData, Model.ExcNoData_allowed, Model.ExcSkipReachesEnd, Model.ExcUnknownOpt, Model.ExcWrongType, Model.Pre20220613, Model.SeemsToWorkForLinuxAndSomeWindowsVersions20220613
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected List<ParameterExpanderOptions.Values_inputFiles> protected List<ParameterExpanderOptions.Values_qualifiers> protected Stringprotected Stringprotected Stringprotected booleanprotected StringFields inherited from class eu.bandm.tools.option.runtime.ModelcurArg, curArgGroup, curOption, currentErrorPos, descriptions, dummyRat, GNU_VERSION_OPTION, hasNonMetaOptions, inputlength, inputstring, matcher, messages, msg, nextToken, optionDirector, p_rest, positionalPhase, positionalsExplicit, positionalsFound, protocol, shellAdapter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCallback, overridden by compiled code.Is overridden in the generated code and concatenates the "longest names" of all otions marked as required, but not present in the parsed input.Callback, overridden by compiled code.protected voidThe generated code will evaluate all conditions to activate/deactive options in the GUI.Getter method for the only argument of optionencoding.Getter method for the only argument of optionescape.Getter method for all repetition groups of optioninputFiles.get_inputFiles_0(int index) Getter method for the only repeated argument of optioninputFiles.Getter method for the only argument of optionplaceholder.booleanGetter method for the only argument of optionpreserveLines.Getter method for all repetition groups of optionqualifiers.get_qualifiers_0(int index) Getter method for the only repeated argument of optionqualifiers.Getter method for all repetition groups of optionsubstitutionFiles.get_substitutionFiles_0(int index) Getter method for the only repeated argument of optionsubstitutionFiles.Getter method for all repetition groups of optionsubstitutions.get_substitutions_0(int index) Getter method for the 0th in a group of repeated arguments of optionsubstitutions.get_substitutions_1(int index) Getter method for the 1st in a group of repeated arguments of optionsubstitutions.Getter method for the only argument of optiontargetdir.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Overriden by the generated code to make a constructor call of the actual Model (sub-)class.protected intThe generated code will return the number of positional parameters.protected voidparseAbbrev(String select) Callback, overridden by compiled code, which realizes a switch over all one character option names.protected voidCallback, overridden by compiled code, which realizes a switch over all long option names.protected voidCallback, overridden by compiled code, which calls one after the other the positional parameters.Called to generate a String representation of the model's state.voidusage(PrintStream pr) Print usage information in the default language.voidusage(PrintStream pr, String lang) Print usage information in the requested language.voidusage_en()Print usage information in the language 'en' on System.err.voidusage_en(PrintStream pr) Print usage information in the language 'en'.Methods inherited from class eu.bandm.tools.option.runtime.ModelARG_ERROR, ARG_ERROR, canReenterRepetitionGroup, convert_integer_10_or_16, descriptionKeyForCommentField, descriptionKeyForEnum, descriptionKeyForEnum, descriptionKeyForEnumItem, ERROR, ERROR_plus, ERROR_UNKNOWN_ABBREV, ERROR_UNKNOWN_NAME, getInputString, getMissingOptions, getNextToken, getNextToken_required, getParsingProtocol, HINT, input_as_its_own_id, INSITU, parse, parseBool, parseBool_optional, parseBoolTest, parseEnum, parseEnumSet, parseFloat, parseInit, parseInt, parseInt_16or10, parseOneString, parseOneString, parseOneString, parseOneUri, parseRational, parseString, putprot, putprot_option, serialize, serialize, serialize, serialize, serialize, serialize, serialize, serialize, serialize_hex, skipToOption, type_error, TYPE_MISMATCH, TYPE_MISMATCH, usage, usage, WARNING
- 
Field Details- 
has_inputFilesprotected boolean has_inputFiles
- 
repvalues_inputFiles
- 
serialize_inputFiles
- 
has_substitutionsprotected boolean has_substitutions
- 
repvalues_substitutions
- 
serialize_substitutions
- 
has_substitutionFilesprotected boolean has_substitutionFiles
- 
repvalues_substitutionFiles
- 
serialize_substitutionFilespublic final Function<ParameterExpanderOptions.Values_substitutionFiles,String> serialize_substitutionFiles
- 
has_escapeprotected boolean has_escape
- 
value_escape_0
- 
has_encodingprotected boolean has_encoding
- 
value_encoding_0
- 
has_placeholderprotected boolean has_placeholder
- 
value_placeholder_0
- 
has_qualifiersprotected boolean has_qualifiers
- 
repvalues_qualifiers
- 
serialize_qualifiers
- 
has_targetdirprotected boolean has_targetdir
- 
value_targetdir_0
- 
has_preserveLinesprotected boolean has_preserveLines
- 
value_preserveLines_0protected boolean value_preserveLines_0
 
- 
- 
Constructor Details- 
ParameterExpanderOptionspublic ParameterExpanderOptions()
 
- 
- 
Method Details- 
makeDefaultInstanceDescription copied from class:ModelOverriden by the generated code to make a constructor call of the actual Model (sub-)class.- Specified by:
- makeDefaultInstancein class- Model<ParameterExpanderOptions>
 
- 
checkActiveprotected void checkActive()Description copied from class:ModelThe generated code will evaluate all conditions to activate/deactive options in the GUI.- Specified by:
- checkActivein class- Model<ParameterExpanderOptions>
 
- 
has_inputFilesDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_inputFiles().
 
- 
get_inputFilesGetter method for all repetition groups of optioninputFiles.This option indicates: List of input files. Each file must contain the substitution character for deriving the name of the output file.
 The format of this option on the command line is-0 / --inputFiles ( uri(="") )+ 
- 
get_inputFiles_0Getter method for the only repeated argument of optioninputFiles. For details of this option see the methodget_inputFiles().- Parameters:
- index- the index of the repetition group, zero based.
 
- 
has_substitutionsDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_substitutions().
 
- 
get_substitutionsGetter method for all repetition groups of optionsubstitutions.This option indicates: Pairs of substitutions, directly given as command line parameters. Additionally to the file inputs, and valid for all qualifiers.
 The format of this option on the command line is-s / --substitutions ( string(="") string(="") )+ 
- 
get_substitutions_0Getter method for the 0th in a group of repeated arguments of optionsubstitutions. For details of this option see the methodget_substitutions().- Parameters:
- index- the index of the repetition group, zero based.
 
- 
get_substitutions_1Getter method for the 1st in a group of repeated arguments of optionsubstitutions. For details of this option see the methodget_substitutions().- Parameters:
- index- the index of the repetition group, zero based.
 
- 
has_substitutionFilesDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_substitutionFiles().
 
- 
get_substitutionFilesGetter method for all repetition groups of optionsubstitutionFiles.This option indicates: List of names of files, containing substitutions. Their format is the Java standard "java.util.Property" file.
 The format of this option on the command line is-S / --substitutionFiles ( uri(="") )+ 
- 
get_substitutionFiles_0Getter method for the only repeated argument of optionsubstitutionFiles. For details of this option see the methodget_substitutionFiles().- Parameters:
- index- the index of the repetition group, zero based.
 
- 
has_escapeDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_escape_0().
 
- 
get_escape_0Getter method for the only argument of optionescape.This option indicates: Lead in character for marking the start of a text to substitute.
 The format of this option on the command line is--escape string(="$")
- 
has_encodingDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_encoding_0().
 
- 
get_encoding_0Getter method for the only argument of optionencoding.This option indicates: Character encoding used for input of source files and output of targets.
 The format of this option on the command line is--encoding string(="UTF-8")
- 
has_placeholderDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_placeholder_0().
 
- 
get_placeholder_0Getter method for the only argument of optionplaceholder.This option indicates: String to be replaced in the name of the input file and the substitution files. If not given, no such replacement is done. Else at least one fileNameQualifier must be given.
 The format of this option on the command line is--placeholder string(="")
- 
has_qualifiersDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_qualifiers().
 
- 
get_qualifiersGetter method for all repetition groups of optionqualifiers.This option indicates: To be inserted in the name of the input file for the name of the output file, and in the name of the substitution file. This list must be non-empty if a placeholder is defined.
 The format of this option on the command line is--qualifiers ( string(="") )+
- 
get_qualifiers_0Getter method for the only repeated argument of optionqualifiers. For details of this option see the methodget_qualifiers().- Parameters:
- index- the index of the repetition group, zero based.
 
- 
has_targetdirDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_targetdir_0().
 
- 
get_targetdir_0Getter method for the only argument of optiontargetdir.This option indicates: If set, the target files will be generated in this directory instead of that of the input files.
 The format of this option on the command line is--targetdir uri(="")
- 
has_preserveLinesDeprecated.- Returns:
- whether the option has been set on the command line.
 (The result is of no significance when using GUI input, and should neither be used in command line mode.)
 For details of this option see the method get_preserveLines_0().
 
- 
get_preserveLines_0public boolean get_preserveLines_0()Getter method for the only argument of optionpreserveLines.This option indicates: Preserve line break characters in intrinsic commands and conditional sections.
 The format of this option on the command line is--preserveLines boolean(=false)
- 
serializeDescription copied from class:ModelCalled to generate a String representation of the model's state. Code is overridden by the compiled code.- Specified by:
- serializein class- Model<ParameterExpanderOptions>
 
- 
usagePrint usage information in the default language.- Specified by:
- usagein class- Model<ParameterExpanderOptions>
 
- 
usagePrint usage information in the requested language. Falls back to default language, if that language is not supported.- Specified by:
- usagein class- Model<ParameterExpanderOptions>
 
- 
usage_enpublic void usage_en()Print usage information in the language 'en' on System.err.
- 
usage_enPrint usage information in the language 'en'.
- 
parseAbbrevDescription copied from class:ModelCallback, overridden by compiled code, which realizes a switch over all one character option names. The generated code calls the argument parsers and stores the resulting values to the model's fields.- Specified by:
- parseAbbrevin class- Model<ParameterExpanderOptions>
- Parameters:
- select- the one-character option name, as parsed by this code.
 
- 
parseNameDescription copied from class:ModelCallback, overridden by compiled code, which realizes a switch over all long option names. The generated code calls the argument parsers and stores the resulting values to the model's fields.- Specified by:
- parseNamein class- Model<ParameterExpanderOptions>
- Parameters:
- select- the multi-character option name, as parsed by this code.
 
- 
numberOfPositionalsprotected int numberOfPositionals()Description copied from class:ModelThe generated code will return the number of positional parameters.- Specified by:
- numberOfPositionalsin class- Model<ParameterExpanderOptions>
 
- 
parsePositionalsprotected void parsePositionals()Description copied from class:ModelCallback, overridden by compiled code, which calls one after the other the positional parameters. Each of them corresponds to an implicit option (with short names "-0", "-1", "-2", ...). These can also be defined explicitly, e.g. be given a long name, etc. Anyhow, they can be set explicitly by their short name. If one single positional option is given explicitly, the implicit parsing of the others is suppressed and this code will not be called.- Specified by:
- parsePositionalsin class- Model<ParameterExpanderOptions>
 
- 
_finalCheckprotected void _finalCheck()Description copied from class:ModelCallback, overridden by compiled code.- Specified by:
- _finalCheckin class- Model<ParameterExpanderOptions>
 
- 
_getMissingOptionsDescription copied from class:ModelIs overridden in the generated code and concatenates the "longest names" of all otions marked as required, but not present in the parsed input. Length==0 iff none is missing. Cf "sourcedtd required='yes'" in tools/tdom_withOptions/Options.xml- Specified by:
- _getMissingOptionsin class- Model<ParameterExpanderOptions>
 
- 
_getRedundantOptionsDescription copied from class:ModelCallback, overridden by compiled code.- Specified by:
- _getRedundantOptionsin class- Model<ParameterExpanderOptions>
 
 
-