Tests if the specified element has a predecessor that complies with one of 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?
This function returns the same result as the following expression:
checkPredecessorByType(elementTypeSpec) != null
Parameters:

element

The element whose predecessor is requested.

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

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

Note: When this parameter is null, the function just returns false.

elementTypeSpec
The list of target Element Types (see Specifying Matching Element Types").

The returned element will comply with one of the target Element Types.

Note: When the list contains names of non-existent Element Types, the generator will raise an error.

See Also:
GOMElement.predecessors, checkPredecessorByType()
${include ../../../refs/element_predecessors.htm} ${include ../../../refs/matching_ets_spec.htm} ${include ../../../refs/element_types.htm}