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: //
024: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
025: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
026: // Any modifications to this file will be lost upon recompilation of the source schema.
027: // Generated on: 2006.08.10 at 02:34:36 PM IST
028: //
029:
030: package com.sun.xml.ws.security.secext10;
031:
032: import java.util.ArrayList;
033: import java.util.HashMap;
034: import java.util.List;
035: import java.util.Map;
036: import javax.xml.bind.annotation.XmlAccessType;
037: import javax.xml.bind.annotation.XmlAccessorType;
038: import javax.xml.bind.annotation.XmlAnyAttribute;
039: import javax.xml.bind.annotation.XmlAnyElement;
040: import javax.xml.bind.annotation.XmlAttribute;
041: import javax.xml.bind.annotation.XmlID;
042: import javax.xml.bind.annotation.XmlType;
043: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
044: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
045: import javax.xml.namespace.QName;
046:
047: /**
048: * This type is used reference a security token.
049: *
050: * <p>Java class for SecurityTokenReferenceType complex type.
051: *
052: * <p>The following schema fragment specifies the expected content contained within this class.
053: *
054: * <pre>
055: * <complexType name="SecurityTokenReferenceType">
056: * <complexContent>
057: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
058: * <choice maxOccurs="unbounded" minOccurs="0">
059: * <any/>
060: * </choice>
061: * <attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Usage"/>
062: * <attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/>
063: * </restriction>
064: * </complexContent>
065: * </complexType>
066: * </pre>
067: *
068: *
069: */
070: @XmlAccessorType(XmlAccessType.FIELD)
071: @XmlType(name="SecurityTokenReferenceType",propOrder={"any"})
072: public class SecurityTokenReferenceType {
073:
074: @XmlAnyElement(lax=true)
075: protected List<Object> any;
076: @XmlAttribute(name="Usage",namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd")
077: protected List<String> usage;
078: @XmlAttribute(name="Id",namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
079: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
080: @XmlID
081: protected String id;
082: @XmlAnyAttribute
083: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
084:
085: /**
086: * Gets the value of the any property.
087: *
088: * <p>
089: * This accessor method returns a reference to the live list,
090: * not a snapshot. Therefore any modification you make to the
091: * returned list will be present inside the JAXB object.
092: * This is why there is not a <CODE>set</CODE> method for the any property.
093: *
094: * <p>
095: * For example, to add a new item, do as follows:
096: * <pre>
097: * getAny().add(newItem);
098: * </pre>
099: *
100: *
101: * <p>
102: * Objects of the following type(s) are allowed in the list
103: * {@link Element }
104: * {@link Object }
105: *
106: *
107: */
108: public List<Object> getAny() {
109: if (any == null) {
110: any = new ArrayList<Object>();
111: }
112: return this .any;
113: }
114:
115: /**
116: * Gets the value of the usage property.
117: *
118: * <p>
119: * This accessor method returns a reference to the live list,
120: * not a snapshot. Therefore any modification you make to the
121: * returned list will be present inside the JAXB object.
122: * This is why there is not a <CODE>set</CODE> method for the usage property.
123: *
124: * <p>
125: * For example, to add a new item, do as follows:
126: * <pre>
127: * getUsage().add(newItem);
128: * </pre>
129: *
130: *
131: * <p>
132: * Objects of the following type(s) are allowed in the list
133: * {@link String }
134: *
135: *
136: */
137: public List<String> getUsage() {
138: if (usage == null) {
139: usage = new ArrayList<String>();
140: }
141: return this .usage;
142: }
143:
144: /**
145: * Gets the value of the id property.
146: *
147: * @return
148: * possible object is
149: * {@link String }
150: *
151: */
152: public String getId() {
153: return id;
154: }
155:
156: /**
157: * Sets the value of the id property.
158: *
159: * @param value
160: * allowed object is
161: * {@link String }
162: *
163: */
164: public void setId(String value) {
165: this .id = value;
166: }
167:
168: /**
169: * Gets a map that contains attributes that aren't bound to any typed property on this class.
170: *
171: * <p>
172: * the map is keyed by the name of the attribute and
173: * the value is the string value of the attribute.
174: *
175: * the map returned by this method is live, and you can add new attribute
176: * by updating the map directly. Because of this design, there's no setter.
177: *
178: *
179: * @return
180: * always non-null
181: */
182: public Map<QName, String> getOtherAttributes() {
183: return otherAttributes;
184: }
185:
186: }
|