001: /*
002: * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: * Free SoftwareFoundation, Inc.
023: * 59 Temple Place, Suite 330
024: * Boston, MA 02111-1307 USA
025: *
026: * @author Emil Ong
027: */
028:
029: package com.caucho.soap.wsdl;
030:
031: import javax.xml.bind.annotation.XmlAccessType;
032: import javax.xml.bind.annotation.XmlAccessorType;
033: import javax.xml.bind.annotation.XmlAttribute;
034: import javax.xml.bind.annotation.XmlRootElement;
035: import javax.xml.namespace.QName;
036: import java.util.ArrayList;
037: import java.util.List;
038:
039: /**
040: * SOAP binding definition
041: */
042: @XmlAccessorType(XmlAccessType.FIELD)
043: @XmlRootElement(name="headerfault",namespace="http://schemas.xmlsoap.org/wsdl/soap/")
044: public class SOAPHeaderFault {
045: @XmlAttribute(required=true,name="message")
046: private QName _message;
047:
048: @XmlAttribute(required=true,name="part")
049: private String _part;
050:
051: @XmlAttribute(required=true,name="use")
052: private SOAPUseChoice _use;
053:
054: @XmlAttribute(name="encodingStyle")
055: private List<String> _encodingStyle;
056:
057: @XmlAttribute(name="namespace")
058: private String _namespace;
059:
060: /**
061: * Sets the message.
062: */
063: public void setMessage(QName message) {
064: _message = message;
065: }
066:
067: /**
068: * Returns the message.
069: */
070: public QName getMessage() {
071: return _message;
072: }
073:
074: /**
075: * Sets the header part.
076: */
077: public void setPart(String part) {
078: _part = part;
079: }
080:
081: /**
082: * Returns the header part.
083: */
084: public String getPart() {
085: return _part;
086: }
087:
088: public void addEncodingStyle(String encodingStyle) {
089: if (_encodingStyle == null)
090: _encodingStyle = new ArrayList<String>();
091:
092: _encodingStyle.add(encodingStyle);
093: }
094:
095: public List<String> getEncodingStyle() {
096: if (_encodingStyle == null)
097: _encodingStyle = new ArrayList<String>();
098:
099: return _encodingStyle;
100: }
101:
102: public void setNamespace(String namespace) {
103: _namespace = namespace;
104: }
105:
106: public String getNamespace() {
107: return _namespace;
108: }
109:
110: public void setUse(SOAPUseChoice use) {
111: _use = use;
112: }
113:
114: public SOAPUseChoice getUse() {
115: return _use;
116: }
117: }
|