|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.ojb.broker.metadata.RepositoryXmlHandler
public class RepositoryXmlHandler
The handler catches Parsing events raised by the xml-parser and builds up the DescriptorRepository that is used within the OJB PersistenceBroker System.
TODO: Reading of metadata are split in two classes RepositoryXmlHandler and
ConnectionDescriptorXmlHandler. Thus we should only read relevant tags in this
classes. In further versions we should split repository.dtd in two parts, one for connetion
metadata, one for pc object metadata.
| Field Summary |
|---|
| Fields inherited from interface org.apache.ojb.broker.locking.IsolationLevels |
|---|
IL_DEFAULT, IL_NONE, IL_OPTIMISTIC, IL_READ_COMMITTED, IL_READ_UNCOMMITTED, IL_REPEATABLE_READ, IL_SERIALIZABLE, LITERAL_IL_NONE, LITERAL_IL_OPTIMISTIC, LITERAL_IL_READ_COMMITTED, LITERAL_IL_READ_UNCOMMITTED, LITERAL_IL_REPEATABLE_READ, LITERAL_IL_SERIALIZABLE |
| Constructor Summary | |
|---|---|
RepositoryXmlHandler(DescriptorRepository dr)
build a handler that fills the given repository from an XML file. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
characters callback. |
void |
endDocument()
endDocument callback, nothing to do here. |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
endElement callback. most elements are build up from here. |
void |
error(org.xml.sax.SAXParseException e)
Error callback. |
void |
fatalError(org.xml.sax.SAXParseException e)
fatal error callback. |
void |
startDocument()
startDocument callback, nothing to do here. |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
startElement callback. |
void |
warning(org.xml.sax.SAXParseException e)
warning callback. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryXmlHandler(DescriptorRepository dr)
| Method Detail |
|---|
public void startDocument()
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerpublic void endDocument()
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerMetadataException - indicating mapping errors
public void endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandler
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||