01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: DataLinkIncompatibleInputOutputException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class DataLinkIncompatibleInputOutputException extends
11: EngineException {
12: private static final long serialVersionUID = 3044391130298285543L;
13:
14: private String mSiteDeclarationName = null;
15: private String mElementId = null;
16: private String mDestinationId = null;
17: private boolean mSnapback = false;
18:
19: public DataLinkIncompatibleInputOutputException(
20: String siteDeclarationName, String elementId,
21: String destinationId, boolean snapback) {
22: super (
23: "The site '"
24: + siteDeclarationName
25: + "' has an incompatible input and output defined for the "
26: + (!snapback ? "" : "snapback ")
27: + "datalink that originates at the element '"
28: + elementId
29: + "'"
30: + (null == destinationId ? ""
31: : " towards the element '"
32: + destinationId + "'")
33: + ", do not connect an output to an inbean or an outbean to an input.");
34:
35: mSiteDeclarationName = siteDeclarationName;
36: mElementId = elementId;
37: mDestinationId = destinationId;
38: mSnapback = snapback;
39: }
40:
41: public String getSiteDeclarationName() {
42: return mSiteDeclarationName;
43: }
44:
45: public String getElementId() {
46: return mElementId;
47: }
48:
49: public String getDestinationId() {
50: return mDestinationId;
51: }
52:
53: public boolean getSnapback() {
54: return mSnapback;
55: }
56: }
|