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.soap12;
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.XmlType;
040: import javax.xml.namespace.QName;
041:
042: /**
043: * <p>Java class for Body complex type.
044: *
045: * <p>The following schema fragment specifies the expected content contained within this class.
046: *
047: * <pre>
048: * <complexType name="Body">
049: * <complexContent>
050: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
051: * <sequence>
052: * <any/>
053: * </sequence>
054: * </restriction>
055: * </complexContent>
056: * </complexType>
057: * </pre>
058: *
059: *
060: */
061: @XmlAccessorType(XmlAccessType.FIELD)
062: @XmlType(name="Body",propOrder={"any"})
063: public class Body {
064:
065: @XmlAnyElement(lax=true)
066: protected List<Object> any;
067: @XmlAnyAttribute
068: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
069:
070: /**
071: * Gets the value of the any property.
072: *
073: * <p>
074: * This accessor method returns a reference to the live list,
075: * not a snapshot. Therefore any modification you make to the
076: * returned list will be present inside the JAXB object.
077: * This is why there is not a <CODE>set</CODE> method for the any property.
078: *
079: * <p>
080: * For example, to add a new item, do as follows:
081: * <pre>
082: * getAny().add(newItem);
083: * </pre>
084: *
085: *
086: * <p>
087: * Objects of the following type(s) are allowed in the list
088: * {@link Element }
089: * {@link Object }
090: *
091: *
092: */
093: public List<Object> getAny() {
094: if (any == null) {
095: any = new ArrayList<Object>();
096: }
097: return this .any;
098: }
099:
100: /**
101: * Gets a map that contains attributes that aren't bound to any typed property on this class.
102: *
103: * <p>
104: * the map is keyed by the name of the attribute and
105: * the value is the string value of the attribute.
106: *
107: * the map returned by this method is live, and you can add new attribute
108: * by updating the map directly. Because of this design, there's no setter.
109: *
110: *
111: * @return
112: * always non-null
113: */
114: public Map<QName, String> getOtherAttributes() {
115: return otherAttributes;
116: }
117:
118: }
|