001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036: package com.sun.tools.ws.wsdl.document.jaxws;
037:
038: import javax.xml.namespace.QName;
039:
040: /**
041: * @author Vivek Pandey
042: *
043: * class representing jaxws:parameter
044: *
045: */
046: public class Parameter {
047: private String part;
048: private QName element;
049: private String name;
050: private String messageName;
051:
052: /**
053: * @param part
054: * @param element
055: * @param name
056: */
057: public Parameter(String msgName, String part, QName element,
058: String name) {
059: this .part = part;
060: this .element = element;
061: this .name = name;
062: this .messageName = msgName;
063: }
064:
065: public String getMessageName() {
066: return messageName;
067: }
068:
069: public void setMessageName(String messageName) {
070: this .messageName = messageName;
071: }
072:
073: /**
074: * @return Returns the element.
075: */
076: public QName getElement() {
077: return element;
078: }
079:
080: /**
081: * @param element The element to set.
082: */
083: public void setElement(QName element) {
084: this .element = element;
085: }
086:
087: /**
088: * @return Returns the name.
089: */
090: public String getName() {
091: return name;
092: }
093:
094: /**
095: * @param name The name to set.
096: */
097: public void setName(String name) {
098: this .name = name;
099: }
100:
101: /**
102: * @return Returns the part.
103: */
104: public String getPart() {
105: return part;
106: }
107:
108: /**
109: * @param part The part to set.
110: */
111: public void setPart(String part) {
112: this.part = part;
113: }
114: }
|