com.jaxfront.core.rule
Class ModelAction

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

public class ModelAction
extends AbstractAction

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

Version:
1.60
See Also:
Serialized Form

Constructor Summary
ModelAction(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)
           
 FormulaExpression getExpression()
           
 boolean isEmpty()
           
 void release()
           
 void setSource(Type sourceType)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jaxfront.core.rule.AbstractAction
checkAction, getDOM, getInverseAction, getSource, getTargetTypes, getTargetXPath, getUserAction, isInversable, isUsingUserAction, perform, perform, perform, performInverse, setInverseAction, setTargetXPath, setUseActionTargetAsBase
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelAction

public ModelAction(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
Specified by:
check in class AbstractAction
Throws:
RuleInvocationException

release

public void release()
Specified by:
release in interface IAction
Overrides:
release in class AbstractAction
See Also:
AbstractAction.release()

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in class AbstractAction

clone

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

toString

public java.lang.String toString()
Overrides:
toString in class AbstractAction

setSource

public void setSource(Type sourceType)
Specified by:
setSource in interface IAction
Overrides:
setSource in class AbstractAction

getExpression

public FormulaExpression getExpression()