|
|||||||||||||||||||
| 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 | |||||||||||||||
| ScopeImpl.java | - | 11.1% | 11.1% | 11.1% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* $Id: ScopeImpl.java,v 1.1 2004/12/15 14:18:13 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.activity.impl;
|
|
| 10 |
|
|
| 11 |
import bexee.core.ProcessController;
|
|
| 12 |
import bexee.core.ProcessInstance;
|
|
| 13 |
import bexee.model.BPELElementVisitor;
|
|
| 14 |
import bexee.model.StandardAttributes;
|
|
| 15 |
import bexee.model.activity.Activity;
|
|
| 16 |
import bexee.model.activity.CompensationHandler;
|
|
| 17 |
import bexee.model.activity.Scope;
|
|
| 18 |
import bexee.model.elements.CorrelationSets;
|
|
| 19 |
import bexee.model.elements.EventHandlers;
|
|
| 20 |
import bexee.model.elements.FaultHandlers;
|
|
| 21 |
import bexee.model.elements.Variables;
|
|
| 22 |
|
|
| 23 |
/**
|
|
| 24 |
* Default implementation of the <code>Scope</code> activity.
|
|
| 25 |
*
|
|
| 26 |
* @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:13 $
|
|
| 27 |
* @author Patric Fornasier
|
|
| 28 |
* @author Pawel Kowalski
|
|
| 29 |
*/
|
|
| 30 |
public class ScopeImpl extends AbstractActivity implements Scope { |
|
| 31 |
|
|
| 32 |
private boolean varAccessSerializable = false; |
|
| 33 |
|
|
| 34 |
private Variables variables = null; |
|
| 35 |
|
|
| 36 |
private CorrelationSets correlationSets = null; |
|
| 37 |
|
|
| 38 |
private FaultHandlers faultHandlers = null; |
|
| 39 |
|
|
| 40 |
private CompensationHandler compensationHandler = null; |
|
| 41 |
|
|
| 42 |
private EventHandlers eventHandlers = null; |
|
| 43 |
|
|
| 44 |
private Activity activity = null; |
|
| 45 |
|
|
| 46 |
//**************************************************/
|
|
| 47 |
// c'tors
|
|
| 48 |
//**************************************************/
|
|
| 49 |
|
|
| 50 | 2 |
public ScopeImpl() {
|
| 51 | 2 |
this(null); |
| 52 |
} |
|
| 53 |
|
|
| 54 | 2 |
public ScopeImpl(StandardAttributes standardAttributes) {
|
| 55 | 2 |
super(standardAttributes);
|
| 56 |
} |
|
| 57 |
|
|
| 58 |
//**************************************************/
|
|
| 59 |
// bexee.model.activity.Scope
|
|
| 60 |
//**************************************************/
|
|
| 61 |
|
|
| 62 | 0 |
public void setVariableAccessSerializable(boolean varAccessSerializable) { |
| 63 | 0 |
this.varAccessSerializable = varAccessSerializable;
|
| 64 |
} |
|
| 65 |
|
|
| 66 | 0 |
public boolean isVariableAccessSerializable() { |
| 67 | 0 |
return varAccessSerializable;
|
| 68 |
} |
|
| 69 |
|
|
| 70 | 0 |
public void setVariables(Variables variables) { |
| 71 | 0 |
this.variables = variables;
|
| 72 |
} |
|
| 73 |
|
|
| 74 | 0 |
public Variables getVariables() {
|
| 75 | 0 |
return variables;
|
| 76 |
} |
|
| 77 |
|
|
| 78 | 0 |
public void setCorrelationSets(CorrelationSets correlationSets) { |
| 79 | 0 |
this.correlationSets = correlationSets;
|
| 80 |
} |
|
| 81 |
|
|
| 82 | 0 |
public CorrelationSets getCorrelationSets() {
|
| 83 | 0 |
return correlationSets;
|
| 84 |
} |
|
| 85 |
|
|
| 86 | 0 |
public void setFaultHandlers(FaultHandlers faultHandlers) { |
| 87 | 0 |
this.faultHandlers = faultHandlers;
|
| 88 |
} |
|
| 89 |
|
|
| 90 | 0 |
public FaultHandlers getFaultHandlers() {
|
| 91 | 0 |
return faultHandlers;
|
| 92 |
} |
|
| 93 |
|
|
| 94 | 0 |
public void setCompensationHanlder(CompensationHandler compensationHandler) { |
| 95 | 0 |
this.compensationHandler = compensationHandler;
|
| 96 |
} |
|
| 97 |
|
|
| 98 | 0 |
public CompensationHandler getCompensationHandler() {
|
| 99 | 0 |
return compensationHandler;
|
| 100 |
} |
|
| 101 |
|
|
| 102 | 0 |
public void setEventHandlers(EventHandlers eventHandlers) { |
| 103 | 0 |
this.eventHandlers = eventHandlers;
|
| 104 |
} |
|
| 105 |
|
|
| 106 | 0 |
public EventHandlers getEventHandlers() {
|
| 107 | 0 |
return eventHandlers;
|
| 108 |
} |
|
| 109 |
|
|
| 110 | 0 |
public void setActivity(Activity activity) { |
| 111 | 0 |
this.activity = activity;
|
| 112 |
} |
|
| 113 |
|
|
| 114 | 0 |
public Activity getActivity() {
|
| 115 | 0 |
return activity;
|
| 116 |
} |
|
| 117 |
|
|
| 118 |
//**************************************************/
|
|
| 119 |
// bexee.core.BPELElement
|
|
| 120 |
//**************************************************/
|
|
| 121 |
|
|
| 122 | 0 |
public void accept(ProcessController controller, ProcessInstance instance) |
| 123 |
throws Exception {
|
|
| 124 | 0 |
controller.process(this, instance);
|
| 125 |
} |
|
| 126 |
|
|
| 127 | 0 |
public void accept(BPELElementVisitor elementVisitor) { |
| 128 | 0 |
elementVisitor.visit(this);
|
| 129 |
} |
|
| 130 |
|
|
| 131 |
} |
|
||||||||||