|
||||||||||
| 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| 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.String className)
|
java.lang.Object |
clone(Type newSource)
|
Document |
getDOM()
|
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 |
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 AbstractAction getInverseAction()
IAction
getInverseAction in interface IActionpublic java.util.List getTargetTypes()
public boolean isInversable()
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 IActionRuleInvocationExceptionpublic boolean isUsingUserAction()
public Action getUserAction()
public static Action checkAction(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public void performInverse(Type eventSource,
java.util.Stack callStack)
throws RuleInvocationException
performInverse in interface IActionRuleInvocationExceptionpublic void release()
release in interface IActionpublic void setInverseAction(AbstractAction action)
action - inverse actionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone(Type newSource)
public boolean isEmpty()
public java.lang.String getTargetXPath()
public void setTargetXPath(java.lang.String xpath)
public abstract void check(Document dom,
Type target)
throws RuleInvocationException
RuleInvocationExceptionpublic Document getDOM()
public void setSource(Type sourceType)
setSource in interface IActionpublic Type getSource()
getSource in interface IActionpublic void setUseActionTargetAsBase(boolean use)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||