|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--com.objectwave.persist.xml.XMLDecoder
Read the XML file to find the all the mapping information
| Nested Class Summary | |
static class |
XMLDecoder.Test
Unit Test |
| Constructor Summary | |
XMLDecoder(java.lang.String uri,
java.lang.Class classInstance)
Constructor |
|
| Method Summary | |
void |
endElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw)
This method will parse the collection in an XML document. |
protected java.lang.Class |
forName(java.lang.String className)
|
boolean |
getBrokerGeneratedPrimaryKeys()
|
java.util.ArrayList |
getMaps()
Gets the Maps attribute of the XMLDecoder object |
java.lang.String |
getTableName()
Gets the TableName attribute of the XMLDecoder object |
protected void |
setParserFeature(org.xml.sax.XMLReader rdr,
java.lang.String prop,
boolean value)
Try to set the parser property, but don't bomb out if we fail |
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw,
org.xml.sax.Attributes attrs)
This method will parse a single element in an XML document. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLDecoder(java.lang.String uri,
java.lang.Class classInstance)
throws ConfigurationException
uri - The XML file nameclassInstance - The class for matching Field
ConfigurationException| Method Detail |
protected void setParserFeature(org.xml.sax.XMLReader rdr,
java.lang.String prop,
boolean value)
rdr - The new ParserFeature valueprop - The new ParserFeature valuevalue - The new ParserFeature valuepublic java.lang.String getTableName()
public boolean getBrokerGeneratedPrimaryKeys()
public java.util.ArrayList getMaps()
public void startElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw,
org.xml.sax.Attributes attrs)
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - String The Namespace URIlocal - String The local name (without prefix)raw - String The raw XML 1.0 name (with prefix)attrs - Attributes The attributes attached to the element.
public void endElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - String The Namespace URIlocal - String The local name (without prefix)raw - String The raw XML 1.0 name (with prefix)
protected java.lang.Class forName(java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||