org.barracudamvc.plankton.data
Class ObjectRepositoryAssembler.AssemblerXMLReader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.barracudamvc.plankton.data.ObjectRepositoryAssembler.AssemblerXMLReader
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Enclosing class:
- ObjectRepositoryAssembler
public class ObjectRepositoryAssembler.AssemblerXMLReader
- extends DefaultHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectRepositoryAssembler.AssemblerXMLReader
public ObjectRepositoryAssembler.AssemblerXMLReader()
ObjectRepositoryAssembler.AssemblerXMLReader
public ObjectRepositoryAssembler.AssemblerXMLReader(String parserClass,
ObjectRepository ior)
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()
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class DefaultHandler
startElement
public void startElement(String uri,
String local,
String raw,
Attributes attrs)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String local,
String raw)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class DefaultHandler
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class DefaultHandler
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
- Specified by:
ignorableWhitespace
in interface ContentHandler
- Overrides:
ignorableWhitespace
in class DefaultHandler
warning
public void warning(SAXParseException ex)
- Specified by:
warning
in interface ErrorHandler
- Overrides:
warning
in class DefaultHandler
error
public void error(SAXParseException ex)
- Specified by:
error
in interface ErrorHandler
- Overrides:
error
in class DefaultHandler
fatalError
public void fatalError(SAXParseException ex)
throws SAXException
- Specified by:
fatalError
in interface ErrorHandler
- Overrides:
fatalError
in class DefaultHandler
- Throws:
SAXException
resolve
protected Object resolve(Object id)
Copyright © 2006 BarracudaMVC.org All Rights Reserved.