01: /**
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU General Public License as published by the
09: * Free Software Foundation; either version 2 of the License, or (at your option)
10: * any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15: * for more details.
16: *
17: * You should have received a copy of the GNU General Public License along with
18: * this program; if not, write to the Free Software Foundation, Inc.,
19: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: *
21: * TrxIdExtension
22: * LPS
23: * Sep 19, 2007
24: */package com.bostechcorp.cbesb.common.util.generators.wsdl.extensions;
25:
26: import java.io.Serializable;
27: import java.util.Properties;
28:
29: import javax.wsdl.extensions.ExtensibilityElement;
30: import javax.xml.namespace.QName;
31:
32: /**
33: * @author LPS
34: *<trxId type="xpath" expression="" />
35:
36: */
37: public class TrxIdExtension implements ExtensibilityElement,
38: Serializable {
39: private static final long serialVersionUID = -3094481876103520630L;
40:
41: protected QName elementType;
42: protected Boolean required;
43:
44: protected Properties attributes = new Properties();
45:
46: /**
47: * @return the elementType
48: */
49: public QName getElementType() {
50: return elementType;
51: }
52:
53: /**
54: * @param elementType the elementType to set
55: */
56: public void setElementType(QName elementType) {
57: this .elementType = elementType;
58:
59: }
60:
61: /**
62: * @return the required
63: */
64: public Boolean getRequired() {
65: return required;
66: }
67:
68: /**
69: * @param required the required to set
70: */
71: public void setRequired(Boolean required) {
72: this .required = required;
73: }
74:
75: /**
76: * @return the attributes
77: */
78: public Properties getAttributes() {
79: return attributes;
80: }
81:
82: public void addAttribute(String name, String value) {
83: attributes.setProperty(name, value);
84: }
85:
86: public void addAttributes(Properties aattributes) {
87: this .attributes.putAll(aattributes);
88: }
89:
90: public TrxIdExtension(QName elementType) {
91: super();
92: this.elementType = elementType;
93: }
94:
95: }
|