gov.nih.nci.system.client.util.xml
Class caCOREUnmarshaller

java.lang.Object
  extended by gov.nih.nci.system.client.util.xml.caCOREUnmarshaller
All Implemented Interfaces:
Unmarshaller

public class caCOREUnmarshaller
extends java.lang.Object
implements Unmarshaller


Constructor Summary
caCOREUnmarshaller(java.lang.String mappingFileName, boolean validation)
          Creates and XMLUtility instance
 
Method Summary
 java.lang.Object fromXML(java.io.File xmlFile)
          Deserializes xml to a java bean
 java.lang.Object fromXML(java.io.Reader input)
          Deserializes xml to a java bean.
 java.lang.Object getBaseUnmarshaller()
          Returns the base unmarshaller
 Mapping getMapping()
           
 Unmarshaller getUnmarshaller()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

caCOREUnmarshaller

public caCOREUnmarshaller(java.lang.String mappingFileName,
                          boolean validation)
Creates and XMLUtility instance

Method Detail

getMapping

public Mapping getMapping()
                   throws XMLUtilityException
Returns:
default mapping file being used for xml serialziation/deserialization
Throws:
XMLUtilityException

fromXML

public java.lang.Object fromXML(java.io.Reader input)
                         throws XMLUtilityException
Description copied from interface: Unmarshaller
Deserializes xml to a java bean.

Specified by:
fromXML in interface Unmarshaller
Parameters:
input - the object to be deserialized.
Throws:
XMLUtilityException

fromXML

public java.lang.Object fromXML(java.io.File xmlFile)
                         throws XMLUtilityException
Description copied from interface: Unmarshaller
Deserializes xml to a java bean

Specified by:
fromXML in interface Unmarshaller
Parameters:
xmlFile - the object to be deserialzed.
Throws:
XMLUtilityException

getBaseUnmarshaller

public java.lang.Object getBaseUnmarshaller()
Description copied from interface: Unmarshaller
Returns the base unmarshaller

Specified by:
getBaseUnmarshaller in interface Unmarshaller
Returns:
the base unmarshaller object

getUnmarshaller

public Unmarshaller getUnmarshaller()