001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019: package org.apache.axis2.wsdl;
020:
021: import org.apache.axis2.namespace.Constants;
022:
023: import javax.xml.namespace.QName;
024:
025: public class SOAPHeaderMessage {
026:
027: public static final QName SOAP_11_HEADER = new QName(
028: Constants.URI_WSDL11_SOAP, "header");
029: public static final QName SOAP_12_HEADER = new QName(
030: Constants.URI_WSDL12_SOAP, "header");
031:
032: private QName messageName = null;
033: private String part = null;
034: private QName element = null;
035: private QName type;
036: private String use;
037: private String namespaceURI;
038: private boolean required;
039: private boolean mustUnderstand;
040:
041: public SOAPHeaderMessage() {
042: this .type = SOAP_11_HEADER;
043: }
044:
045: public SOAPHeaderMessage(QName type) {
046: this .type = type;
047: }
048:
049: public QName getMessage() {
050: return messageName;
051: }
052:
053: public void setMessage(QName message) {
054: this .messageName = message;
055: }
056:
057: public String part() {
058: return part;
059: }
060:
061: public void setPart(String part) {
062: this .part = part;
063: }
064:
065: public QName getElement() {
066: return element;
067: }
068:
069: public void setElement(QName element) {
070: this .element = element;
071: }
072:
073: public String getUse() {
074: return use;
075: }
076:
077: public void setUse(String use) {
078: this .use = use;
079: }
080:
081: public String getNamespaceURI() {
082: return namespaceURI;
083: }
084:
085: public void setNamespaceURI(String namespaceURI) {
086: this .namespaceURI = namespaceURI;
087: }
088:
089: public boolean isRequired() {
090: return required;
091: }
092:
093: public void setRequired(boolean required) {
094: this .required = required;
095: }
096:
097: public boolean isMustUnderstand() {
098: return mustUnderstand;
099: }
100:
101: public void setMustUnderstand(boolean mustUnderstand) {
102: this.mustUnderstand = mustUnderstand;
103: }
104:
105: }
|