1 package org.exoplatform.services.xml.querying.helper;2 3 import java.io.InputStream ;4 import org.xml.sax.InputSource ;5 import org.exoplatform.services.xml.querying.UniFormTransformationException;6 import org.exoplatform.services.xml.querying.XMLData;7 import org.exoplatform.services.xml.querying.XMLFragmentData;8 import org.exoplatform.services.xml.querying.XMLWellFormedData;9 import org.exoplatform.services.xml.querying.object.MarshallerCreateException;10 import org.exoplatform.services.xml.querying.object.ObjectMappingException;11 import org.exoplatform.services.xml.querying.object.ObjectMarshalException;12 import org.w3c.dom.Node ;13 14 15 public interface XMLDataManager {16 17 XMLFragmentData create(InputStream stream) throws UniFormTransformationException;18 19 XMLWellFormedData create(InputSource src) throws UniFormTransformationException;20 21 XMLWellFormedData create(Node node) throws UniFormTransformationException;22 23 XMLWellFormedData create(Object obj) throws UniFormTransformationException, ObjectMarshalException,24 MarshallerCreateException, ObjectMappingException;25 26 XMLWellFormedData create(Object mapping, Object obj) throws UniFormTransformationException, ObjectMarshalException,27 MarshallerCreateException, ObjectMappingException;28 29 XMLFragmentData toFragment(XMLData tree) throws UniFormTransformationException;30 31 XMLWellFormedData toWellFormed(XMLData tree) throws UniFormTransformationException;32 33 }34