public class XFFFeatureSetHandler extends StAXContentHandlerBase
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_XFF_ID |
Constructor and Description |
---|
XFFFeatureSetHandler()
Construct a new XFFFeatureSetHandler with the default set of handlers.
|
Modifier and Type | Method and Description |
---|---|
void |
addDetailHandler(ElementRecognizer rec,
XFFPartHandlerFactory handler)
Extend this FeatureSetHandler to delegate certain detail elements
to the specified handler type.
|
void |
addFeatureHandler(ElementRecognizer rec,
XFFPartHandlerFactory handler)
Extend this FeatureSetHandler to delegate certain feature elements
to the specified handler type.
|
void |
endElement(String nsURI,
String localName,
String qName,
StAXContentHandler handler) |
StAXContentHandlerBase |
getDetailsHandler()
Return a handler for the XFF
details element. |
SeqIOListener |
getFeatureListener()
Return the object which receives startFeature/endFeature notifications.
|
Annotation |
getMergeAnnotation() |
void |
setFeatureListener(SeqIOListener siol)
Set the object which receives startFeature/endFeature notifications.
|
void |
setMergeAnnotation(Annotation ann) |
void |
startElement(String nsURI,
String localName,
String qName,
Attributes attrs,
DelegationManager dm) |
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
public static final String PROPERTY_XFF_ID
public XFFFeatureSetHandler()
public void setFeatureListener(SeqIOListener siol)
public SeqIOListener getFeatureListener()
public void setMergeAnnotation(Annotation ann)
public Annotation getMergeAnnotation()
public void addFeatureHandler(ElementRecognizer rec, XFFPartHandlerFactory handler)
rec
- A selector for some sub-set of feature elements.handler
- A factory which returns StAX handlers for matching elements.public void addDetailHandler(ElementRecognizer rec, XFFPartHandlerFactory handler)
rec
- A selector for some sub-set of detail elements.handler
- A factory which returns StAX handlers for matching elements.public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
startElement
in interface StAXContentHandler
startElement
in class StAXContentHandlerBase
SAXException
public void endElement(String nsURI, String localName, String qName, StAXContentHandler handler)
endElement
in interface StAXContentHandler
endElement
in class StAXContentHandlerBase
public StAXContentHandlerBase getDetailsHandler()
details
element.
This handler will, in turn, delegate to the specific detail
handlers provided with addDetailHandler
Copyright © 2014 BioJava. All rights reserved.