|
|||||||||
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.ConnectionDescriptorXmlHandler
public class ConnectionDescriptorXmlHandler
The handler catches Parsing events raised by the xml-parser
and builds up the ConnectionRepository
that is used
within the OJB.
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 | |
---|---|
ConnectionDescriptorXmlHandler(ConnectionRepository cr)
build a handler that fills the given repository from an XML file. |
Method Summary | |
---|---|
void |
endDocument()
Here we overgive the found descriptors to ConnectionRepository . |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
endElement callback. |
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 |
---|
characters, 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 ConnectionDescriptorXmlHandler(ConnectionRepository cr)
Method Detail |
---|
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void endDocument()
ConnectionRepository
.
endDocument
in interface org.xml.sax.ContentHandler
endDocument
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.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
MetadataException
- indicating mapping errorspublic void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
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.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |