Package org.biojava.bio.program.ssbind
Class SeqSimilarityStAXAdapter
java.lang.Object
org.biojava.utils.stax.StAXContentHandlerBase
org.biojava.bio.program.ssbind.SeqSimilarityStAXAdapter
- All Implemented Interfaces:
StAXContentHandler
SeqSimilarityStAXAdapter is a handler for XML
conforming to the BioJava BlastLike DTD. Together with its modular
delegate handlers it converts XML into calls on a
SearchContentHandler interface. Implementations of the
at interface create various types of Java object from the XML data.- Since:
- 1.3
- Author:
- Keith James
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String nsURI, String localName, String qName, StAXContentHandler handler) getSearchContentHandlergets the handler which will receive the method calls generated by the adapter.voidsetSearchContentHandler(SearchContentHandler scHandler) setSearchContentHandlersets the handler which will recieve the method calls generated by the adapter.voidstartElement(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 Details
-
NAMESPACE
- See Also:
-
-
Constructor Details
-
SeqSimilarityStAXAdapter
public SeqSimilarityStAXAdapter()
-
-
Method Details
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException - Specified by:
startElementin interfaceStAXContentHandler- Overrides:
startElementin classStAXContentHandlerBase- Throws:
SAXException
-
endElement
public void endElement(String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException - Specified by:
endElementin interfaceStAXContentHandler- Overrides:
endElementin classStAXContentHandlerBase- Throws:
SAXException
-
getSearchContentHandler
getSearchContentHandlergets the handler which will receive the method calls generated by the adapter.- Returns:
- a
SearchContentHandler.
-
setSearchContentHandler
setSearchContentHandlersets the handler which will recieve the method calls generated by the adapter.- Parameters:
scHandler- aSearchContentHandler.
-