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: DataLinkUnknownDestInbeanException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class DataLinkUnknownDestInbeanException extends EngineException {
11: private static final long serialVersionUID = -2840600084761475650L;
12:
13: private String mSiteDeclarationName = null;
14: private String mDestInbean = null;
15: private String mElementId = null;
16: private String mDestinationId = null;
17: private boolean mSnapback = false;
18:
19: public DataLinkUnknownDestInbeanException(
20: String siteDeclarationName, String destinbean,
21: String elementId, String destinationId, boolean snapback) {
22: super (
23: "The site '"
24: + siteDeclarationName
25: + "' references an unknown destination element inbean '"
26: + destinbean
27: + "' in the "
28: + (!snapback ? "" : "snapback ")
29: + "datalink that originates at the element '"
30: + elementId
31: + "'"
32: + (null == destinationId ? ""
33: : " towards the element'"
34: + destinationId + "'") + ".");
35:
36: mSiteDeclarationName = siteDeclarationName;
37: mDestInbean = destinbean;
38: mElementId = elementId;
39: mDestinationId = destinationId;
40: mSnapback = snapback;
41: }
42:
43: public String getSiteDeclarationName() {
44: return mSiteDeclarationName;
45: }
46:
47: public String getDestInbean() {
48: return mDestInbean;
49: }
50:
51: public String getElementId() {
52: return mElementId;
53: }
54:
55: public String getDestinationId() {
56: return mDestinationId;
57: }
58:
59: public boolean getSnapback() {
60: return mSnapback;
61: }
62: }
|