| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| BpmoParser |
|
| 0.0;0 |
| 1 | /* | |
| 2 | wsmo4j - a WSMO API and Reference Implementation | |
| 3 | ||
| 4 | Copyright (c) 2007, Ontotext Lab. / SIRMA | |
| 5 | ||
| 6 | This library is free software; you can redistribute it and/or modify it under | |
| 7 | the terms of the GNU Lesser General Public License as published by the Free | |
| 8 | Software Foundation; either version 2.1 of the License, or (at your option) | |
| 9 | any later version. | |
| 10 | This library is distributed in the hope that it will be useful, but WITHOUT | |
| 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 12 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |
| 13 | details. | |
| 14 | You should have received a copy of the GNU Lesser General Public License along | |
| 15 | with this library; if not, write to the Free Software Foundation, Inc., | |
| 16 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 17 | */ | |
| 18 | ||
| 19 | package org.sbpm.bpmo.io; | |
| 20 | ||
| 21 | import java.io.IOException; | |
| 22 | import java.io.Reader; | |
| 23 | import java.util.List; | |
| 24 | ||
| 25 | import org.omwg.ontology.Ontology; | |
| 26 | import org.sbpm.bpmo.Process; | |
| 27 | import org.sbpm.bpmo.ProcessFragment; | |
| 28 | import org.wsmo.common.exception.InvalidModelException; | |
| 29 | import org.wsmo.wsml.ParserException; | |
| 30 | ||
| 31 | public interface BpmoParser { | |
| 32 | ||
| 33 | ||
| 34 | Process[] parse(Reader src) throws IOException, ParserException, InvalidModelException; | |
| 35 | ||
| 36 | Process[] parse(StringBuffer src) throws ParserException, InvalidModelException; | |
| 37 | ||
| 38 | Process[] parse(Ontology instOnto) throws ParserException, InvalidModelException; | |
| 39 | ||
| 40 | ProcessFragment[] parseProcessFragments(Reader src) throws ParserException, InvalidModelException, IOException; | |
| 41 | ||
| 42 | ProcessFragment[] parseProcessFragments(Ontology instOnto) throws ParserException, InvalidModelException; | |
| 43 | ||
| 44 | public List<String> getWarnings(); | |
| 45 | ||
| 46 | public List<String> getErrors(); | |
| 47 | ||
| 48 | } | |
| 49 | /* | |
| 50 | * $Log$ | |
| 51 | * Revision 1.5 2007/08/17 09:03:20 alex_simov | |
| 52 | * parseProcessFragments added | |
| 53 | * | |
| 54 | * Revision 1.4 2007/08/16 16:17:18 alex_simov | |
| 55 | * Process and ProcessFragment have a common superclass | |
| 56 | * | |
| 57 | * Revision 1.3 2007/06/19 13:58:11 alex_simov | |
| 58 | * 1) BpmoParser/BpmoSerializer improvements - support for interaction with | |
| 59 | * instance ontology directly | |
| 60 | * 2) Processes give access to incoming/outgoing connectors for a certain | |
| 61 | * contained workflow element | |
| 62 | * | |
| 63 | * Revision 1.2 2007/05/31 13:59:36 alex_simov | |
| 64 | * no message | |
| 65 | * | |
| 66 | * Revision 1.1 2007/05/29 16:28:57 alex_simov | |
| 67 | * moved | |
| 68 | * | |
| 69 | * | |
| 70 | **/ |