java.lang.Object
org.xml.sax.helpers.DefaultHandler
apollo.dataadapter.das.simple.DASSequenceContentHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class DASSequenceContentHandler
- extends org.xml.sax.helpers.DefaultHandler
I am the ContentHandler used when SimpleDASServer parses
the result of a 'dna' call to a das data source (passing in
dsn and segment).
I am DAS 1.0 compliant.
During the parse, I create a list, stored on myself, of the returned
sequences. This list is retrieved by calling getSequences after the parse
is complete
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mode
private java.lang.String mode
modeStack
private java.util.Stack modeStack
sequenceArray
private java.util.List sequenceArray
DASDNA
private java.lang.String DASDNA
SEQUENCE
private java.lang.String SEQUENCE
DNA
private java.lang.String DNA
LABEL
private java.lang.String LABEL
SEQUENCE_ID
private java.lang.String SEQUENCE_ID
SEQUENCE_START
private java.lang.String SEQUENCE_START
SEQUENCE_STOP
private java.lang.String SEQUENCE_STOP
SEQUENCE_VERSION
private java.lang.String SEQUENCE_VERSION
DNA_LENGTH
private java.lang.String DNA_LENGTH
currentSequence
private apollo.dataadapter.das.DASSequence currentSequence
server
public apollo.dataadapter.das.DASServerI server
segments
public apollo.dataadapter.das.DASSegment[] segments
dsn
public apollo.dataadapter.das.DASDsn dsn
print
private static boolean print
DASSequenceContentHandler
public DASSequenceContentHandler()
DASSequenceContentHandler
public DASSequenceContentHandler(apollo.dataadapter.das.DASServerI theServer,
apollo.dataadapter.das.DASDsn theDsn,
apollo.dataadapter.das.DASSegment[] theSegments)
getServer
private apollo.dataadapter.das.DASServerI getServer()
getSegments
private apollo.dataadapter.das.DASSegment[] getSegments()
getDSN
private apollo.dataadapter.das.DASDsn getDSN()
setSegments
private void setSegments(apollo.dataadapter.das.DASSegment[] theSegments)
setDSN
private void setDSN(apollo.dataadapter.das.DASDsn theDSN)
getCurrentSequence
private apollo.dataadapter.das.DASSequence getCurrentSequence()
setCurrentSequence
private void setCurrentSequence(apollo.dataadapter.das.DASSequence theSequence)
addSequence
private void addSequence(apollo.dataadapter.das.DASSequence theSequence)
getSequences
public java.util.List getSequences()
getModeStack
private java.util.Stack getModeStack()
setMode
private void setMode(java.lang.String theMode)
getMode
private java.lang.String getMode()
closeMode
private void closeMode()
startElement
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler
- Receive notification of the start of an element.
By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the start of
each element (such as allocating a new tree node or writing
output to a file).
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName)
throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler
- Receive notification of the end of an element.
By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the end of
each element (such as finalising a tree node or writing
output to a file).
characters
public void characters(char[] text,
int start,
int length)
throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler
- Receive notification of character data inside an element.
By default, do nothing. Application writers may override this
method to take specific actions for each chunk of character data
(such as adding the data to a node or buffer, or printing it to
a file).