org.openspml.v2.util.xml
Class ReflectiveDOMXMLUnmarshaller

java.lang.Object
  extended byorg.openspml.v2.util.xml.ReflectiveDOMXMLUnmarshaller
All Implemented Interfaces:
XMLUnmarshaller

public class ReflectiveDOMXMLUnmarshaller
extends java.lang.Object
implements XMLUnmarshaller

This class, given XML, will turn it into Java classes representing the SPML standard.

This implementation uses DOM to do the parsing.

Author:
kent.spaulding@sun.com

Date: Mar 2, 2006


Constructor Summary
ReflectiveDOMXMLUnmarshaller()
           
 
Method Summary
protected  Marshallable createAndPopulateMarshallable(java.lang.String typeName, org.w3c.dom.Element el)
           
 Marshallable unmarshall(java.lang.String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveDOMXMLUnmarshaller

public ReflectiveDOMXMLUnmarshaller()
Method Detail

createAndPopulateMarshallable

protected Marshallable createAndPopulateMarshallable(java.lang.String typeName,
                                                     org.w3c.dom.Element el)
                                              throws Spml2Exception
Throws:
Spml2Exception

unmarshall

public Marshallable unmarshall(java.lang.String xml)
                        throws UnknownSpml2TypeException
Specified by:
unmarshall in interface XMLUnmarshaller
Parameters:
xml -
Returns:
an instance of Marshallable representing the xml
Throws:
UnknownSpml2TypeException


Copyright © Sun Microsystems, Inc. All Rights Reserved.