Class XFFFeatureSetHandler

  • All Implemented Interfaces:
    StAXContentHandler

    public class XFFFeatureSetHandler
    extends StAXContentHandlerBase
    StAX handler which converts and stream of parse events for an XFF featureSet element into BioJava SeqIO events. NOTE This class is not thread-safe -- it must only be used for one parse at any time.
    Since:
    1.2
    Author:
    Thomas Down
    • Field Detail

    • Constructor Detail

      • XFFFeatureSetHandler

        public XFFFeatureSetHandler()
        Construct a new XFFFeatureSetHandler with the default set of handlers.
    • Method Detail

      • setFeatureListener

        public void setFeatureListener​(SeqIOListener siol)
        Set the object which receives startFeature/endFeature notifications.
      • getFeatureListener

        public SeqIOListener getFeatureListener()
        Return the object which receives startFeature/endFeature notifications.
      • setMergeAnnotation

        public void setMergeAnnotation​(Annotation ann)
      • getMergeAnnotation

        public Annotation getMergeAnnotation()
      • addFeatureHandler

        public void addFeatureHandler​(ElementRecognizer rec,
                                      XFFPartHandlerFactory handler)
        Extend this FeatureSetHandler to delegate certain feature elements to the specified handler type.
        Parameters:
        rec - A selector for some sub-set of feature elements.
        handler - A factory which returns StAX handlers for matching elements.
      • addDetailHandler

        public void addDetailHandler​(ElementRecognizer rec,
                                     XFFPartHandlerFactory handler)
        Extend this FeatureSetHandler to delegate certain detail elements to the specified handler type.
        Parameters:
        rec - A selector for some sub-set of detail elements.
        handler - A factory which returns StAX handlers for matching elements.
      • getDetailsHandler

        public StAXContentHandlerBase getDetailsHandler()
        Return a handler for the XFF details element. This handler will, in turn, delegate to the specific detail handlers provided with addDetailHandler