org.biojava.bio.program.xff
Class LocationHandlerBase
java.lang.Object
org.biojava.utils.stax.StAXContentHandlerBase
org.biojava.bio.program.xff.LocationHandlerBase
- All Implemented Interfaces:
- StAXContentHandler
- public abstract class LocationHandlerBase
- extends StAXContentHandlerBase
Handler to the XFF location type. To use this, write a simple
subclass which takes the location and stores it somewhere sensible.
- Since:
- 1.2
- Author:
- Thomas Down
Method Summary |
void |
endElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
StAXContentHandler handler)
|
protected abstract void |
setLocationValue(Location l)
Override this method to do something useful with the
location we collect. |
void |
startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs,
DelegationManager dm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationHandlerBase
public LocationHandlerBase()
startElement
public void startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs,
DelegationManager dm)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface StAXContentHandler
- Overrides:
startElement
in class StAXContentHandlerBase
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
StAXContentHandler handler)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface StAXContentHandler
- Overrides:
endElement
in class StAXContentHandlerBase
- Throws:
org.xml.sax.SAXException
setLocationValue
protected abstract void setLocationValue(Location l)
throws org.xml.sax.SAXException
- Override this method to do something useful with the
location we collect. Maybe we should do this by delegation
rather than extension.
- Throws:
org.xml.sax.SAXException