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: *
022: * $Id: BaseCommonAttribute.java 3506 2006-12-08 04:11:53Z zjin $
023: */
024: package com.bostechcorp.cbesb.runtime.component.util.wsdl;
025:
026: import javax.jbi.messaging.MessageExchange.Role;
027: import javax.wsdl.extensions.ExtensibilityElement;
028: import javax.xml.namespace.QName;
029:
030: import java.io.Serializable;
031: import java.net.URI;
032:
033: public class BaseCommonAttribute implements ExtensibilityElement,
034: Serializable {
035:
036: /**
037: * Generated serial version UID
038: */
039: private static final long serialVersionUID = -3118867357618475968L;
040:
041: protected Boolean required;
042: protected QName elementType;
043:
044: protected Role role;
045: protected URI defaultMep;
046: protected QName defaultOperation;
047:
048: /**
049: * @return Returns the elementType.
050: */
051: public QName getElementType() {
052: return elementType;
053: }
054:
055: /**
056: * @param elementType The elementType to set.
057: */
058: public void setElementType(QName elementType) {
059: this .elementType = elementType;
060: }
061:
062: /**
063: * @return Returns the required.
064: */
065: public Boolean getRequired() {
066: return required;
067: }
068:
069: /**
070: * @param required The required to set.
071: */
072: public void setRequired(Boolean required) {
073: this .required = required;
074: }
075:
076: public Role getRole() {
077: return role;
078: }
079:
080: public void setRole(Role role) {
081: this .role = role;
082: }
083:
084: /**
085: * @return Returns the defaultMep.
086: */
087: public URI getDefaultMep() {
088: return defaultMep;
089: }
090:
091: /**
092: * @param defaultMep The defaultMep to set.
093: */
094: public void setDefaultMep(URI defaultMep) {
095: this .defaultMep = defaultMep;
096: }
097:
098: /**
099: * @return Returns the defaultOperation.
100: */
101: public QName getDefaultOperation() {
102: return defaultOperation;
103: }
104:
105: /**
106: * @param defaultOperation The defaultOperation to set.
107: */
108: public void setDefaultOperation(QName defaultOperation) {
109: this .defaultOperation = defaultOperation;
110: }
111:
112: public String toString() {
113: return "BaseCommonAttribute[" + "required=" + required + ", "
114: + "elementType=" + elementType + ", " + "role=" + role
115: + ", " + "defaultMep=" + defaultMep + ","
116: + "defaultOperation=" + defaultOperation + "]";
117: }
118:
119: }
|