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