edu.ucsb.nceas.metacat
Class DocInfoHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by edu.ucsb.nceas.metacat.DocInfoHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

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

A Class implementing callback methods for the SAX parser to call when processing the XML messages from the replication handler


Constructor Summary
DocInfoHandler()
           
DocInfoHandler(java.lang.String docId)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          put the content and the name of the tag into the hashtable.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 java.util.Vector<XMLAccessDAO> getAccessControlList()
           
 java.util.Hashtable<java.lang.String,java.lang.String> getDocInfo()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          capture the name of the tag.
 
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

DocInfoHandler

public DocInfoHandler()

DocInfoHandler

public DocInfoHandler(java.lang.String docId)
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
capture the name of the tag.

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 uri,
                       java.lang.String localName,
                       java.lang.String qName)
                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[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
put the content and the name of the tag into the hashtable. the name of the tag is the key.

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

getDocInfo

public java.util.Hashtable<java.lang.String,java.lang.String> getDocInfo()

getAccessControlList

public java.util.Vector<XMLAccessDAO> getAccessControlList()


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.