|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| VariableImpl.java | - | 66.7% | 66.7% | 66.7% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* $Id: VariableImpl.java,v 1.1 2004/12/15 14:18:12 patforna Exp $
|
|
| 3 |
*
|
|
| 4 |
* Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
|
|
| 5 |
* Berne University of Applied Sciences
|
|
| 6 |
* School of Engineering and Information Technology
|
|
| 7 |
* All rights reserved.
|
|
| 8 |
*/
|
|
| 9 |
package bexee.model.elements.impl;
|
|
| 10 |
|
|
| 11 |
import javax.xml.namespace.QName;
|
|
| 12 |
|
|
| 13 |
import bexee.core.ProcessController;
|
|
| 14 |
import bexee.core.ProcessInstance;
|
|
| 15 |
import bexee.model.BPELElementVisitor;
|
|
| 16 |
import bexee.model.elements.Variable;
|
|
| 17 |
|
|
| 18 |
/**
|
|
| 19 |
* Default implementation of the <code>Variable</code> BPEL element.
|
|
| 20 |
*
|
|
| 21 |
* @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:12 $
|
|
| 22 |
* @author Patric Fornasier
|
|
| 23 |
* @author Pawel Kowalski
|
|
| 24 |
*/
|
|
| 25 |
public class VariableImpl implements Variable { |
|
| 26 |
|
|
| 27 |
private String name = null; |
|
| 28 |
|
|
| 29 |
private QName messageType = null; |
|
| 30 |
|
|
| 31 |
private QName type = null; |
|
| 32 |
|
|
| 33 |
private QName element = null; |
|
| 34 |
|
|
| 35 |
//**************************************************/
|
|
| 36 |
// c'tors
|
|
| 37 |
//**************************************************/
|
|
| 38 |
|
|
| 39 | 150 |
public VariableImpl() {
|
| 40 | 150 |
super();
|
| 41 |
} |
|
| 42 |
|
|
| 43 |
/**
|
|
| 44 |
* @param value
|
|
| 45 |
*/
|
|
| 46 | 0 |
public VariableImpl(String name) {
|
| 47 | 0 |
this.name = name;
|
| 48 |
} |
|
| 49 |
|
|
| 50 |
//**************************************************/
|
|
| 51 |
// bexee.model.elements.Variable
|
|
| 52 |
//**************************************************/
|
|
| 53 |
|
|
| 54 | 150 |
public void setName(String name) { |
| 55 | 150 |
this.name = name;
|
| 56 |
} |
|
| 57 |
|
|
| 58 | 64 |
public String getName() {
|
| 59 | 64 |
return name;
|
| 60 |
} |
|
| 61 |
|
|
| 62 | 150 |
public void setMessageType(QName messageType) { |
| 63 | 150 |
this.messageType = messageType;
|
| 64 |
} |
|
| 65 |
|
|
| 66 | 12 |
public QName getMessageType() {
|
| 67 | 12 |
return messageType;
|
| 68 |
} |
|
| 69 |
|
|
| 70 | 142 |
public void setType(QName type) { |
| 71 | 142 |
this.type = type;
|
| 72 |
} |
|
| 73 |
|
|
| 74 | 0 |
public QName getType() {
|
| 75 | 0 |
return type;
|
| 76 |
} |
|
| 77 |
|
|
| 78 | 142 |
public void setElement(QName element) { |
| 79 | 142 |
this.element = element;
|
| 80 |
} |
|
| 81 |
|
|
| 82 | 0 |
public QName getElement() {
|
| 83 | 0 |
return element;
|
| 84 |
} |
|
| 85 |
|
|
| 86 |
//**************************************************/
|
|
| 87 |
// bexee.model.BPELElement
|
|
| 88 |
//**************************************************/
|
|
| 89 |
|
|
| 90 | 26 |
public void accept(ProcessController controller, ProcessInstance instance) |
| 91 |
throws Exception {
|
|
| 92 | 26 |
controller.process(this, instance);
|
| 93 |
} |
|
| 94 |
|
|
| 95 | 0 |
public void accept(BPELElementVisitor elementVisitor) { |
| 96 | 0 |
elementVisitor.visit(this);
|
| 97 |
} |
|
| 98 |
|
|
| 99 |
} |
|
||||||||||