Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

oracle.odi.domain.xrefs.expression.contexts
Class CompoundExpressionContext

java.lang.Object
  extended by oracle.odi.domain.xrefs.expression.contexts.CompoundExpressionContext
All Implemented Interfaces:
IExpressionContext

public class CompoundExpressionContext
extends java.lang.Object
implements IExpressionContext

An IExpressionContext that chains a sequence of one or more IExpressionContexts.

A compound expression string context calls each IExpressionContext in sequence.

Since:
11.1.1.3.0

Constructor Summary
CompoundExpressionContext()
          Create an empty CompoundExpressionContext.
CompoundExpressionContext(boolean pIsCachingEnabled)
           
CompoundExpressionContext(IExpressionContext[] pContexts)
          Create a CompoundExpressionContext with a given initial context sequence.
CompoundExpressionContext(IExpressionContext[] pContexts, boolean pIsCachingEnabled)
           
 
Method Summary
 void addExpressionContext(IExpressionContext pContext)
          Add the given context to the end of the context sequence of this object.
 IExpressionContext getExpressionContext(int pIndex)
          Obtains the expression context at the given index.
 int getExpressionContextCount()
          Returns the expression context count.
 com.sunopsis.language.parser.SnpsExpressionTag[] getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
          Obtains the expression tags relative to this context.
 void setExpressionContext(int pIndex, IExpressionContext pContext)
          Replace the given context for the specified index in this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundExpressionContext

public CompoundExpressionContext()
Create an empty CompoundExpressionContext.


CompoundExpressionContext

public CompoundExpressionContext(boolean pIsCachingEnabled)

CompoundExpressionContext

public CompoundExpressionContext(IExpressionContext[] pContexts)
Create a CompoundExpressionContext with a given initial context sequence.

Parameters:
pContexts - the initial context sequence

CompoundExpressionContext

public CompoundExpressionContext(IExpressionContext[] pContexts,
                                 boolean pIsCachingEnabled)
Method Detail

addExpressionContext

public void addExpressionContext(IExpressionContext pContext)
Add the given context to the end of the context sequence of this object.

Parameters:
pContext - a context

getExpressionContext

public IExpressionContext getExpressionContext(int pIndex)
Obtains the expression context at the given index.

Parameters:
pIndex - expression's index
Returns:
expression context

getExpressionContextCount

public int getExpressionContextCount()
Returns the expression context count.

Returns:
number of expression context defined

getSnpsExpressionTags

public com.sunopsis.language.parser.SnpsExpressionTag[] getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
Description copied from interface: IExpressionContext
Obtains the expression tags relative to this context.

Specified by:
getSnpsExpressionTags in interface IExpressionContext
Parameters:
pSnpsLanguage - the language that will be used when manipulating the expression tags (i.e. when building the Expression)
Returns:
an array of expression tags

setExpressionContext

public void setExpressionContext(int pIndex,
                                 IExpressionContext pContext)
Replace the given context for the specified index in this object.

Parameters:
pIndex - the index
pContext - the context
Throws:
java.lang.IndexOutOfBoundsException - if pIndex is out of range

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.