org.jacorb.notification.filter
Interface ETCLEvaluator

All Known Implementing Classes:
DefaultETCLEvaluator

public interface ETCLEvaluator

Version:
$Id: ETCLEvaluator.java,v 1.1 2005/02/14 00:04:35 alphonse.bendt Exp $
Author:
Alphonse Bendt

Method Summary
 Any evaluateArrayIndex(Any any, int index)
          extract the n-th position out of an Array wrapped inside an Any.
 Any evaluateDiscriminator(Any any)
           
 EvaluationResult evaluateElementInSequence(EvaluationContext context, EvaluationResult element, Any sequence)
           
 Any evaluateExistIdentifier(Any value, java.lang.String identifier)
           
 Any evaluateIdentifier(Any any, int position)
           
 Any evaluateIdentifier(Any any, java.lang.String identifier)
          expensive
 Any evaluateListLength(Any value)
          identify the number of elements of a component. if the parameter is a sequence or an array, this method will return the number of elements in the list.
 Any evaluateNamedValueList(Any any, java.lang.String name)
          extract a named value out of a sequence of name/value pairs.
 Any evaluatePropertyList(Property[] list, java.lang.String name)
           
 Any evaluateRepositoryId(Any value)
          identify the RepositoryId of a component.
 Any evaluateTypeName(Any value)
          identify the unscoped IDL type name of a component.
 Any evaluateUnion(Any value)
          extract the default member from Union wrapped inside the provided Any.
 Any evaluateUnion(Any value, int position)
           
 boolean hasDefaultDiscriminator(Any any)
           
 

Method Detail

hasDefaultDiscriminator

public boolean hasDefaultDiscriminator(Any any)
                                throws EvaluationException
Throws:
EvaluationException

evaluateExistIdentifier

public Any evaluateExistIdentifier(Any value,
                                   java.lang.String identifier)
                            throws EvaluationException
Throws:
EvaluationException

evaluateTypeName

public Any evaluateTypeName(Any value)
                     throws EvaluationException
identify the unscoped IDL type name of a component. (e.g. mystruct._typeid == 'mystruct')

Parameters:
value - the component
Returns:
the IDL type name (string) wrapped in an any
Throws:
EvaluationException

evaluateRepositoryId

public Any evaluateRepositoryId(Any value)
                         throws EvaluationException
identify the RepositoryId of a component. (e.g. mystruct._repos_id == 'IDL:module/mystruct:1.0'

Parameters:
value - the component
Returns:
the IDL type name (string) wrapped in an any
Throws:
EvaluationException

evaluateListLength

public Any evaluateListLength(Any value)
                       throws EvaluationException
identify the number of elements of a component. if the parameter is a sequence or an array, this method will return the number of elements in the list.

Parameters:
value - the component
Returns:
the number of elements in the list
Throws:
EvaluationException

evaluateUnion

public Any evaluateUnion(Any value)
                  throws EvaluationException
extract the default member from Union wrapped inside the provided Any.

Throws:
EvaluationException

evaluateUnion

public Any evaluateUnion(Any value,
                         int position)
                  throws EvaluationException
Throws:
EvaluationException

evaluatePropertyList

public Any evaluatePropertyList(Property[] list,
                                java.lang.String name)

evaluateNamedValueList

public Any evaluateNamedValueList(Any any,
                                  java.lang.String name)
                           throws EvaluationException
extract a named value out of a sequence of name/value pairs.

Throws:
EvaluationException

evaluateArrayIndex

public Any evaluateArrayIndex(Any any,
                              int index)
                       throws EvaluationException
extract the n-th position out of an Array wrapped inside an Any.

Throws:
EvaluationException

evaluateIdentifier

public Any evaluateIdentifier(Any any,
                              int position)
                       throws EvaluationException
Throws:
EvaluationException

evaluateDiscriminator

public Any evaluateDiscriminator(Any any)
                          throws EvaluationException
Throws:
EvaluationException

evaluateElementInSequence

public EvaluationResult evaluateElementInSequence(EvaluationContext context,
                                                  EvaluationResult element,
                                                  Any sequence)
                                           throws EvaluationException
Throws:
EvaluationException

evaluateIdentifier

public Any evaluateIdentifier(Any any,
                              java.lang.String identifier)
                       throws EvaluationException
expensive

Throws:
EvaluationException