|
||||||||||
| 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(String uri,
String name,
String qName)
endElement callback. |
void |
error(SAXParseException e)
Error callback. |
void |
fatalError(SAXParseException e)
fatal error callback. |
void |
startDocument()
startDocument callback, nothing to do here. |
void |
startElement(String uri,
String name,
String qName,
Attributes atts)
startElement callback. |
void |
warning(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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryXmlHandler(DescriptorRepository dr)
| Method Detail |
|---|
public void startDocument()
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerpublic void endDocument()
endDocument in interface ContentHandlerendDocument in class DefaultHandler
public void startElement(String uri,
String name,
String qName,
Attributes atts)
startElement in interface ContentHandlerstartElement in class DefaultHandlerMetadataException - indicating mapping errors
public void endElement(String uri,
String name,
String qName)
endElement in interface ContentHandlerendElement in class DefaultHandler
public void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandler
public void error(SAXParseException e)
throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXException
public void fatalError(SAXParseException e)
throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXException
public void warning(SAXParseException e)
throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||