public class Main extends Object
main(String[])
and contains
global static constants for d2d processing and for the d2d basic gp libraries.
Most executives for the different tasks of d2d are dislocated
as public static methods into Tasks
, since they are also
called by programs. See there for complete use case information flow diagrams.
ModuleRegistry
"under the hood", when looking
for text format definitions.
Modifier and Type | Field and Description |
---|---|
protected static int |
debuglevel |
static String |
DEFAULT_LIBRARY |
static String |
DEFAULT_LIBRARY_SHORTCUT |
static String |
DEFAULT_XSLT_LIB |
static String |
filename_template_xslt_d2d |
static String |
filename_template_xslt_xml
Template for a pseudo file name for xslt rules extracted for one
certain transformation task.
|
protected Map<String,File> |
formatsAndFiles |
static String |
generatedDocumentation_directoryName3 |
protected File |
infile |
protected String |
inputname |
protected Text2Udom.ErrorStrategy |
interactiveErrorStrategy |
protected Options.modes |
mode |
protected ModuleRegistry |
moduleReg |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
msg |
protected MessageCounter<SimpleMessage<XMLDocumentIdentifier>> |
msg_counter |
protected MessageReceiver<SimpleMessage<String>> |
msgMEMSTRING |
protected MessageReceiver<SimpleMessage<Object>> |
msgNOLOC |
protected static Options |
options |
protected File |
outfile |
protected String |
outputname |
protected FileOutputStream |
outstream |
static String |
PROGRAM_NAME |
static String |
string_pseudo_format_xmlSource
The string which must be given as a "target format key" in the
"keys" list of "text2texts()" for storing the un-processed xml data.
|
static String |
string_user_error_flag
The name of an xslt parameter which is SET automatically by
this code to signal the presence of errors in preceding processing steps
to subsequent xslt processing.
|
static NamespaceName |
stylesheet_param_cssUrls
Name of an xslt stylesheet parameter for processing it
with Java code, in parallel to the usual xslt-based processing.
|
static NamespaceName |
stylesheet_param_favicon
Name of an xslt stylesheet parameter for processing it
with Java code, in parallel to the usual xslt-based processing.
|
static NamespaceName |
stylesheet_param_preamble_filepos |
protected NamespaceName2String |
stylesheetParams |
protected String |
targetModule |
protected String |
targetTopTag |
static String |
url_default_ddfDoc_css |
static String |
VERSION |
static String |
VERSION_COMMENT |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
protected void |
check_multi_keys()
Parses the "keys" option, which contains pairs of target formats and file names.
|
protected void |
check_noKey_noKeys() |
protected void |
check_noKeys() |
protected void |
checkKeyIsSet(String txt)
currently only used for ddf2doc-mode
|
protected void |
closeoutstream() |
protected void |
error(Exception ex,
String s) |
protected void |
error(String s) |
protected void |
get2names(String s)
Extract an input and an output file name from the options (option --source and --outputfile).
|
protected void |
getInputName() |
protected void |
getKey_split()
currently only used for ddf2xslt-mode.
|
protected int |
getLineWidth() |
protected void |
getStylesheetParams() |
protected void |
initInteractiveErrorStrategy() |
protected void |
initModuleReg() |
protected void |
initModuleReg(boolean useResolver34) |
protected void |
log(String s) |
protected void |
logEnd(String s) |
protected void |
logStart(String s) |
static void |
main(String[] args) |
protected String |
modeText() |
protected void |
nonStatic_main(String[] args)
Tool implementation: Decodes and checks the commandline options,
sets up some global parameters and calls the different worker methods.
|
protected void |
openoutstream() |
protected void |
printErrorCounter() |
static String[] |
splitAndCheckKey(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
String s)
Split one string according to the syntax
[modulePath] (":"[ElementTag])? . |
protected void |
terminateApplicationOnErrors_printUsage() |
protected void |
terminateApplicationOnErrors() |
protected void |
warning(String s) |
public static final String PROGRAM_NAME
public static final String VERSION
public static final String VERSION_COMMENT
protected static final Options options
protected static int debuglevel
public static final String DEFAULT_LIBRARY
public static final String DEFAULT_LIBRARY_SHORTCUT
public static final String DEFAULT_XSLT_LIB
public static final String string_pseudo_format_xmlSource
public static final String string_user_error_flag
public static final String filename_template_xslt_xml
public static final String filename_template_xslt_d2d
public static final String generatedDocumentation_directoryName3
public static final String url_default_ddfDoc_css
public static final NamespaceName stylesheet_param_cssUrls
public static final NamespaceName stylesheet_param_favicon
public static final NamespaceName stylesheet_param_preamble_filepos
protected String inputname
protected String outputname
protected File infile
protected File outfile
protected FileOutputStream outstream
protected Options.modes mode
protected String targetModule
protected String targetTopTag
protected ModuleRegistry moduleReg
protected Text2Udom.ErrorStrategy interactiveErrorStrategy
protected NamespaceName2String stylesheetParams
protected MessageCounter<SimpleMessage<XMLDocumentIdentifier>> msg_counter
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg
protected MessageReceiver<SimpleMessage<Object>> msgNOLOC
protected MessageReceiver<SimpleMessage<String>> msgMEMSTRING
protected void error(String s)
protected void warning(String s)
protected void log(String s)
protected void logStart(String s)
protected void logEnd(String s)
protected void printErrorCounter()
protected void terminateApplicationOnErrors_printUsage()
protected void terminateApplicationOnErrors()
protected String modeText()
protected void get2names(String s)
protected void getInputName()
protected void check_noKey_noKeys()
protected void check_noKeys()
public static String[] splitAndCheckKey(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, String s)
[modulePath] (":"[ElementTag])?
.
Return one or two strings, or null in case of error.
The first is always a definition module (mostly a dtd!).
The second is the top-level element, used for identifying the "set of reachables".protected void getKey_split()
protected void checkKeyIsSet(String txt)
protected void check_multi_keys()
protected int getLineWidth()
protected void openoutstream()
protected void closeoutstream()
protected void initModuleReg()
protected void initModuleReg(boolean useResolver34)
protected void initInteractiveErrorStrategy()
protected void getStylesheetParams()
see also the complete user documentation .