Provide the Basic operations needed to evaluate filter expressions
on Anys.
configure
public void configure(Configuration conf)
evaluateArrayIndex
public Any evaluateArrayIndex(Any any,
int index)
throws EvaluationException
extract the n-th position out of an Array wrapped inside an Any.
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.
value
- the component
- the number of elements in the list
evaluateNamedValueList
public Any evaluateNamedValueList(Any any,
String name)
throws EvaluationException
extract a named value out of a sequence of name/value pairs.
evaluatePropertyList
public Any evaluatePropertyList(Property list,
String name)
evaluateRepositoryId
public Any evaluateRepositoryId(Any value)
throws EvaluationException
identify the RepositoryId of a component.
(e.g. mystruct._repos_id == 'IDL:module/mystruct:1.0'
value
- the component
- the IDL type name (string) wrapped in an any
evaluateTypeName
public Any evaluateTypeName(Any value)
throws EvaluationException
identify the unscoped IDL type name of a component.
(e.g. mystruct._typeid == 'mystruct')
value
- the component
- the IDL type name (string) wrapped in an any
evaluateUnion
public Any evaluateUnion(Any value)
throws EvaluationException
extract the default member from Union wrapped inside the
provided Any.