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