apollo.dataadapter.das.simple
Class DASEntryPointContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by apollo.dataadapter.das.simple.DASEntryPointContentHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class DASEntryPointContentHandler
extends org.xml.sax.helpers.DefaultHandler

I am the ContentHandler used when SimpleDASServer parses the result of a 'entry_points' call to a das data source and dsn.

I am DAS 1.0 compliant.

During the parse, I create a list, stored on myself, of the returned entry points. This list is retrieved by calling getSegments after the parse is complete

Author:
Vivek Iyer
See Also:
SimpleDASServer.getEntryPoints(apollo.dataadapter.das.DASDsn)

Constructor Summary
DASEntryPointContentHandler()
           
 
Method Summary
 void characters(char[] text, int start, int length)
           
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qualifiedName)
           
 java.util.List getSegments()
          I return a list of DASSegments.
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
           
 
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
 

Constructor Detail

DASEntryPointContentHandler

public DASEntryPointContentHandler()
Method Detail

getSegments

public java.util.List getSegments()
I return a list of DASSegments. Each segment corresponds to a single entry point in the set of entry points returned by the das data source. I should be interrogated after the parse is complete.


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
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qualifiedName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] text,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException