Package org.biojava.bio.program.ssbind
Class SeqSimilarityStAXHandler
- java.lang.Object
-
- org.biojava.utils.stax.StAXContentHandlerBase
-
- org.biojava.bio.program.ssbind.SeqSimilarityStAXHandler
-
- All Implemented Interfaces:
StAXContentHandler
- Direct Known Subclasses:
AlignmentStAXHandler
,HeaderStAXHandler
,HitStAXHandler
,HSPStAXHandler
,HSPSummaryStAXHandler
public class SeqSimilarityStAXHandler extends StAXContentHandlerBase
SeqSimilarityStAXHandler
is a base class for creating modular StAX handlers which send callbacks to aSeqSimilarityStAXAdapter
.- Since:
- 1.3
- Author:
- Keith James
-
-
Field Summary
Fields Modifier and Type Field Description protected SeqSimilarityStAXAdapter
ssContext
-
Constructor Summary
Constructors Constructor Description SeqSimilarityStAXHandler(SeqSimilarityStAXAdapter ssContext)
Creates a newSeqSimilarityStAXHandler
which simply maintains a list ofStAXHandlerBinding
s and delegates to any suitableStAXContentHandler
bound by one of them.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addHandler(ElementRecognizer recognizer, StAXHandlerFactory factory)
void
endElement(String nsURI, String localName, String qName, StAXContentHandler handler)
protected void
handleEndElement(String nsURI, String localName, String qName)
protected void
handleStartElement(String nsURI, String localName, String qName, Attributes attrs)
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
-
-
-
-
Field Detail
-
ssContext
protected SeqSimilarityStAXAdapter ssContext
-
-
Constructor Detail
-
SeqSimilarityStAXHandler
public SeqSimilarityStAXHandler(SeqSimilarityStAXAdapter ssContext)
Creates a newSeqSimilarityStAXHandler
which simply maintains a list ofStAXHandlerBinding
s and delegates to any suitableStAXContentHandler
bound by one of them.
-
-
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
-
addHandler
protected void addHandler(ElementRecognizer recognizer, StAXHandlerFactory factory)
-
handleStartElement
protected void handleStartElement(String nsURI, String localName, String qName, Attributes attrs) throws SAXException
- Throws:
SAXException
-
handleEndElement
protected void handleEndElement(String nsURI, String localName, String qName) throws SAXException
- Throws:
SAXException
-
-