| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Unmarshaller
takes an XML instance document, which should
conform to some set of XML constraints, and creates a Java object from the XML
document. This object is an instance of the implementation class, which
in turn implements the interface, created using an implementation of
Generator
.
It also assumes that the generated interface and implementation classes
are in the classpath, as it will perform a Class.forName
on
the classes.
Constructor Summary | |
Unmarshaller() Simple constructor. |
Method Summary | |
String | getImplClass(String interfaceName) For the supplied interface name, this will return the current implementation class associated with the interface. |
void | setImplClass(String interfaceName, String implClassName) For the supplied interface name, this will allow a customized implementation class to be set. |
Object | unmarshall(Source sourceXML) This method is the public entry point for unmarshalling an object from an XML instance document. |
Constructor Detail |
public Unmarshaller()
Simple constructor.
Method Detail |
public String getImplClass(String interfaceName)
For the supplied interface name, this will return the current implementation class associated with the interface. If no class has been specified, this will return the default, Zeus-generated class name for the interface.
String
name of interface being dealt with.String
- implementation class for supplied
interfaceName
.public void setImplClass(String interfaceName, String implClassName)
For the supplied interface name, this will allow a customized implementation class to be set. This effectively allows the user to specify their own implementation class to use instead of the default, Zeus-generated class.
String
name of interface being deal with.String
name of class to load when implementations
of interfaceName
are needed.public Object unmarshall(Source sourceXML)
throws java.io.IOException
This method is the public entry point for unmarshalling an object from an XML instance document.
XXX: We need to eventually put in Zeus exceptions here, not IOExceptions.
URL
for the instance document.Object
- the created Java object, or
null
if problems occur in a way that does not
generate an Exception
.IOException
- when errors in binding occur.Association Links |
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |