public abstract boolean hasName ()

returns true if the current event has a name (is a START_ELEMENT or END_ELEMENT) returns false otherwise