public class PrintRule extends AbstractSequencerRule
setValue()
Argument Keyword | Datatype | Default | Description |
---|---|---|---|
Message | String | none | The message to be printed. When the message contains one of the following key words, it's used as command for output format: "FORMAT=COMPACT", the NameValueUntit[][] is print in a more readable compact to sysout "FORMAT=COMPACT_TRUNCATE", the NameValueUntit[][] is print in a more readable compact to sysout. Only the first 25 characters of a value are printed "FORMAT=COMPACT_LOG", the NameValueUntit[][] is print in a more readable compact to logfile "FORMAT=DOC", the NameValueUntit[][] is print for copying into rule header - test case format. |
Filename | File | none | The optional filename that assigns the file for message output. |
Append | boolean | false | If the filename is assigned this property decides whether to append are rewrite the file. |
Reference | String | none | The optional name of the reference to printed. |
Property | String | none | The optional name of the property to printed. |
AbstractRule
cleanAfterGet, localNVU
loggerName, postMethods, preMethods, sessionRef
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
PrintRule()
Create an literal rule.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
The execute method.
|
void |
init()
Initialize the work.
|
void |
setArguments(java.util.Properties args)
Set the arguments.
|
void |
setValue(NameValueUnit[][] nvuArr)
Set the named value to rule.
|
getValue, terminate
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, toString, toString, 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, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getDescriptor, setContext, setDescriptor
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractSequencerRule
InitializationFailedException
- if the initialization fails.public void setArguments(java.util.Properties args) throws InvalidArgumentException
setArguments
in interface ImplementationIF
setArguments
in class AbstractImplementation
args
- the property mapInvalidArgumentException
- if the arguments are not valid.public void execute() throws ExecutableException
execute
in interface ExecutableIF
execute
in class AbstractSequencerRule
ExecutableException
- if execution fails.AbstractRule.execute()
public void setValue(NameValueUnit[][] nvuArr)
nvu
- The name value of the rule.