org.barracudamvc.plankton.data
Class ObjectRepositoryAssembler.AssemblerXMLReader

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.barracudamvc.plankton.data.ObjectRepositoryAssembler.AssemblerXMLReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Enclosing class:
ObjectRepositoryAssembler

public class ObjectRepositoryAssembler.AssemblerXMLReader
extends DefaultHandler


Constructor Summary
ObjectRepositoryAssembler.AssemblerXMLReader()
           
ObjectRepositoryAssembler.AssemblerXMLReader(String parserClass, ObjectRepository ior)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String local, String raw)
           
 void error(SAXParseException ex)
           
 void fatalError(SAXParseException ex)
           
 void ignorableWhitespace(char[] ch, int start, int length)
           
 void processXmlFile(InputStream is)
           
protected  Object resolve(Object id)
           
 void setObjectRepository(ObjectRepository ior)
          Sets the ObjectRepository that should be used
 void setParserClass(String iparserClass)
          Sets the SAX Parser
 void setup()
          Initialization stuff...
 void startDocument()
           
 void startElement(String uri, String local, String raw, Attributes attrs)
           
 void warning(SAXParseException ex)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectRepositoryAssembler.AssemblerXMLReader

public ObjectRepositoryAssembler.AssemblerXMLReader()

ObjectRepositoryAssembler.AssemblerXMLReader

public ObjectRepositoryAssembler.AssemblerXMLReader(String parserClass,
                                                    ObjectRepository ior)
Method Detail

setParserClass

public void setParserClass(String iparserClass)
Sets the SAX Parser

Parameters:
iparserClass - the SAX parser class (if null, defaults to DEFAULT_PARSER)

setObjectRepository

public void setObjectRepository(ObjectRepository ior)
Sets the ObjectRepository that should be used

Parameters:
ior - the object repository

setup

public void setup()
Initialization stuff... (Need a better description here!)


processXmlFile

public void processXmlFile(InputStream is)

startDocument

public void startDocument()

startElement

public void startElement(String uri,
                         String local,
                         String raw,
                         Attributes attrs)
                  throws SAXException
Throws:
SAXException

endElement

public void endElement(String uri,
                       String local,
                       String raw)
                throws SAXException
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)

warning

public void warning(SAXParseException ex)

error

public void error(SAXParseException ex)

fatalError

public void fatalError(SAXParseException ex)
                throws SAXException
Throws:
SAXException

resolve

protected Object resolve(Object id)


Copyright © 2004 BarracudaMVC.org All Rights Reserved.