owltools.gaf.bioentities
Class QuestForOrthologsSeqXMLParser

java.lang.Object
  extended by owltools.gaf.bioentities.QuestForOrthologsSeqXMLParser

public class QuestForOrthologsSeqXMLParser
extends Object

This is an event based parser for the seq XML produced by the Quest for Orthologs project.

Add listeners to retrieve the information. There are two types of listeners. The QuestForOrthologsSeqXMLParser.ProteinListener gives a primary id and some labels. The QuestForOrthologsSeqXMLParser.MoreInfoProteinListener will provide additionally all available alternative identifiers and sequence via the QuestForOrthologsSeqXMLParser.MoreInfoProteinListener.MoreInfo object.

See Also:
QuestForOrthologsSeqXMLParser.ProteinListener, QuestForOrthologsSeqXMLParser.MoreInfoProteinListener

Nested Class Summary
static interface QuestForOrthologsSeqXMLParser.MoreInfoProteinListener
          Listener of QuestForOrthologsSeqXMLParser.
static interface QuestForOrthologsSeqXMLParser.ProteinListener
          Listener for QuestForOrthologsSeqXMLParser.
 
Constructor Summary
QuestForOrthologsSeqXMLParser()
           
 
Method Summary
 void addListener(QuestForOrthologsSeqXMLParser.MoreInfoProteinListener listener)
          Add a QuestForOrthologsSeqXMLParser.MoreInfoProteinListener.
 void addListener(QuestForOrthologsSeqXMLParser.ProteinListener listener)
          Add a QuestForOrthologsSeqXMLParser.ProteinListener.
 void parse(InputStream inputStream)
          Parse the content of the stream with an event-based XML parser.
Content is only provided to registered listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestForOrthologsSeqXMLParser

public QuestForOrthologsSeqXMLParser()
Method Detail

addListener

public void addListener(QuestForOrthologsSeqXMLParser.ProteinListener listener)
Add a QuestForOrthologsSeqXMLParser.ProteinListener.

Parameters:
listener -

addListener

public void addListener(QuestForOrthologsSeqXMLParser.MoreInfoProteinListener listener)
Add a QuestForOrthologsSeqXMLParser.MoreInfoProteinListener.

Parameters:
listener -

parse

public void parse(InputStream inputStream)
           throws XMLStreamException
Parse the content of the stream with an event-based XML parser.
Content is only provided to registered listeners.

Parameters:
inputStream -
Throws:
XMLStreamException


Copyright © 2010-2014. All Rights Reserved.