@PersistantProperty(property="source") @PersistantProperty(property="index") @PersistantProperty(property="defaultRedirect") @PersistantProperty(property="defaultActions",alias="defaultAction") @PersistantProperty(property="stopAtFirstValidatedCondition",defaultValue="true") @PersistantProperty(property="stopAtFirstValidatedDefaultCondition",defaultValue="false") public class MIndex extends AbstractExecutable
Modifier and Type | Class and Description |
---|---|
static class |
MIndex.IndexAction
This class contains description of what to do when an index value corresponds to the entity value.
|
IExecutable.ValueReturning
Constructor and Description |
---|
MIndex()
Empty Constructor.
|
MIndex(IReadAccessor source,
Map<Object,MIndex.IndexAction> index) |
MIndex(IReadAccessor source,
Map<Object,MIndex.IndexAction> index,
List<? extends IExecutable> defaultActions)
Complete constructor
|
combineResults, compile, compileExecutables, execute, execute, execute, getProperties, getProperty, hasProperties, hasProperty, removeProperty, setProperty
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String INDEX_ID
public MIndex()
public MIndex(IReadAccessor source, Map<Object,MIndex.IndexAction> index)
public MIndex(IReadAccessor source, Map<Object,MIndex.IndexAction> index, List<? extends IExecutable> defaultActions)
protected void compileExecutable(ICompilationContext ctxt) throws MRuleValidationException
AbstractExecutable
AbstractExecutable.compile(ICompilationContext)
to perform compilation operations.compileExecutable
in class AbstractExecutable
MRuleValidationException
public boolean wasRegistered(ICompilationContext ctxt, IAddon parent, AddonInfo info) throws MRuleValidationException
AbstractAddon
wasRegistered
in interface IAddon
wasRegistered
in class AbstractAddon
parent
- Parent from which this instance of addon was registered.info
- Addon info for the currently registered addonMRuleValidationException
protected IExecutionResult internalExecute(IExecutionContext ctxt) throws MExecutionException
internalExecute
in class AbstractExecutable
ExecutionResultState.combineActionState(ExecutionResultState)
) :
MExecutionException
public void debugEntering(IExecutionContext ctxt, IAddon addon)
AbstractExecutable.execute(IExecutionContext)
.protected void debugAfterIndex(IExecutionContext ctxt, boolean valueFound)
AbstractExecutable.execute(IExecutionContext)
, between conditions evaluation
and actions execution.public String getImplementationId()
IAddon
public void toString(OuterWithLevel outer) throws IOException
Outable
OuterWithLevel
.IOException
public MIndex clone()
IAddon
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface IExecutable
clone
in class AbstractExecutable
public IReadAccessor getSource()
public void setSource(IReadAccessor source)
public Map<Object,MIndex.IndexAction> getIndex()
public void setIndex(Map<Object,MIndex.IndexAction> index)
public Object getDefaultRedirect()
public void setDefaultRedirect(Object defaultRedirect)
public List<? extends IExecutable> getDefaultActions()
public void setDefaultActions(List<? extends IExecutable> defaultActions)
public boolean isStopAtFirstValidatedCondition()
public void setStopAtFirstValidatedCondition(boolean stopAtFirstValidatedCondition)
public boolean isStopAtFirstValidatedDefaultCondition()
public void setStopAtFirstValidatedDefaultCondition(boolean stopAtFirstDefaultValidatedCondition)