public class ToolOptions extends Model
ToolGui
. ToolOptions()
.
Model.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 (Model.getParsingProtocol()
, #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: ====== --------------------------------------------------------------- Visibilities for the different categories of DTD components. --------------------------------------------------------------- --PIs visibility(=on) how to treat processing instructions in html rendering --comments visibility(=onOff) how to treat comments in html rendering --inserts visibility(=offOn) how to treat file insertions (external 'parameter entities') in html rendering --elements visibility(=on) how to treat element declarations in html rendering --attlists visibility(=on) how to treat attlist declarations in html rendering --PEs visibility(=onOff) how to treat parameter entitiy declarations in html rendering --GEs visibility(=onOff) how to treat general entity declarations in html rendering ------------------------------------------------ Switches for additional surveys and analyses. ------------------------------------------------ --entityGraph visibility(=onOff) whether to include the entity usage graph --elementGraph visibility(=onOff) whether to include the element contents reference graph --alphabeticDir visibility(=off) whether an alphabetic directory for elements, attributes and entities shall be included.. --analyses visibility(=off) whether to include diverse analyses' results --commonAttThreshold int(=1) from which multiplicity on a comman attribute shall be listed ---------------------------- Include meta information. ---------------------------- --showFullInstructions boolean(=true) whether to include the full instruction text at the beginning --showCommandLine boolean(=true) whether to print the full command line --showCreationDate string(="") whether to show date and time, plus the additional text ----------------------------------------------- Select between source text or expanded text. ----------------------------------------------- --expandDefNames boolean(=false) whether entities standing for names in defintions shall be expanded --expandRefTooltips boolean(=false) whether the text in tool-tips for REFERENCES (to elements and entities) shows the expanded definition --expandContents boolean(=false) whether the text in content model declarations is expanded (the not-selected form is always in the tool-tip of the defined name!) --expandAttlists boolean(=false) whether the text in attribute lists is expanded (the not-selected form is always in the tool-tip of the defined name!) --expandEntities boolean(=false) whether the text in entity declarations is expanded (the not-selected form is always in the tool-tip of the defined name!) ----------------------------------------------------- Overall operational parameters and style variants. ----------------------------------------------------- --collapseWS boolean(=true) whether to collapse all subsequent white-space when collapsing a declaration --acceptIncomplete boolean(=false) indicates when set that an incomplete DTD, with dangling references (and possibly syntax errors), is nevertheless accepted and rendered, producing warnings instead of errors. --outputFormat (xhtml | xhtml_stand_alone | xml | text)(=xhtml) whether to generate colorful dynamic xhtml, xhtml including script and css, xml for further processing, or pure text like the input format. --gui boolean(=false) whether to show the graphic user interface before any processing (this is also done when command line is totally empty!) --source uri(="") source dtd for processing --windowtitle string(="") window title, iff not simply dtd xml coordinates --result uri(="") file where to put the result --linewidth int(=78) number of columns for generated output visibility: * on: The category does always appear in the rendering. * off: The category does never appear in the rendering. * onOff: The category is expandable/collapsable, and initially expanded. * offOn: The category is expandable/collapsable, and initially collapsed.
Modifier and Type | Class and Description |
---|---|
class |
ToolOptions.Descriptions
Programmatically generated catalog of translations.
|
static class |
ToolOptions.outputFormat
Source generated from a command line options specification.
|
static class |
ToolOptions.visibility
Source generated from a command line options specification.
|
Model.ExcDuplicate, Model.ExcFinish, Model.ExcNoData, Model.ExcNoData_allowed, Model.ExcUnknownOpt, Model.ExcWrongType, Model.Pre20220613, Model.SeemsToWorkForLinuxAndSomeWindowsVersions20220613
boolresult, curArg, curArgGroup, curOption, descriptions, dummyRat, hasNonMetaOptions, inputlength, inputstring, matcher, messages, nextAbbrev, nextArgToken, nextName, optTokenValid, p_argRAUS, p_hideblanks, p_option, p_rest, parseErrorGenerator, positionalPhase, positionalsExplicit, positionalsFound, protocol, shellAdapter
Constructor and Description |
---|
ToolOptions() |
Modifier and Type | Method and Description |
---|---|
protected void |
_finalCheck()
Callback, overridden by compiled code.
|
String |
_getMissingOptions() |
String |
_getRedundantOptions() |
protected void |
checkActive()
The generated code will evaluate all conditions to activate/deactive
options in the GUI.
|
boolean |
get_acceptIncomplete_0()
Getter method for the only argument of option
acceptIncomplete . |
ToolOptions.visibility |
get_alphabeticDir_0()
Getter method for the only argument of option
alphabeticDir . |
ToolOptions.visibility |
get_analyses_0()
Getter method for the only argument of option
analyses . |
ToolOptions.visibility |
get_attlists_0()
Getter method for the only argument of option
attlists . |
boolean |
get_collapseWS_0()
Getter method for the only argument of option
collapseWS . |
ToolOptions.visibility |
get_comments_0()
Getter method for the only argument of option
comments . |
int |
get_commonAttThreshold_0()
Getter method for the only argument of option
commonAttThreshold . |
ToolOptions.visibility |
get_elementGraph_0()
Getter method for the only argument of option
elementGraph . |
ToolOptions.visibility |
get_elements_0()
Getter method for the only argument of option
elements . |
ToolOptions.visibility |
get_entityGraph_0()
Getter method for the only argument of option
entityGraph . |
boolean |
get_expandAttlists_0()
Getter method for the only argument of option
expandAttlists . |
boolean |
get_expandContents_0()
Getter method for the only argument of option
expandContents . |
boolean |
get_expandDefNames_0()
Getter method for the only argument of option
expandDefNames . |
boolean |
get_expandEntities_0()
Getter method for the only argument of option
expandEntities . |
boolean |
get_expandRefTooltips_0()
Getter method for the only argument of option
expandRefTooltips . |
ToolOptions.visibility |
get_GEs_0()
Getter method for the only argument of option
GEs . |
boolean |
get_gui_0()
Getter method for the only argument of option
gui . |
ToolOptions.visibility |
get_inserts_0()
Getter method for the only argument of option
inserts . |
int |
get_linewidth_0()
Getter method for the only argument of option
linewidth . |
ToolOptions.outputFormat |
get_outputFormat_0()
Getter method for the only argument of option
outputFormat . |
ToolOptions.visibility |
get_PEs_0()
Getter method for the only argument of option
PEs . |
ToolOptions.visibility |
get_PIs_0()
Getter method for the only argument of option
PIs . |
String |
get_result_0()
Getter method for the only argument of option
result . |
boolean |
get_showCommandLine_0()
Getter method for the only argument of option
showCommandLine . |
String |
get_showCreationDate_0()
Getter method for the only argument of option
showCreationDate . |
boolean |
get_showFullInstructions_0()
Getter method for the only argument of option
showFullInstructions . |
String |
get_source_0()
Getter method for the only argument of option
source . |
String |
get_windowtitle_0()
Getter method for the only argument of option
windowtitle . |
boolean |
has_acceptIncomplete()
Deprecated.
|
boolean |
has_alphabeticDir()
Deprecated.
|
boolean |
has_analyses()
Deprecated.
|
boolean |
has_attlists()
Deprecated.
|
boolean |
has_collapseWS()
Deprecated.
|
boolean |
has_comments()
Deprecated.
|
boolean |
has_commonAttThreshold()
Deprecated.
|
boolean |
has_elementGraph()
Deprecated.
|
boolean |
has_elements()
Deprecated.
|
boolean |
has_entityGraph()
Deprecated.
|
boolean |
has_expandAttlists()
Deprecated.
|
boolean |
has_expandContents()
Deprecated.
|
boolean |
has_expandDefNames()
Deprecated.
|
boolean |
has_expandEntities()
Deprecated.
|
boolean |
has_expandRefTooltips()
Deprecated.
|
boolean |
has_GEs()
Deprecated.
|
boolean |
has_gui()
Deprecated.
|
boolean |
has_inserts()
Deprecated.
|
boolean |
has_linewidth()
Deprecated.
|
boolean |
has_outputFormat()
Deprecated.
|
boolean |
has_PEs()
Deprecated.
|
boolean |
has_PIs()
Deprecated.
|
boolean |
has_result()
Deprecated.
|
boolean |
has_showCommandLine()
Deprecated.
|
boolean |
has_showCreationDate()
Deprecated.
|
boolean |
has_showFullInstructions()
Deprecated.
|
boolean |
has_source()
Deprecated.
|
boolean |
has_windowtitle()
Deprecated.
|
ToolOptions |
makeDefaultInstance()
Overriden by the generated code to make a constructor call of the actual
Model (sub-)class.
|
protected int |
numberOfPositionals() |
protected void |
parseAbbrev(String select)
Callback, overridden by compiled code, which realizes a switch over all one character
option names.
|
protected void |
parseName(String select)
Callback, overridden by compiled code, which realizes a switch over all long
option names.
|
protected void |
parsePositionals()
Callback, overridden by compiled code, which calls one after the other
the positional parameters.
|
String |
serialize()
Called to generate a String representation of the model's state.
|
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.
|
_getMissingParams, ARG_ERROR, canReenterRepetitionGroup, descriptionKeyForCommentField, descriptionKeyForEnum, descriptionKeyForEnum, descriptionKeyForEnumItem, ERROR_plus, ERROR_UNKNOWN_ABBREV, ERROR_UNKNOWN_NAME, ERROR, ERROR, getInputString, getMissingParams, getNextArgToken, getOptToken, getParsingProtocol, lookForArgToken, parse, parseBool_optional, parseBool_X, parseBool, parseChar, parseEnum, parseEnumSet, parseFloat, parseInit, parseInt_16or10, parseInt, parseOneString, parseOneUri, parseRational, parseString, putprot_option, putprot, serialize, serialize, serialize, serialize, serialize, serialize, serialize, serialize, skipToOption, T_ERROR, updateOptTokens, usage, usage, WARNING
protected boolean has_PIs
protected ToolOptions.visibility value_PIs_0
protected boolean has_comments
protected ToolOptions.visibility value_comments_0
protected boolean has_inserts
protected ToolOptions.visibility value_inserts_0
protected boolean has_elements
protected ToolOptions.visibility value_elements_0
protected boolean has_attlists
protected ToolOptions.visibility value_attlists_0
protected boolean has_PEs
protected ToolOptions.visibility value_PEs_0
protected boolean has_GEs
protected ToolOptions.visibility value_GEs_0
protected boolean has_entityGraph
protected ToolOptions.visibility value_entityGraph_0
protected boolean has_elementGraph
protected ToolOptions.visibility value_elementGraph_0
protected boolean has_alphabeticDir
protected ToolOptions.visibility value_alphabeticDir_0
protected boolean has_analyses
protected ToolOptions.visibility value_analyses_0
protected boolean has_commonAttThreshold
protected int value_commonAttThreshold_0
protected boolean has_showFullInstructions
protected boolean value_showFullInstructions_0
protected boolean has_showCommandLine
protected boolean value_showCommandLine_0
protected boolean has_showCreationDate
protected String value_showCreationDate_0
protected boolean has_expandDefNames
protected boolean value_expandDefNames_0
protected boolean has_expandRefTooltips
protected boolean value_expandRefTooltips_0
protected boolean has_expandContents
protected boolean value_expandContents_0
protected boolean has_expandAttlists
protected boolean value_expandAttlists_0
protected boolean has_expandEntities
protected boolean value_expandEntities_0
protected boolean has_collapseWS
protected boolean value_collapseWS_0
protected boolean has_acceptIncomplete
protected boolean value_acceptIncomplete_0
protected boolean has_outputFormat
protected ToolOptions.outputFormat value_outputFormat_0
protected boolean has_gui
protected boolean value_gui_0
protected boolean has_source
protected String value_source_0
protected boolean has_windowtitle
protected String value_windowtitle_0
protected boolean has_result
protected String value_result_0
protected boolean has_linewidth
protected int value_linewidth_0
public ToolOptions makeDefaultInstance()
Model
makeDefaultInstance
in class Model
protected void checkActive()
Model
checkActive
in class Model
@Deprecated public boolean has_PIs()
get_PIs_0()
.public ToolOptions.visibility get_PIs_0()
PIs
.
--PIs visibility(=on)
@Deprecated public boolean has_comments()
get_comments_0()
.public ToolOptions.visibility get_comments_0()
comments
.
--comments visibility(=onOff)
@Deprecated public boolean has_inserts()
get_inserts_0()
.public ToolOptions.visibility get_inserts_0()
inserts
.
--inserts visibility(=offOn)
@Deprecated public boolean has_elements()
get_elements_0()
.public ToolOptions.visibility get_elements_0()
elements
.
--elements visibility(=on)
@Deprecated public boolean has_attlists()
get_attlists_0()
.public ToolOptions.visibility get_attlists_0()
attlists
.
--attlists visibility(=on)
@Deprecated public boolean has_PEs()
get_PEs_0()
.public ToolOptions.visibility get_PEs_0()
PEs
.
--PEs visibility(=onOff)
@Deprecated public boolean has_GEs()
get_GEs_0()
.public ToolOptions.visibility get_GEs_0()
GEs
.
--GEs visibility(=onOff)
@Deprecated public boolean has_entityGraph()
get_entityGraph_0()
.public ToolOptions.visibility get_entityGraph_0()
entityGraph
.
--entityGraph visibility(=onOff)
@Deprecated public boolean has_elementGraph()
get_elementGraph_0()
.public ToolOptions.visibility get_elementGraph_0()
elementGraph
.
--elementGraph visibility(=onOff)
@Deprecated public boolean has_alphabeticDir()
get_alphabeticDir_0()
.public ToolOptions.visibility get_alphabeticDir_0()
alphabeticDir
.
--alphabeticDir visibility(=off)
@Deprecated public boolean has_analyses()
get_analyses_0()
.public ToolOptions.visibility get_analyses_0()
analyses
.
--analyses visibility(=off)
@Deprecated public boolean has_commonAttThreshold()
get_commonAttThreshold_0()
.public int get_commonAttThreshold_0()
commonAttThreshold
.
--commonAttThreshold int(=1)
@Deprecated public boolean has_showFullInstructions()
get_showFullInstructions_0()
.public boolean get_showFullInstructions_0()
showFullInstructions
.
--showFullInstructions boolean(=true)
@Deprecated public boolean has_showCommandLine()
get_showCommandLine_0()
.public boolean get_showCommandLine_0()
showCommandLine
.
--showCommandLine boolean(=true)
@Deprecated public boolean has_showCreationDate()
get_showCreationDate_0()
.public String get_showCreationDate_0()
showCreationDate
.
--showCreationDate string(="")
@Deprecated public boolean has_expandDefNames()
get_expandDefNames_0()
.public boolean get_expandDefNames_0()
expandDefNames
.
--expandDefNames boolean(=false)
@Deprecated public boolean has_expandRefTooltips()
get_expandRefTooltips_0()
.public boolean get_expandRefTooltips_0()
expandRefTooltips
.
--expandRefTooltips boolean(=false)
@Deprecated public boolean has_expandContents()
get_expandContents_0()
.public boolean get_expandContents_0()
expandContents
.
--expandContents boolean(=false)
@Deprecated public boolean has_expandAttlists()
get_expandAttlists_0()
.public boolean get_expandAttlists_0()
expandAttlists
.
--expandAttlists boolean(=false)
@Deprecated public boolean has_expandEntities()
get_expandEntities_0()
.public boolean get_expandEntities_0()
expandEntities
.
--expandEntities boolean(=false)
@Deprecated public boolean has_collapseWS()
get_collapseWS_0()
.public boolean get_collapseWS_0()
collapseWS
.
--collapseWS boolean(=true)
@Deprecated public boolean has_acceptIncomplete()
get_acceptIncomplete_0()
.public boolean get_acceptIncomplete_0()
acceptIncomplete
.
--acceptIncomplete boolean(=false)
@Deprecated public boolean has_outputFormat()
get_outputFormat_0()
.public ToolOptions.outputFormat get_outputFormat_0()
outputFormat
.
--outputFormat (xhtml | xhtml_stand_alone | xml | text)(=xhtml)
@Deprecated public boolean has_gui()
get_gui_0()
.public boolean get_gui_0()
gui
.
--gui boolean(=false)
@Deprecated public boolean has_source()
get_source_0()
.public String get_source_0()
source
.
--source uri(="")
@Deprecated public boolean has_windowtitle()
get_windowtitle_0()
.public String get_windowtitle_0()
windowtitle
.
--windowtitle string(="")
@Deprecated public boolean has_result()
get_result_0()
.public String get_result_0()
result
.
--result uri(="")
@Deprecated public boolean has_linewidth()
get_linewidth_0()
.public int get_linewidth_0()
linewidth
.
--linewidth int(=78)
public String serialize()
Model
public void usage(PrintStream pr)
public void usage(PrintStream pr, String lang)
public void usage_en()
public void usage_en(PrintStream pr)
protected void parseAbbrev(String select)
Model
parseAbbrev
in class Model
select
- the one-character option name, as parsed by this code.protected void parseName(String select)
Model
protected int numberOfPositionals()
protected void parsePositionals()
Model
parsePositionals
in class Model
protected void _finalCheck()
Model
_finalCheck
in class Model
public String _getMissingOptions()
public String _getRedundantOptions()
see also the complete user documentation .