@PersistantProperty(property="message") @PersistantProperty(property="arguments",alias="argument") public class MActionPrintF extends AbstractActionPrint
MFormatAccessor
, allowing to replace parts of an input String with values.MFormatAccessor
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
MActionPrintF.Argument
Overriding MFormatAccessor argument to have our own argument type.
|
IExecutable.ValueReturning
Constructor and Description |
---|
MActionPrintF() |
MActionPrintF(IReadAccessor message) |
MActionPrintF(IReadAccessor message,
boolean error) |
MActionPrintF(IReadAccessor message,
List<? extends MActionPrintF.Argument> arguments) |
MActionPrintF(IReadAccessor message,
List<? extends MActionPrintF.Argument> arguments,
boolean error) |
Modifier and Type | Method and Description |
---|---|
MActionPrintF |
clone()
Clones the Addon.
|
protected void |
compileExecutable(ICompilationContext ctxt)
Called by
AbstractExecutable.compile(ICompilationContext) to perform compilation operations. |
boolean |
equals(Object o) |
List<? extends MActionPrintF.Argument> |
getArguments() |
String |
getImplementationId()
Unique addon implementation ID.
|
IReadAccessor |
getMessage() |
int |
hashCode() |
protected void |
print(IExecutionContext ctxt)
Handles implementation specificities of printing, and then should redirect effective printing to
AbstractActionPrint.print(IExecutionContext, Object) |
void |
setArguments(List<? extends MActionPrintF.Argument> arguments) |
void |
setMessage(IReadAccessor message) |
void |
toString(OuterWithLevel outer)
Method used to send String representation of the current object to the
OuterWithLevel . |
internalExecute, isError, print, setError
execute
combineResults, compile, compileExecutables, execute, execute, getProperties, getProperty, hasProperties, hasProperty, removeProperty, setProperty
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getProperties, hasProperties, hasProperty, removeProperty
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String PRINTF_ID
public MActionPrintF()
public MActionPrintF(IReadAccessor message)
public MActionPrintF(IReadAccessor message, boolean error)
public MActionPrintF(IReadAccessor message, List<? extends MActionPrintF.Argument> arguments)
public MActionPrintF(IReadAccessor message, List<? extends MActionPrintF.Argument> arguments, boolean error)
protected void compileExecutable(ICompilationContext ctxt) throws MRuleValidationException
AbstractExecutable
AbstractExecutable.compile(ICompilationContext)
to perform compilation operations.compileExecutable
in class AbstractExecutable
MRuleValidationException
protected void print(IExecutionContext ctxt) throws MActionExecutionException
AbstractActionPrint
AbstractActionPrint.print(IExecutionContext, Object)
print
in class AbstractActionPrint
MActionExecutionException
public String getImplementationId()
IAddon
public void toString(OuterWithLevel outer) throws IOException
Outable
OuterWithLevel
.IOException
public MActionPrintF clone()
IAddon
clone
in interface IAction
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface IExecutable
clone
in class AbstractActionPrint
public boolean equals(Object o)
equals
in class AbstractActionPrint
public int hashCode()
hashCode
in class AbstractActionPrint
public IReadAccessor getMessage()
public void setMessage(IReadAccessor message)
public List<? extends MActionPrintF.Argument> getArguments()
public void setArguments(List<? extends MActionPrintF.Argument> arguments)