Package uk.ac.starlink.ttools.votlint
Class ElementRef
java.lang.Object
uk.ac.starlink.ttools.votlint.ElementRef
Provides a description of an element. This can be used at any time,
unlike an
ElementHandler
, which is mostly unusable when it's
not on the processing stack (i.e. after its SAX endElement has been
processed).- Since:
- 7 Apr 2005
- Author:
- Mark Taylor (Starlink)
-
Constructor Details
-
ElementRef
Constructor. This is called by ElementHandler itself - in general if you want an ElementRef you should useElementHandler.getRef()
rather than constructing a new one.- Parameters:
handler
- handlerlocator
- locator describing the current parse position
-
-
Method Details
-
getName
Returns the element name.- Returns:
- name
-
getHandler
Returns the element handler to which this ref refers. Note however that many of its methods may be useless if it's not in scope. In general this is only useful for recovering subclass-specific information stashed in the handler.- Returns:
- handler
-
equals
-
hashCode
public int hashCode() -
toString
-