Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jxbeans.flow_control
Class Decision  view Decision download Decision.java

java.lang.Object
  extended byorg.jxbeans.AbstractJXBean
      extended byorg.jxbeans.AbstractDocumentSource
          extended byorg.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

Field Summary
private  java.lang.String expression
           
private  java.util.List falseListeners
           
private static org.apache.log4j.Category log
           
 
Fields inherited from class org.jxbeans.AbstractDocumentSource
listeners
 
Fields inherited from class org.jxbeans.AbstractJXBean
 
Constructor Summary
Decision()
           
 
Method Summary
 void addFalseDocumentReadyListener(org.jxbeans.DocumentReadyListener aDocumentReadyListener)
          Adds a DocumentReadyListener that should get the document in the case where the XPath expression evaluates to false.
 void documentReady(org.jxbeans.DocumentReadyEvent anEvent)
          Classes implementing this method are expected to process the document contained in the DocumentReadyEvent in some fashion specific to the class implementing this interface.
 java.lang.String getExpression()
           
 void removeFalseDocumentReadyListener(org.jxbeans.DocumentReadyListener aDocumentReadyListener)
          Removes a DocumentReadyListener that should get the document in the case where the XPath expression evaluates to false.
 void setExpression(java.lang.String anExpression)
          Sets the boolean XPath expression that will be evaluated against the incoming document.
 
Methods inherited from class org.jxbeans.AbstractDocumentSource
addDocumentReadyListener, forwardDocument, forwardDocument, getDocumentReadyListeners, logDocument, removeDocumentReadyListener
 
Methods inherited from class org.jxbeans.AbstractJXBean
getName, logErrorAndRaiseException, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Category log

falseListeners

private java.util.List falseListeners

expression

private java.lang.String expression
Constructor Detail

Decision

public Decision()
Method Detail

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