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, setArguments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getDescriptor, setArguments
protected 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.InvalidArgumentException
InvalidDescriptorException
public MoMa(XSDContextIF ctx, java.util.Properties properties) throws InvalidArgumentException, InvalidDescriptorException
ctx
- the context in that the model mapper should run.properties
- the arguments.InvalidArgumentException
InvalidDescriptorException
public 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.InvalidArgumentException
InvalidDescriptorException
public void setDescriptor(java.lang.Object descriptor) throws InvalidDescriptorException
setDescriptor
in interface ImplementationIF
setDescriptor
in class AbstractImplementation
descriptor
- the tree node.InvalidDescriptorException
- if the descriptor isn't valid.protected static void checkDescriptor(java.lang.Object descriptor) throws InvalidDescriptorException
InvalidDescriptorException
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if the initialization fails.public void execute() throws ExecutableException
execute
in interface ExecutableIF
ExecutableException
- if execution fails.public void setContext(XSDContextIF ctx)
setContext
in interface ImplementationIF
setContext
in class AbstractImplementation
ctx
- the context.public RuleEngineIF getRuleEngine()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getCommandLine()
public void terminate()
terminate
in interface ExecutableIF
public void executeSequence(java.lang.String ident, Implementationseq implSeq) throws java.lang.Exception
ident
- The method ident.implSeq
- the sequence.java.lang.Exception
protected 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