com.metamatrix.query.processor.xml
Class DefaultCondition

java.lang.Object
  extended by com.metamatrix.query.processor.xml.Condition
      extended by com.metamatrix.query.processor.xml.DefaultCondition

public class DefaultCondition
extends Condition

This condition always evaluates to true, basically is a holder for a sub Program, and can therefore be used as the default choice in an IfInstruction.


Constructor Summary
DefaultCondition(Program thenProgram)
           
 
Method Summary
 boolean evaluate(XMLProcessorEnvironment env, com.metamatrix.query.processor.xml.XMLContext context)
          Always returns true
 java.util.List getResultSetNames()
           
 java.lang.String toString()
           
 
Methods inherited from class com.metamatrix.query.processor.xml.Condition
getThenProgram, isProgramRecursive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCondition

public DefaultCondition(Program thenProgram)
Method Detail

evaluate

public boolean evaluate(XMLProcessorEnvironment env,
                        com.metamatrix.query.processor.xml.XMLContext context)
                 throws MetaMatrixComponentException,
                        MetaMatrixProcessingException
Always returns true

Specified by:
evaluate in class Condition
Parameters:
env - ProcessorEnvironment of the XMLPlan, maintains state of the running XML Processor Plan
Throws:
MetaMatrixComponentException
MetaMatrixProcessingException
See Also:
com.metamatrix.query.processor.xml.Condition#evaluate(Map, List, ProcessorEnvironment)

toString

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

getResultSetNames

public java.util.List getResultSetNames()
See Also:
com.metamatrix.query.processor.xml.Condition#getResultSetNames()


Copyright © 2009. All Rights Reserved.