|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.castor.xml.MarshalFramework | +--org.exolab.castor.xml.UnmarshalHandler
An unmarshaller to allowing unmarshalling of XML documents to Java Objects. The Class must specify the proper access methods (setters/getters) in order for instances of the Class to be properly unmarshalled.
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String name)
|
org.xml.sax.Locator |
getDocumentLocator()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setClassLoader(java.lang.ClassLoader loader)
Sets the ClassLoader to use when loading classes |
void |
setDebug(boolean debug)
Turns debuging on or off. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setIDResolver(IDResolver idResolver)
Sets the IDResolver to use when resolving IDREFs for which no associated element may exist in XML document. |
void |
setLogWriter(java.io.PrintWriter printWriter)
Sets the PrintWriter used for printing log messages |
void |
setResolver(ClassDescriptorResolver cdResolver)
Sets the ClassDescriptorResolver to use for loading and resolving ClassDescriptors |
void |
setValidation(boolean validate)
Sets the flag for validation |
void |
startDocument()
|
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
|
static java.lang.Object |
toPrimitiveObject(java.lang.Class type,
java.lang.String value)
Converts a String to the given primitive object type |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public void setClassLoader(java.lang.ClassLoader loader)
loader
- the ClassLoader to usepublic void setResolver(ClassDescriptorResolver cdResolver)
cdResolver
- the ClassDescriptorResolver to usepublic void setDebug(boolean debug)
debug
- the flag indicating whether to generate debug information.
A value of true, will turn debuggin on.#setLogWriter.
public void setIDResolver(IDResolver idResolver)
idResolver
- the IDResolver to use when resolving
IDREFs for which no associated element may exist in the
XML document.public void setLogWriter(java.io.PrintWriter printWriter)
printWriter
- the PrintWriter to use when printing
log messagespublic void setValidation(boolean validate)
validate,
- a boolean to indicate whether or not
validation should be done during umarshalling. public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
public void endElement(java.lang.String name) throws org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
public org.xml.sax.Locator getDocumentLocator()
public void startDocument() throws org.xml.sax.SAXException
public void startElement(java.lang.String name, org.xml.sax.AttributeList atts) throws org.xml.sax.SAXException
public static java.lang.Object toPrimitiveObject(java.lang.Class type, java.lang.String value)
type
- the class type of the primitive in which
to convert the String tovalue
- the String to convert to a primitive
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |