public class MoMa extends AbstractImplementation implements ExecutableIF
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| ARGV.length | int | 0 | Total number of command line arguments. The size of the ARGV[] property array. |
| ARGV[index] | String | null | Command line argument. The word index should be replaced by the index of the argument array. The index starts at 0. The property ARGV.length gives the length of the array. |
| basedir | directory | null | The directory of the rules file.. |
| job.filename | file | null | The name of the file containing the job. |
| transformer.version | String | actual version | The actual transformer version. |
| all java system properties | String | All JVM properties, also those comming from commandline. |
ExecutableIF| Modifier and Type | Class and Description |
|---|---|
class |
MoMa.EngineRunner
The engine runnable
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
loglevel |
protected java.lang.String |
messagelevel |
protected java.lang.String |
tracelevel |
arguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
MoMa()
Create the MoMa using a context.
|
MoMa(XSDContextIF ctx)
The transformer constructor.
|
MoMa(XSDContextIF ctx,
java.util.Properties properties)
The transformer constructor.
|
MoMa(XSDContextIF ctx,
java.util.Properties properties,
Job jobXML)
The transformer constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkDescriptor(java.lang.Object descriptor) |
void |
execute()
Execute the program.
|
protected static void |
execute(XSDContextIF ctx,
ExecutableIF executable,
java.util.logging.Logger messenger,
java.lang.String method) |
void |
executeSequence(java.lang.String ident,
Implementationseq implSeq)
Excute a sequence of executable interfaces.
|
protected java.lang.String |
getCommandLine() |
static java.lang.String |
getLocalFilename(XSDContextIF ctx,
java.lang.String filename)
Get the local filename.
|
RuleEngineIF |
getRuleEngine()
Get the rule engine of the transformer.
|
void |
init()
Initialize the program.
|
static void |
main(java.lang.String[] args)
The main program to execute an XML fromn commandline.
|
void |
setContext(XSDContextIF ctx)
Set the context.
|
void |
setDescriptor(java.lang.Object descriptor)
Set the xml tree descriptor.
|
void |
terminate()
Tear down
|
java.lang.String |
toString() |
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArgumentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContext, getDescriptor, setArgumentsprotected java.lang.String loglevel
protected java.lang.String messagelevel
protected java.lang.String tracelevel
public MoMa()
public MoMa(XSDContextIF ctx) throws InvalidArgumentException, InvalidDescriptorException
ctx - the context in that the model mapper should run.InvalidArgumentExceptionInvalidDescriptorExceptionpublic MoMa(XSDContextIF ctx, java.util.Properties properties) throws InvalidArgumentException, InvalidDescriptorException
ctx - the context in that the model mapper should run.properties - the arguments.InvalidArgumentExceptionInvalidDescriptorExceptionpublic MoMa(XSDContextIF ctx, java.util.Properties properties, Job jobXML) throws InvalidArgumentException, InvalidDescriptorException
ctx - the context in that the model mapper should run.properties - the arguments.jobXML - the XML tree node of the job.InvalidArgumentExceptionInvalidDescriptorExceptionpublic void setDescriptor(java.lang.Object descriptor)
throws InvalidDescriptorException
setDescriptor in interface ImplementationIFsetDescriptor in class AbstractImplementationdescriptor - the tree node.InvalidDescriptorException - if the descriptor isn't valid.protected static void checkDescriptor(java.lang.Object descriptor)
throws InvalidDescriptorException
InvalidDescriptorExceptionpublic void init()
throws InitializationFailedException
init in interface ImplementationIFinit in class AbstractImplementationInitializationFailedException - if the initialization fails.public void execute()
throws ExecutableException
execute in interface ExecutableIFExecutableException - if execution fails.public void setContext(XSDContextIF ctx)
setContext in interface ImplementationIFsetContext in class AbstractImplementationctx - the context.public RuleEngineIF getRuleEngine()
public java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.String getCommandLine()
public void terminate()
terminate in interface ExecutableIFpublic void executeSequence(java.lang.String ident,
Implementationseq implSeq)
throws java.lang.Exception
ident - The method ident.implSeq - the sequence.java.lang.Exceptionprotected static void execute(XSDContextIF ctx, ExecutableIF executable, java.util.logging.Logger messenger, java.lang.String method)
public static void main(java.lang.String[] args)
public static java.lang.String getLocalFilename(XSDContextIF ctx, java.lang.String filename) throws java.io.IOException
a - filename spec.java.io.IOException