org.ow2.dragon.service.dataloader
Class DragonDatasetHandler

java.lang.Object
  extended by org.ow2.dragon.service.dataloader.DragonDatasetHandler

public class DragonDatasetHandler
extends java.lang.Object

Author:
ofabre - eBM Websourcing

Method Summary
 Dataset convertStreamSource2DragonDataset(javax.xml.transform.Source datasetStream)
          Build the Java bindings from the Dragon dataset in XML form.
static DragonDatasetHandler getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertStreamSource2DragonDataset

public Dataset convertStreamSource2DragonDataset(javax.xml.transform.Source datasetStream)
                                          throws DataLoaderException
Build the Java bindings from the Dragon dataset in XML form. The validation against the dataset schema is processed during the transformation.

Parameters:
datasetStream - The Dragon dataset in XML form
Returns:
The root object of the dataset
Throws:
DataLoaderException - The exception raised during the unmarshaller creation or the exception raised during the build of the java bindings.

getInstance

public static DragonDatasetHandler getInstance()
                                        throws DataLoaderException
Throws:
DataLoaderException


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.