Package eu.bandm.tools.umod
Class Main
java.lang.Object
eu.bandm.tools.umod.Main
Class with the main entry methods, both by command line or
programmatically.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static MessagePrinter<SimpleMessage<@Opt XMLDocumentIdentifier>> Drain for all messages.protected static MessageCounterDrain for all messages.protected static MessageTee<SimpleMessage<@Opt XMLDocumentIdentifier>> Drain for all messages. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcheckErrors(String text) Exit the application when errors or failures have occured.static Stringprotected static voidSend a logging message to the standard drains.protected static voidSend a logging-start message to the standard drains.protected static voidSend a logging-start message to the standard drains.static voidMain entry point, called by the command line.stream2factory(@Opt Factory incomingFactory, InputStream str, String sourcefilename, MessageReceiver<SimpleMessage<@Opt XMLDocumentIdentifier>> msg) textInputs2factory(@Opt Factory startingFactory, MessageReceiver<SimpleMessage<String>> msg, TextInput... inputs) static @Opt UMod.ForesttextInputs2forest(MessageReceiver<SimpleMessage<String>> msg, TextInput... inputs) static @Opt UMod.ForesttextInputs2forest(@Opt Factory startingFactory, MessageReceiver<SimpleMessage<String>> msg, TextInput... inputs)
-
Field Details
-
msg_count
Drain for all messages. -
msg_interactive
Drain for all messages. -
mp_interactive
Drain for all messages.
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
textInputs2forest
public static @Opt UMod.Forest textInputs2forest(MessageReceiver<SimpleMessage<String>> msg, TextInput... inputs) -
textInputs2forest
public static @Opt UMod.Forest textInputs2forest(@Opt Factory startingFactory, MessageReceiver<SimpleMessage<String>> msg, TextInput... inputs) -
textInputs2factory
public static @Opt Factory textInputs2factory(@Opt Factory startingFactory, MessageReceiver<SimpleMessage<String>> msg, TextInput... inputs) -
stream2factory
public static @Opt Factory stream2factory(@Opt Factory incomingFactory, InputStream str, String sourcefilename, MessageReceiver<SimpleMessage<@Opt XMLDocumentIdentifier>> msg) - Returns:
- null if error, but not necessarily.
-
getVersionValue
-
log
Send a logging message to the standard drains.- Parameters:
s- the text of the message
-
logS
Send a logging-start message to the standard drains.- Parameters:
s- the text of the message
-
logE
Send a logging-start message to the standard drains.- Parameters:
s- the text of the message
-
checkErrors
Exit the application when errors or failures have occured.- Parameters:
text- to be printed to the terminal
-
main
Main entry point, called by the command line. Parses one or multiple input files into a meta-model, generates the Java source for the model elements and visitors, and generates documentation files.- Parameters:
args- the command line arguments.- Throws:
Exception
-