es.us.isa.bpmn.handler.ModelHandler Maven / Gradle / Ivy
package es.us.isa.bpmn.handler;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Collection;
/**
* Interface of classes that import from and export to XML
*
* @author resinas
* @author Edelia
*
*/
public interface ModelHandler {
/**
* Devuelve el id del proceso involucrado en el xml
*
* @return Id del proceso
*/
@Deprecated
public String getProcId();
/**
* Returns the id of the processes involved in the xml
*
* @return Processes id
*/
public Collection getProcessId();
/**
* Generate model instances from an XML stream
*
* @param stream
* @throws Exception
*/
public void load(InputStream stream) throws Exception;
/**
* Saves model instances from an XML file
*
* @param stream
*/
public void save(OutputStream stream);
/**
* Returns the element of the model with the given id
* @param id
* @return
*/
Object getElement(String id);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy