|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jaxfront.core.rule.AbstractAction
public abstract class AbstractAction
Defines an abstract action. Every action implements a perform method on different target types/visualizers. An action gets fired after an E-C-A rules has been validated true.
Rule,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.jaxfront.core.rule.IAction |
|---|
TYPE_ABSTRACT, TYPE_FORMULA, TYPE_JAVA, TYPE_MODEL, TYPE_UI |
| Constructor Summary | |
|---|---|
AbstractAction(Document DOM,
Type sourceType,
Type xuiType,
java.lang.String xpath,
java.lang.String className)
Creates an action based on a document, a source type and an xpath. |
|
| Method Summary | |
|---|---|
abstract void |
check(Document dom,
Type target)
|
static Action |
checkAction(java.lang.ClassLoader classloader,
java.lang.String className)
|
java.lang.Object |
clone(Type newSource)
|
boolean |
fireChange()
|
int |
getActionType()
|
Document |
getDOM()
|
FormulaExpression |
getExpression()
|
AbstractAction |
getInverseAction()
Returns the definde inverse action. |
Type |
getSource()
|
java.util.List |
getTargetTypes()
Returns the target types of this action. |
java.lang.String |
getTargetXPath()
|
Action |
getUserAction()
Returns the user defined action. |
boolean |
isEmpty()
|
boolean |
isInversable()
Indicates if an action is able to invoke inverse. |
boolean |
isUsingUserAction()
|
void |
perform(Type eventSource)
Performs any kind of action command. |
void |
perform(Type eventSource,
boolean isTemporary)
Performs an action on all target types. |
void |
perform(Type eventSource,
boolean isTemporary,
java.util.Stack callStack)
|
void |
performInverse(Type eventSource,
java.util.Stack callStack)
|
void |
release()
|
void |
setFireChange(boolean fireChange)
|
void |
setInverseAction(AbstractAction action)
Sets an inverse action. |
void |
setSource(Type sourceType)
|
void |
setTargetXPath(java.lang.String xpath)
|
void |
setUseActionTargetAsBase(boolean use)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAction(Document DOM,
Type sourceType,
Type xuiType,
java.lang.String xpath,
java.lang.String className)
DOM - JAXFront documentsourceType - the source type of this actionxpath - the target xpath| Method Detail |
|---|
public abstract void check(Document dom,
Type target)
throws RuleInvocationException
RuleInvocationException
public static Action checkAction(java.lang.ClassLoader classloader,
java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic java.lang.Object clone(Type newSource)
public boolean fireChange()
public int getActionType()
getActionType in interface IActionpublic Document getDOM()
public FormulaExpression getExpression()
getExpression in interface IActionpublic AbstractAction getInverseAction()
IAction
getInverseAction in interface IActionpublic Type getSource()
getSource in interface IActionpublic java.util.List getTargetTypes()
public java.lang.String getTargetXPath()
public Action getUserAction()
public boolean isEmpty()
public boolean isInversable()
public boolean isUsingUserAction()
public void perform(Type eventSource)
throws RuleInvocationException
IAction
perform in interface IActionRuleInvocationException
public void perform(Type eventSource,
boolean isTemporary)
throws RuleInvocationException
IAction
perform in interface IActionisTemporary - saying if this action is not completed yet
RuleInvocationException
public void perform(Type eventSource,
boolean isTemporary,
java.util.Stack callStack)
throws RuleInvocationException
perform in interface IActionRuleInvocationException
public void performInverse(Type eventSource,
java.util.Stack callStack)
throws RuleInvocationException
performInverse in interface IActionRuleInvocationExceptionpublic void release()
release in interface IActionpublic void setFireChange(boolean fireChange)
public void setInverseAction(AbstractAction action)
action - inverse actionpublic void setSource(Type sourceType)
setSource in interface IActionpublic void setTargetXPath(java.lang.String xpath)
public void setUseActionTargetAsBase(boolean use)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||