Coverage Report - org.deri.wsmo4j.rule.AddRI
 
Classes in this File Line Coverage Branch Coverage Complexity
AddRI
0%
0/8
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.rule;
 20  
 
 21  
 import org.deri.wsmo4j.io.serializer.wsml.*;
 22  
 import org.wsmo.common.*;
 23  
 import org.wsmo.service.rule.*;
 24  
 
 25  
 /**
 26  
  * Add update Implementation.
 27  
  * 
 28  
  * <pre>
 29  
  *      Created on Jul 26, 2005
 30  
  *      Committed by $Author: vassil_momtchev $
 31  
  *      $Source$
 32  
  * </pre>
 33  
  * 
 34  
  * @author Thomas Haselwanter
 35  
  * @author James Scicluna
 36  
  * 
 37  
  * @version $Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
 38  
  */
 39  
 public class AddRI extends AbstractUpdateRule implements Add {
 40  
 
 41  
     /**
 42  
      * @param fact
 43  
      *            A CompoundFact object defining the fact of the Add rule
 44  
      */
 45  
     public AddRI(CompoundFact fact) {
 46  0
         super(fact);
 47  0
     }
 48  
 
 49  
     /*
 50  
      * (non-Javadoc)
 51  
      * 
 52  
      * @see org.wsmo.service.choreography.rule.Rule#accept(org.wsmo.service.choreography.rule.Visitor)
 53  
      */
 54  
     public void accept(Visitor visitor) {
 55  0
         visitor.visitAdd(this);
 56  0
     }
 57  
 
 58  
     /* (non-Javadoc)
 59  
      * @see org.wsmo.service.choreography.rule.Rule#toString(org.wsmo.common.TopEntity)
 60  
      */
 61  
         public String toString(TopEntity te) {
 62  0
         VisitorSerializeWSMLTransitionRules visitor = new VisitorSerializeWSMLTransitionRules(te);
 63  0
         visitor.visitAdd(this);
 64  0
         return visitor.getSerializedObject();
 65  
     }
 66  
     
 67  
     @Override
 68  
     public String toString() {
 69  0
         return toString(null);
 70  
     }
 71  
 }