org.teiid.query.processor.xml
Class DefaultCondition

java.lang.Object
  extended by org.teiid.query.processor.xml.Condition
      extended by org.teiid.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, org.teiid.query.processor.xml.XMLContext context)
          Always returns true
 java.util.List getResultSetNames()
           
 java.lang.String toString()
           
 
Methods inherited from class org.teiid.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,
                        org.teiid.query.processor.xml.XMLContext context)
                 throws TeiidComponentException,
                        TeiidProcessingException
Always returns true

Specified by:
evaluate in class Condition
Parameters:
env - XMLProcessorEnvironment of the XMLPlan, maintains state of the running XML Processor Plan
Throws:
TeiidComponentException
TeiidProcessingException
See Also:
org.teiid.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:
org.teiid.query.processor.xml.Condition#getResultSetNames()


Copyright © 2010. All Rights Reserved.