001: /**
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: * ConfigExtension
022: * LPS
023: * Sep 14, 2007
024: */package com.bostechcorp.cbesb.common.util.generators.wsdl.extensions;
025:
026: import java.io.Serializable;
027: import java.util.Properties;
028:
029: import javax.wsdl.extensions.ExtensibilityElement;
030: import javax.xml.namespace.QName;
031:
032: /**
033: * @author LPS
034: *
035: */
036: public class ConfigExtension implements ExtensibilityElement,
037: Serializable, AttributeFullElement {
038: protected QName elementType;
039: protected Properties attributes;
040: protected Boolean required = Boolean.TRUE;
041: protected TrxIdExtension trxId;
042: /**
043: *
044: */
045: private static final long serialVersionUID = 4648800428733268459L;
046:
047: /**
048: * @param elementType
049: * @param attributes
050: */
051: public ConfigExtension(QName elementType, Properties attributes) {
052: super ();
053: this .elementType = elementType;
054: this .attributes = attributes;
055: }
056:
057: public QName getElementType() {
058: return elementType;
059: }
060:
061: public Boolean getRequired() {
062: return required;
063: }
064:
065: public void setElementType(QName arg0) {
066: elementType = arg0;
067: }
068:
069: public void setRequired(Boolean arg0) {
070: required = arg0;
071: }
072:
073: /**
074: * @return the attributes
075: */
076: public Properties getAttributes() {
077: return attributes;
078: }
079:
080: public void addAttribute(String name, String value) {
081: attributes.setProperty(name, value);
082: }
083:
084: public void addAttributes(Properties aattributes) {
085: this .attributes.putAll(aattributes);
086: }
087:
088: /**
089: * @return the trxId
090: */
091: public TrxIdExtension getTrxId() {
092: return trxId;
093: }
094:
095: /**
096: * @param trxId the trxId to set
097: */
098: public void setTrxId(TrxIdExtension trxId) {
099: this.trxId = trxId;
100: }
101: }
|