This function receives the specified enumeration of the source elements (i.e. GOMElement
objects) and returns another enumeration
containing only those elements that comply with the target Element Type(s) and/or satisfy the filtering conditions
specified in the form of a boolean subexpression evaluated against every element. The initial element ordering is preserved.
Parameters:
elementEnum
elementTypeSpec
When this parameter is specified, every element to be included in the result enumeration should comply with at least one of the target Element Types.
filterQuery
When specified, this should be a boolean subquery
created with BooleanQuery()
function.
The subquery will be processed against each initially selected element
and should return true
if the element must be included in the
result enumeration and false
otherwise.
The tested element is passed as the generator context element.
className = getAttrStringValue("name");
e.filterElements ("Method",
BooleanQuery (
getAttrStringValue("class") == className
)
);
'e'
, which are
'Method'
Element Type;'class'
attribute has a value equal to the value
of the 'name'
attribute of the generator's current
context element.
BooleanQuery(), filterElementsByKey()