com.jaxfront.core.rule
Class ActionImpl

java.lang.Object
  extended by com.jaxfront.core.rule.AbstractAction
      extended by com.jaxfront.core.rule.ModelAction
          extended by com.jaxfront.core.rule.ActionImpl
All Implemented Interfaces:
IAction, java.io.Serializable, java.lang.Cloneable

public class ActionImpl
extends ModelAction

Defines an action for any property change on a JAXFront model (type).

See Also:
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
ActionImpl(Document DOM, Type sourceType, java.lang.String xpath, Type xuiType, java.lang.String className)
          Creates an model action based on a document, a source type and an xpath.
 
Method Summary
 void check(Document dom, Type target)
           
 java.lang.Object clone(Type newSource)
           
 int getActionType()
           
 
Methods inherited from class com.jaxfront.core.rule.ModelAction
getExpression, isEmpty, release, setSource, toString
 
Methods inherited from class com.jaxfront.core.rule.AbstractAction
checkAction, fireChange, getDOM, getInverseAction, getSource, getTargetTypes, getTargetXPath, getUserAction, isInversable, isUsingUserAction, perform, perform, perform, performInverse, setFireChange, setInverseAction, setTargetXPath, setUseActionTargetAsBase
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionImpl

public ActionImpl(Document DOM,
                  Type sourceType,
                  java.lang.String xpath,
                  Type xuiType,
                  java.lang.String className)
Creates an model action based on a document, a source type and an xpath.

Parameters:
DOM - JAXFront document
sourceType - the source type of this action
xpath - the target xpath
xuiType - xui definition for this action
className - user defined action implementation class name
Method Detail

check

public void check(Document dom,
                  Type target)
           throws RuleInvocationException
Overrides:
check in class ModelAction
Throws:
RuleInvocationException

clone

public java.lang.Object clone(Type newSource)
Overrides:
clone in class ModelAction

getActionType

public int getActionType()
Specified by:
getActionType in interface IAction
Overrides:
getActionType in class ModelAction
Returns:
the action type 0 = Abstract Action, 1 = ModelAction, 2 = Formula Action ,3 = UI Action, 4 = Java Action ;