org.outerj.xreporter.report.instance
Class QbeCondition

java.lang.Object
  extended byorg.outerj.xreporter.report.instance.InputField
      extended byorg.outerj.xreporter.report.instance.Condition
          extended byorg.outerj.xreporter.report.instance.QbeCondition

public class QbeCondition
extends Condition

Special variant of Condition for usage in the QBE. The difference is that in the QBE, the same condition can appear mulitple times since a QBE consists of muliple lines with the same conditions on each line. Therefore the name of the condition is now of the form "conditionname.linenumber".

Another difference is that conditions in the QBE are never required.


Nested Class Summary
 
Nested classes inherited from class org.outerj.xreporter.report.instance.Condition
Condition.ValueEntry
 
Field Summary
protected  int lineNumber
           
 
Fields inherited from class org.outerj.xreporter.report.instance.Condition
CONDITION_EL, definition, NAME_ATTR, noValue, operator, OPERATOR_EL, REQUIRED_ATTR, SELECTED_ATTR, VALID_ATTR, VALID_MSG_ATTR, VALUE_EL, values, VALUES_EL
 
Constructor Summary
QbeCondition(QbeConditionDefinition conditionDefinition, int lineNumber)
           
 
Method Summary
 java.lang.String getField()
           
 java.lang.String getName()
           
 boolean isRequired()
           
protected  void store(ReportState reportState, java.lang.String key, java.lang.String value)
           
 
Methods inherited from class org.outerj.xreporter.report.instance.Condition
bind, createRequiredValueEntry, generateInfoSaxFragment, generateSaxFragment, getArgumentCount, getDataType, getFormattedValues, getOperator, hasValue, isValid, readStoredEntry, reset, storeEntry, storeState, submit, submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineNumber

protected int lineNumber
Constructor Detail

QbeCondition

public QbeCondition(QbeConditionDefinition conditionDefinition,
                    int lineNumber)
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class Condition

isRequired

public boolean isRequired()
Overrides:
isRequired in class Condition

getField

public java.lang.String getField()

store

protected void store(ReportState reportState,
                     java.lang.String key,
                     java.lang.String value)
Overrides:
store in class Condition