| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| OrchestrationInvokeServiceRI |
|
| 0.0;0 |
| 1 | /* | |
| 2 | wsmo4j extension - a Choreography API and Reference Implementation | |
| 3 | ||
| 4 | Copyright (c) 2005, University of Innsbruck, Austria | |
| 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.deri.wsmo4j.orchestration.rule; | |
| 20 | ||
| 21 | import org.deri.wsmo4j.io.serializer.wsml.VisitorSerializeWSMLTransitionRules; | |
| 22 | import org.deri.wsmo4j.rule.PerformRI; | |
| 23 | import org.wsmo.common.IRI; | |
| 24 | import org.wsmo.common.TopEntity; | |
| 25 | import org.wsmo.service.WebService; | |
| 26 | import org.wsmo.service.orchestration.rule.OrchestrationInvokeService; | |
| 27 | import org.wsmo.service.rule.Visitor; | |
| 28 | ||
| 29 | /** | |
| 30 | * Interface or class description | |
| 31 | * | |
| 32 | * @author James Scicluna | |
| 33 | * @author Thomas Haselwanter | |
| 34 | * @author Vassil Momtchev | |
| 35 | * | |
| 36 | * Created on 02-Feb-2006 | |
| 37 | * Committed by $Author: morcen $ | |
| 38 | * | |
| 39 | * $Source$, | |
| 40 | * @version $Revision: 1949 $ $Date: 2007-04-02 16:05:18 +0300 (Mon, 02 Apr 2007) $ | |
| 41 | */ | |
| 42 | ||
| 43 | public class OrchestrationInvokeServiceRI extends PerformRI implements OrchestrationInvokeService { | |
| 44 | ||
| 45 | private WebService service; | |
| 46 | ||
| 47 | public OrchestrationInvokeServiceRI(IRI performance, WebService service) { | |
| 48 | 0 | super(performance); |
| 49 | 0 | this.service = service; |
| 50 | 0 | } |
| 51 | ||
| 52 | @Override | |
| 53 | public void accept(Visitor visitor) { | |
| 54 | 0 | visitor.visitOrchestrationInvokeService(this); |
| 55 | 0 | } |
| 56 | ||
| 57 | public WebService getService() { | |
| 58 | 0 | return service; |
| 59 | } | |
| 60 | ||
| 61 | /* (non-Javadoc) | |
| 62 | * @see org.wsmo.service.choreography.rule.Rule#toString(org.wsmo.common.TopEntity) | |
| 63 | */ | |
| 64 | public String toString(TopEntity te) { | |
| 65 | 0 | VisitorSerializeWSMLTransitionRules visitor = new VisitorSerializeWSMLTransitionRules(te); |
| 66 | 0 | visitor.visitOrchestrationInvokeService(this); |
| 67 | 0 | return visitor.getSerializedObject(); |
| 68 | } | |
| 69 | } |