Package 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
-
-
Constructor Summary
Constructors Constructor Description LocationHandlerBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
endElement(String nsURI, String localName, String qName, StAXContentHandler handler)
protected abstract void
setLocationValue(Location l)
Override this method to do something useful with the location we collect.void
startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm)
-
Methods inherited from class org.biojava.utils.stax.StAXContentHandlerBase
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
-
-
-
-
Constructor Detail
-
LocationHandlerBase
public LocationHandlerBase()
-
-
Method Detail
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
- Specified by:
startElement
in interfaceStAXContentHandler
- Overrides:
startElement
in classStAXContentHandlerBase
- Throws:
SAXException
-
endElement
public void endElement(String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException
- Specified by:
endElement
in interfaceStAXContentHandler
- Overrides:
endElement
in classStAXContentHandlerBase
- Throws:
SAXException
-
setLocationValue
protected abstract void setLocationValue(Location l) throws SAXException
Override this method to do something useful with the location we collect. Maybe we should do this by delegation rather than extension.- Throws:
SAXException
-
-