Class CallXsltOptions


public class CallXsltOptions extends Model<CallXsltOptions>
Generated source for command line processing.
(A parallel GUI class has not been generated. The normal way of operation is:
  1. Create a fresh instance by the only constructor CallXsltOptions().
  2. Analyse command line by invoking Model.parse(String[],MessageReceiver,String)
  3. Inquire whether a particular option X has been set on the commandline by invoking has_[X]().
  4. 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 by get_[X]_[n]().
  5. 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 / --in             string(="")
 input file
 -1 / --xsl            string(="")
 transformtion code
 -2 / --out            string(="")
 output file
 --xml            (bool)?(=true iff present)
 use xml output formatter and output xml header
 --html           (bool)?(=true iff present)
 use html output formatter
 --text           (bool)?(=true iff present)
 use plain text output formatter
 --param          ( string(="") string(="") )*
 pairs of parameter name and parameter value string 
 --uriresolver    string(="")
 full class name of uri resolver 
 --entityresolver  string(="")
 full class name of entity resolver 
 --contenthandler  string(="")
 full class name of content handler 
 
 
Created on 2024-11-24_11h56m39
by program bandm/metatools/option/compiler, version 2.1
command line =
java bandm/metatools/option/compiler CallXsltOptions.xml eu.bandm.tools.util3 CallXsltOptions $(HOME)/metatools/src
  • Field Details

    • has_in

      protected boolean has_in
    • value_in_0

      protected String value_in_0
    • has_xsl

      protected boolean has_xsl
    • value_xsl_0

      protected String value_xsl_0
    • has_out

      protected boolean has_out
    • value_out_0

      protected String value_out_0
    • has_xml

      protected boolean has_xml
    • value_xml_0

      protected boolean value_xml_0
    • has_html

      protected boolean has_html
    • value_html_0

      protected boolean value_html_0
    • has_text

      protected boolean has_text
    • value_text_0

      protected boolean value_text_0
    • has_param

      protected boolean has_param
    • repvalues_param

      protected List<CallXsltOptions.Values_param> repvalues_param
    • serialize_param

      public final Function<CallXsltOptions.Values_param,String> serialize_param
    • has_uriresolver

      protected boolean has_uriresolver
    • value_uriresolver_0

      protected String value_uriresolver_0
    • has_entityresolver

      protected boolean has_entityresolver
    • value_entityresolver_0

      protected String value_entityresolver_0
    • has_contenthandler

      protected boolean has_contenthandler
    • value_contenthandler_0

      protected String value_contenthandler_0
  • Constructor Details

    • CallXsltOptions

      public CallXsltOptions()
  • Method Details

    • makeDefaultInstance

      public CallXsltOptions makeDefaultInstance()
      Description copied from class: Model
      Overriden by the generated code to make a constructor call of the actual Model (sub-)class.
      Specified by:
      makeDefaultInstance in class Model<CallXsltOptions>
    • checkActive

      protected void checkActive()
      Description copied from class: Model
      The generated code will evaluate all conditions to activate/deactive options in the GUI.
      Specified by:
      checkActive in class Model<CallXsltOptions>
    • has_in

      @Deprecated public boolean has_in()
      Deprecated.
      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_in_0().
    • get_in_0

      public String get_in_0()
      Getter method for the only argument of option in.
      This option indicates: input file.

      The format of this option on the command line is
       
         -0 / --in             string(="")
       
    • has_xsl

      @Deprecated public boolean has_xsl()
      Deprecated.
      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_xsl_0().
    • get_xsl_0

      public String get_xsl_0()
      Getter method for the only argument of option xsl.
      This option indicates: transformtion code.

      The format of this option on the command line is
       
         -1 / --xsl            string(="")
       
    • has_out

      @Deprecated public boolean has_out()
      Deprecated.
      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_out_0().
    • get_out_0

      public String get_out_0()
      Getter method for the only argument of option out.
      This option indicates: output file.

      The format of this option on the command line is
       
         -2 / --out            string(="")
       
    • has_xml

      @Deprecated public boolean has_xml()
      Deprecated.
      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_xml_0().
    • get_xml_0

      public boolean get_xml_0()
      Getter method for the only argument of option xml.
      This option indicates: use xml output formatter and output xml header.

      The format of this option on the command line is
       
              --xml            (bool)?(=true iff present)
       
    • has_html

      @Deprecated public boolean has_html()
      Deprecated.
      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_html_0().
    • get_html_0

      public boolean get_html_0()
      Getter method for the 0th argument of option html.
      This option indicates: use html output formatter.

      The format of this option on the command line is
       
              --html           (bool)?(=true iff present)
       
    • has_text

      @Deprecated public boolean has_text()
      Deprecated.
      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_text_0().
    • get_text_0

      public boolean get_text_0()
      Getter method for the 0th argument of option text.
      This option indicates: use plain text output formatter.

      The format of this option on the command line is
       
              --text           (bool)?(=true iff present)
       
    • has_param

      @Deprecated public boolean has_param()
      Deprecated.
      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_param().
    • get_param

      public List<CallXsltOptions.Values_param> get_param()
      Getter method for all repetition groups of option param.
      This option indicates: pairs of parameter name and parameter value string.

      The format of this option on the command line is
       
              --param          ( string(="") string(="") )*
       
    • get_param_0

      public String get_param_0(int index)
      Getter method for the 0th in a group of repeated arguments of option param. For details of this option see the method get_param().
      Parameters:
      index - the index of the repetition group, zero based.
    • get_param_1

      public String get_param_1(int index)
      Getter method for the 1st in a group of repeated arguments of option param. For details of this option see the method get_param().
      Parameters:
      index - the index of the repetition group, zero based.
    • has_uriresolver

      @Deprecated public boolean has_uriresolver()
      Deprecated.
      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_uriresolver_0().
    • get_uriresolver_0

      public String get_uriresolver_0()
      Getter method for the only argument of option uriresolver.
      This option indicates: full class name of uri resolver.

      The format of this option on the command line is
       
              --uriresolver    string(="")
       
    • has_entityresolver

      @Deprecated public boolean has_entityresolver()
      Deprecated.
      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_entityresolver_0().
    • get_entityresolver_0

      public String get_entityresolver_0()
      Getter method for the only argument of option entityresolver.
      This option indicates: full class name of entity resolver.

      The format of this option on the command line is
       
              --entityresolver  string(="")
       
    • has_contenthandler

      @Deprecated public boolean has_contenthandler()
      Deprecated.
      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_contenthandler_0().
    • get_contenthandler_0

      public String get_contenthandler_0()
      Getter method for the only argument of option contenthandler.
      This option indicates: full class name of content handler.

      The format of this option on the command line is
       
              --contenthandler  string(="")
       
    • serialize

      public String serialize()
      Description copied from class: Model
      Called to generate a String representation of the model's state. Code is overridden by the compiled code.
      Specified by:
      serialize in class Model<CallXsltOptions>
    • usage

      public void usage(PrintStream pr)
      Print usage information in the default language.
      Specified by:
      usage in class Model<CallXsltOptions>
    • usage

      public void usage(PrintStream pr, String lang)
      Print usage information in the requested language. Falls back to default language, if that language is not supported.
      Specified by:
      usage in class Model<CallXsltOptions>
    • usage_en

      public void usage_en()
      Print usage information in the language 'en' on System.err.
    • usage_en

      public void usage_en(PrintStream pr)
      Print usage information in the language 'en'.
    • parseAbbrev

      protected void parseAbbrev(String select)
      Description copied from class: Model
      Callback, 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:
      parseAbbrev in class Model<CallXsltOptions>
      Parameters:
      select - the one-character option name, as parsed by this code.
    • parseName

      protected void parseName(String select)
      Description copied from class: Model
      Callback, 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:
      parseName in class Model<CallXsltOptions>
      Parameters:
      select - the multi-character option name, as parsed by this code.
    • numberOfPositionals

      protected int numberOfPositionals()
      Description copied from class: Model
      The generated code will return the number of positional parameters.
      Specified by:
      numberOfPositionals in class Model<CallXsltOptions>
    • parsePositionals

      protected void parsePositionals()
      Description copied from class: Model
      Callback, 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:
      parsePositionals in class Model<CallXsltOptions>
    • _finalCheck

      protected void _finalCheck()
      Description copied from class: Model
      Callback, overridden by compiled code.
      Specified by:
      _finalCheck in class Model<CallXsltOptions>
    • _getMissingOptions

      public String _getMissingOptions()
      Description copied from class: Model
      Is 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:
      _getMissingOptions in class Model<CallXsltOptions>
    • _getRedundantOptions

      public String _getRedundantOptions()
      Description copied from class: Model
      Callback, overridden by compiled code.
      Specified by:
      _getRedundantOptions in class Model<CallXsltOptions>