001: /*
002: * The contents of this file are subject to the terms
003: * of the Common Development and Distribution License
004: * (the License). You may not use this file except in
005: * compliance with the License.
006: *
007: * You can obtain a copy of the license at
008: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
009: * See the License for the specific language governing
010: * permissions and limitations under the License.
011: *
012: * When distributing Covered Code, include this CDDL
013: * Header Notice in each file and include the License file
014: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
015: * If applicable, add the following below the CDDL Header,
016: * with the fields enclosed by brackets [] replaced by
017: * you own identifying information:
018: * "Portions Copyrighted [year] [name of copyright owner]"
019: *
020: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
021: */
022: //
023: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
024: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
025: // Any modifications to this file will be lost upon recompilation of the source schema.
026: // Generated on: 2006.08.10 at 02:34:36 PM IST
027: //
028:
029: package com.sun.xml.ws.security.soap11;
030:
031: import java.util.ArrayList;
032: import java.util.HashMap;
033: import java.util.List;
034: import java.util.Map;
035: import javax.xml.bind.annotation.XmlAccessType;
036: import javax.xml.bind.annotation.XmlAccessorType;
037: import javax.xml.bind.annotation.XmlAnyAttribute;
038: import javax.xml.bind.annotation.XmlAnyElement;
039: import javax.xml.bind.annotation.XmlElement;
040: import javax.xml.bind.annotation.XmlType;
041: import javax.xml.namespace.QName;
042:
043: /**
044: * <p>Java class for Envelope complex type.
045: *
046: * <p>The following schema fragment specifies the expected content contained within this class.
047: *
048: * <pre>
049: * <complexType name="Envelope">
050: * <complexContent>
051: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
052: * <sequence>
053: * <element ref="{http://schemas.xmlsoap.org/soap/envelope/}Header" minOccurs="0"/>
054: * <element ref="{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
055: * <any/>
056: * </sequence>
057: * </restriction>
058: * </complexContent>
059: * </complexType>
060: * </pre>
061: *
062: *
063: */
064: @XmlAccessorType(XmlAccessType.FIELD)
065: @XmlType(name="Envelope",propOrder={"header","body","any"})
066: public class Envelope {
067:
068: @XmlElement(name="Header",namespace="http://schemas.xmlsoap.org/soap/envelope/")
069: protected Header header;
070: @XmlElement(name="Body",namespace="http://schemas.xmlsoap.org/soap/envelope/",required=true)
071: protected Body body;
072: @XmlAnyElement(lax=true)
073: protected List<Object> any;
074: @XmlAnyAttribute
075: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
076:
077: /**
078: * Gets the value of the header property.
079: *
080: * @return
081: * possible object is
082: * {@link Header }
083: *
084: */
085: public Header getHeader() {
086: return header;
087: }
088:
089: /**
090: * Sets the value of the header property.
091: *
092: * @param value
093: * allowed object is
094: * {@link Header }
095: *
096: */
097: public void setHeader(Header value) {
098: this .header = value;
099: }
100:
101: /**
102: * Gets the value of the body property.
103: *
104: * @return
105: * possible object is
106: * {@link Body }
107: *
108: */
109: public Body getBody() {
110: return body;
111: }
112:
113: /**
114: * Sets the value of the body property.
115: *
116: * @param value
117: * allowed object is
118: * {@link Body }
119: *
120: */
121: public void setBody(Body value) {
122: this .body = value;
123: }
124:
125: /**
126: * Gets the value of the any property.
127: *
128: * <p>
129: * This accessor method returns a reference to the live list,
130: * not a snapshot. Therefore any modification you make to the
131: * returned list will be present inside the JAXB object.
132: * This is why there is not a <CODE>set</CODE> method for the any property.
133: *
134: * <p>
135: * For example, to add a new item, do as follows:
136: * <pre>
137: * getAny().add(newItem);
138: * </pre>
139: *
140: *
141: * <p>
142: * Objects of the following type(s) are allowed in the list
143: * {@link Element }
144: * {@link Object }
145: *
146: *
147: */
148: public List<Object> getAny() {
149: if (any == null) {
150: any = new ArrayList<Object>();
151: }
152: return this .any;
153: }
154:
155: /**
156: * Gets a map that contains attributes that aren't bound to any typed property on this class.
157: *
158: * <p>
159: * the map is keyed by the name of the attribute and
160: * the value is the string value of the attribute.
161: *
162: * the map returned by this method is live, and you can add new attribute
163: * by updating the map directly. Because of this design, there's no setter.
164: *
165: *
166: * @return
167: * always non-null
168: */
169: public Map<QName, String> getOtherAttributes() {
170: return otherAttributes;
171: }
172:
173: }
|