ReportMill 11 API

com.reportmill.datasource
Class RMConditionList

java.lang.Object
  extended by com.reportmill.base.RMObject
      extended by com.reportmill.datasource.RMCondition
          extended by com.reportmill.datasource.RMConditionList
All Implemented Interfaces:
com.reportmill.base.RMPropertyChanger, java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener

public class RMConditionList
extends RMCondition
implements java.beans.PropertyChangeListener

This condition subclass represents a list of conditions.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.reportmill.datasource.RMCondition
RMCondition.DateConstraint, RMCondition.Operator
 
Constructor Summary
RMConditionList()
          Creates a composite condition.
 
Method Summary
 RMConditionList addCondition(RMCondition.Operator anOperator, RMCondition aCondition)
          Adds a condition.
 RMConditionList addCondition(RMCondition.Operator anOperator, RMCondition aCondition, int anIndex)
          Adds a condition at given index.
 RMConditionList clone()
          Standard clone implementation.
 boolean equals(java.lang.Object anObj)
          Standard equals implementation.
 RMConditionList fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
          XML Unarchival.
 RMCondition getCondition(int anIndex)
          Returns the condition at the given index.
 int getConditionCount()
          Returns the number of conditions in this composite.
 java.util.List<RMCondition> getConditions()
          Returns the conditions.
 RMCondition.Operator getOperator(int anIndex)
          Returns the operator at the given index.
 java.util.List<RMCondition.Operator> getOperators()
          Returns the operators.
 int indexOfCondition(RMCondition aCondition)
          Returns the index of a given condition.
 void propertyChange(java.beans.PropertyChangeEvent anEvent)
          Catches child property changes and forwards them to our listener.
 RMCondition removeCondition(int anIndex)
          Removes a condition from a given index.
 int removeCondition(RMCondition aCondition)
          Removes the given condition.
 void setOperator(RMCondition.Operator anOperator, int anIndex)
          Sets the operator at the given index.
 java.lang.String toString()
          Returns a string for condition.
 com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
          XML Archival.
 
Methods inherited from class com.reportmill.datasource.RMCondition
getDateConstraint, getIgnoreCase, getLeftSide, getOperator, getOperators, getRightSide, isNegated, setDateConstraint, setIgnoreCase, setLeftSide, setNegated, setOperator, setRightSide, setRightSideValues
 
Methods inherited from class com.reportmill.base.RMObject
addListener, addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMConditionList

public RMConditionList()
Creates a composite condition.

Method Detail

getOperators

public java.util.List<RMCondition.Operator> getOperators()
Returns the operators.


getConditions

public java.util.List<RMCondition> getConditions()
Returns the conditions.


getConditionCount

public int getConditionCount()
Returns the number of conditions in this composite.


getCondition

public RMCondition getCondition(int anIndex)
Returns the condition at the given index.


addCondition

public RMConditionList addCondition(RMCondition.Operator anOperator,
                                    RMCondition aCondition)
Adds a condition.


addCondition

public RMConditionList addCondition(RMCondition.Operator anOperator,
                                    RMCondition aCondition,
                                    int anIndex)
Adds a condition at given index.


removeCondition

public RMCondition removeCondition(int anIndex)
Removes a condition from a given index.


removeCondition

public int removeCondition(RMCondition aCondition)
Removes the given condition.


indexOfCondition

public int indexOfCondition(RMCondition aCondition)
Returns the index of a given condition.


getOperator

public RMCondition.Operator getOperator(int anIndex)
Returns the operator at the given index.


setOperator

public void setOperator(RMCondition.Operator anOperator,
                        int anIndex)
Sets the operator at the given index.


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent anEvent)
Catches child property changes and forwards them to our listener.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

equals

public boolean equals(java.lang.Object anObj)
Standard equals implementation.

Overrides:
equals in class RMCondition

clone

public RMConditionList clone()
Standard clone implementation.

Overrides:
clone in class RMCondition

toXML

public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver,
                                               java.lang.Object anOwner)
XML Archival.

Overrides:
toXML in class RMCondition

fromXML

public RMConditionList fromXML(com.reportmill.archiver.RXArchiver anArchiver,
                               com.reportmill.archiver.RXElement anElement,
                               java.lang.Object anOwner)
XML Unarchival.

Overrides:
fromXML in class RMCondition

toString

public java.lang.String toString()
Returns a string for condition.

Overrides:
toString in class RMCondition

ReportMill 11 API