001: /*
002: * $Id: ReplyImpl.java,v 1.14 2004/12/09 12:34:20 kowap Exp $
003: *
004: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
005: * Berne University of Applied Sciences
006: * School of Engineering and Information Technology
007: * All rights reserved.
008: */
009: package bexee.model.activity.impl;
010:
011: import javax.xml.namespace.QName;
012:
013: import bexee.core.ProcessController;
014: import bexee.core.ProcessInstance;
015: import bexee.model.BPELElementVisitor;
016: import bexee.model.StandardAttributes;
017: import bexee.model.activity.Reply;
018: import bexee.model.elements.Correlations;
019: import bexee.model.elements.PartnerLink;
020: import bexee.model.elements.Variable;
021:
022: /**
023: * Default implementation of the <code>Reply</code> activity.
024: *
025: * @version $Revision: 1.14 $, $Date: 2004/12/09 12:34:20 $
026: * @author Patric Fornasier
027: * @author Pawel Kowalski
028: */
029: public class ReplyImpl extends AbstractActivity implements Reply {
030:
031: private PartnerLink partnerLink = null;
032:
033: private QName portType = null;
034:
035: private String operation = null;
036:
037: private Variable variable = null;
038:
039: private QName faultName = null;
040:
041: private Correlations correlations = null;
042:
043: //**************************************************/
044: // c'tors
045: //**************************************************/
046:
047: public ReplyImpl() {
048: this (null);
049: }
050:
051: public ReplyImpl(StandardAttributes standardAttributes) {
052: super (standardAttributes);
053: }
054:
055: //**************************************************/
056: // bexee.model.activity.Reply
057: //**************************************************/
058:
059: public void setPartnerLink(PartnerLink partnerLink) {
060: this .partnerLink = partnerLink;
061: }
062:
063: public PartnerLink getPartnerLink() {
064: return partnerLink;
065: }
066:
067: public void setPortType(QName portType) {
068: this .portType = portType;
069: }
070:
071: public QName getPortType() {
072: return portType;
073: }
074:
075: public void setOperation(String operation) {
076: this .operation = operation;
077: }
078:
079: public String getOperation() {
080: return operation;
081: }
082:
083: public void setVariable(Variable variable) {
084: this .variable = variable;
085: }
086:
087: public Variable getVariable() {
088: return variable;
089: }
090:
091: public void setFaultName(QName faultName) {
092: this .faultName = faultName;
093: }
094:
095: public QName getFaultName() {
096: return faultName;
097: }
098:
099: public void setCorrelations(Correlations correlations) {
100: this .correlations = correlations;
101: }
102:
103: public Correlations getCorrelations() {
104: return correlations;
105: }
106:
107: //**************************************************/
108: // bexee.core.BPELElement
109: //**************************************************/
110:
111: public void accept(ProcessController controller,
112: ProcessInstance instance) throws Exception {
113: controller.process(this , instance);
114: }
115:
116: public void accept(BPELElementVisitor elementVisitor) {
117: elementVisitor.visit(this);
118: }
119:
120: }
|