Finds the exact Element Type associated with the given element.
When the element complies with several Element Types having inheritance relationship (if supported by the underlying DSM Type), this function finds the best matching Element Type (i.e. the lowest heir).
Parameters:
element
contextElement.resolveElementType(..)
)
elementTypeNames
This may speed up the search of the appropriate Element Type. For instance, if the provided name is of a top-level Element Type known to match this element, the search will start from this type and descend to its best matching heir.
Note: When the list contains names of non-existent Element Types, the generator will raise an error.
checkElementType(), instanceOf(), toElement(), findElementType(), GOMElement.elementType