Returns the immutable {@link TypeInfo} object for the current
element.
The method may only be called by the startElement event
or the endElement event
of the {@link org.xml.sax.ContentHandler} that the application sets to
the {@link ValidatorHandler}.
When W3C XML Schema validation is being performed, in the
case where an element has a union type, the {@link TypeInfo}
returned by a call to getElementTypeInfo()
from the
startElement
event will be the union type. The TypeInfo
returned by a call
from the endElement event will be the actual member type used
to validate the element.