Returns a vector containing all predecessors of the specified element (starting from the immediate one provided by element.predecessor property) that match the specified Element Types.
Element predecessors are other elements, through which the given element has been reached as it was retrieved from the data source (DSM). See also: What are element predecessors?
Note: This is a convenience function whose result may be achieved using GOMElement.predecessors property and the functions: iterate(), instanceOf(), Vector().

Parameters:

element

The element whose predecessors are requested.

If not specified, the generator context element is assumed, which is the same as the call:

getPredecessorsByType (
  contextElement,
  elementTypeSpec
)
See Also: GOMContext.contextElement

Note: When this parameter is null, the function returns an empty vector.

elementTypeSpec
Specifies the list of target Element Types (see Specifying Matching Element Types).
${include ../../../refs/element_predecessors.htm} ${include ../../../refs/matching_ets_spec.htm} ${include ../../../refs/element_types.htm}