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: DataLinkTargetRequiredException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class DataLinkTargetRequiredException extends EngineException {
11: private static final long serialVersionUID = -2716560329689011469L;
12:
13: private String mSiteDeclarationName = null;
14: private String mElementId = null;
15: private String mOutputName = null;
16: private String mOutbeanName = null;
17: private String mInputName = null;
18: private String mInbeanName = null;
19:
20: public DataLinkTargetRequiredException(String siteDeclarationName,
21: String elementId, String outputName, String outbeanName,
22: String inputName, String inbeanName) {
23: super (
24: "The site '"
25: + siteDeclarationName
26: + "' has no target defined for the datalink that originates at the "
27: + (null == outputName ? "outbean '"
28: + outbeanName + "'" : "output '"
29: + outputName + "'")
30: + " of element '"
31: + elementId
32: + "'"
33: + (null == inputName && null == inbeanName ? ""
34: : " towards "
35: + (null == inputName ? "inbean '"
36: + inbeanName + "'"
37: : "input '" + inputName
38: + "'"))
39: + ", point it to an element id or make it snap back.");
40:
41: mSiteDeclarationName = siteDeclarationName;
42: mElementId = elementId;
43: mOutputName = outputName;
44: mOutbeanName = outbeanName;
45: mInputName = inputName;
46: mInbeanName = inbeanName;
47: }
48:
49: public String getSiteDeclarationName() {
50: return mSiteDeclarationName;
51: }
52:
53: public String getElementId() {
54: return mElementId;
55: }
56:
57: public String getOutputName() {
58: return mOutputName;
59: }
60:
61: public String getOutbeanName() {
62: return mOutbeanName;
63: }
64:
65: public String getInputName() {
66: return mInputName;
67: }
68:
69: public String getInbeanName() {
70: return mInbeanName;
71: }
72: }
|