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: ElementIdAlreadyRegisteredToElementException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class ElementIdAlreadyRegisteredToElementException extends
11: EngineException {
12: private static final long serialVersionUID = 1918932252060861075L;
13:
14: private String mSiteDeclarationName = null;
15: private String mElementId = null;
16: private String mExistingElementDeclarationName = null;
17: private String mConflictingElementDeclarationName = null;
18:
19: public ElementIdAlreadyRegisteredToElementException(
20: String siteDeclarationName, String elementId,
21: String existingElementDeclarationName,
22: String conflictingElementDeclarationName) {
23: super (
24: "The element ID '"
25: + elementId
26: + "' in site '"
27: + siteDeclarationName
28: + "' has already been registered to the element '"
29: + existingElementDeclarationName
30: + "', it's not possible to register it again for element '"
31: + conflictingElementDeclarationName + "'.");
32:
33: mSiteDeclarationName = siteDeclarationName;
34: mElementId = elementId;
35: mExistingElementDeclarationName = existingElementDeclarationName;
36: mConflictingElementDeclarationName = conflictingElementDeclarationName;
37: }
38:
39: public String getSiteDeclarationName() {
40: return mSiteDeclarationName;
41: }
42:
43: public String getElementId() {
44: return mElementId;
45: }
46:
47: public String getExistingElementDeclarationName() {
48: return mExistingElementDeclarationName;
49: }
50:
51: public String getConflictingElementDeclarationName() {
52: return mConflictingElementDeclarationName;
53: }
54: }
|