Coverage Report - org.deri.wsmo4j.orchestration.rule.SendRI
 
Classes in this File Line Coverage Branch Coverage Complexity
SendRI
0%
0/10
N/A
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.orchestration.rule.Send;
 26  
 import org.wsmo.service.rule.Visitor;
 27  
 
 28  
 /**
 29  
  * Interface or class description
 30  
  *
 31  
  * @author James Scicluna
 32  
  * @author Thomas Haselwanter
 33  
  * @author Vassil Momtchev
 34  
  *
 35  
  * Created on 02-Feb-2006
 36  
  * Committed by $Author: morcen $
 37  
  *
 38  
  * $Source$,
 39  
  * @version $Revision: 1949 $ $Date: 2007-04-02 16:05:18 +0300 (Mon, 02 Apr 2007) $
 40  
  */
 41  
 
 42  
 public class SendRI extends PerformRI implements Send {
 43  
 
 44  
         private IRI target;
 45  
         
 46  
         public SendRI(IRI performance, IRI target) {
 47  0
                 super(performance);
 48  0
                 this.target = target;
 49  0
         }
 50  
 
 51  
         public void accept(Visitor visitor) {
 52  0
                 visitor.visitSend(this);
 53  0
         }
 54  
 
 55  
         public IRI getTargetIRI() {
 56  0
                 return target;
 57  
         }
 58  
         
 59  
         @Override
 60  
         public String toString() {
 61  0
                 return toString(null);
 62  
         }
 63  
     /* (non-Javadoc)
 64  
      * @see org.wsmo.service.choreography.rule.Rule#toString(org.wsmo.common.TopEntity)
 65  
      */
 66  
         public String toString(TopEntity te) {
 67  0
         VisitorSerializeWSMLTransitionRules visitor = new VisitorSerializeWSMLTransitionRules(te);
 68  0
         visitor.visitSend(this);
 69  0
         return visitor.getSerializedObject();
 70  
     }
 71  
         
 72  
 }