java.lang.Object
org.jxbeans.AbstractJXBean
org.jxbeans.AbstractDocumentSource
org.jxbeans.flow_control.Decision
- All Implemented Interfaces:
- org.jxbeans.DocumentReadyListener, org.jxbeans.DocumentSource, java.util.EventListener, java.io.Serializable
- public class Decision
- extends org.jxbeans.AbstractDocumentSource
- implements org.jxbeans.DocumentReadyListener
The Decision JXBean represents an "if" condition in a JXBean model.
If the XPath expression property evaluates to true, the a
DocumentReadyEvent will be sent to the standard DocumentReadyListeners.
If the XPath expression evaluates to false, a
DocumentReadyEvent will be sent to the "false" DocumentReadyListener.
- Since:
- 1.0
- Version:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.log4j.Category log
falseListeners
private java.util.List falseListeners
expression
private java.lang.String expression
Decision
public Decision()
documentReady
public void documentReady(org.jxbeans.DocumentReadyEvent anEvent)
throws org.jxbeans.JXBeanException
- Description copied from interface:
org.jxbeans.DocumentReadyListener
- Classes implementing this method are expected to process the
document contained in the
DocumentReadyEvent in some fashion
specific to the class implementing this interface.
- Specified by:
documentReady in interface org.jxbeans.DocumentReadyListener
addFalseDocumentReadyListener
public void addFalseDocumentReadyListener(org.jxbeans.DocumentReadyListener aDocumentReadyListener)
throws java.util.TooManyListenersException
- Adds a
DocumentReadyListener that should get the document in the case where the
XPath expression evaluates to false.
- Since:
- 1.0
removeFalseDocumentReadyListener
public void removeFalseDocumentReadyListener(org.jxbeans.DocumentReadyListener aDocumentReadyListener)
- Removes a
DocumentReadyListener that should get the document in the case where the
XPath expression evaluates to false.
- Since:
- 1.0
setExpression
public void setExpression(java.lang.String anExpression)
- Sets the boolean XPath expression that will be evaluated against the incoming document.
- Since:
- 1.0
getExpression
public java.lang.String getExpression()
- Since:
- 1.0