01: package com.xoetrope.builder.generic;
02:
03: /**
04: * A mapping of component attributes accross the XUI components that are
05: * generated for a single file element
06: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
07: * the GNU Public License (GPL), please see license.txt for more details. If
08: * you make commercial use of this software you must purchase a commercial
09: * license from Xoetrope.</p>
10: */
11: public class XAttributeMapping {
12: // Package scoped variables
13: private String srcAttrib;
14: private String destAttrib;
15: private String componentRef;
16: private String value;
17:
18: /**
19: * Creates a new instance of XAttributeMapping
20: */
21: public XAttributeMapping(String srcAttrib, String destAttrib,
22: String componentRef, String value) {
23: this .srcAttrib = srcAttrib;
24: this .destAttrib = destAttrib;
25: this .componentRef = componentRef;
26: this .value = value;
27: }
28:
29: /**
30: * Get the name of the attribute in the source file format
31: */
32: public String getSrcAttrib() {
33: return srcAttrib;
34: }
35:
36: /**
37: * Get the name of the attribute in the mapped (XUI) file format
38: */
39: public String getDestAttrib() {
40: return destAttrib;
41: }
42:
43: /**
44: * Get the name of the referenced component
45: */
46: public String getComponentRef() {
47: return componentRef;
48: }
49:
50: /**
51: * Get the value of the attribute
52: */
53: public String getValue() {
54: return value;
55: }
56: }
|