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-b24-ea3
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.01.20 at 03:59:03 PM IST
028: //
029:
030: package com.sun.xml.security.core.dsig;
031:
032: import java.util.ArrayList;
033: import java.util.List;
034:
035: import javax.xml.bind.annotation.XmlAccessType;
036: import javax.xml.bind.annotation.XmlAccessorType;
037: import javax.xml.bind.annotation.XmlAnyElement;
038: import javax.xml.bind.annotation.XmlElementRef;
039: import javax.xml.bind.annotation.XmlElementRefs;
040: import javax.xml.bind.annotation.XmlMixed;
041: import javax.xml.bind.annotation.XmlRootElement;
042: import javax.xml.bind.annotation.XmlType;
043:
044: /**
045: * <p>Java class for KeyValueType complex type.
046: *
047: * <p>The following schema fragment specifies the expected content contained within this class.
048: *
049: * <pre>
050: * <complexType name="KeyValueType">
051: * <complexContent>
052: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
053: * <choice>
054: * <element ref="{http://www.w3.org/2000/09/xmldsig#}DSAKeyValue"/>
055: * <element ref="{http://www.w3.org/2000/09/xmldsig#}RSAKeyValue"/>
056: * <any/>
057: * </choice>
058: * </restriction>
059: * </complexContent>
060: * </complexType>
061: * </pre>
062: *
063: *
064: */
065: @XmlRootElement(name="KeyValueType")
066: @XmlAccessorType(XmlAccessType.FIELD)
067: @XmlType(name="KeyValueType",propOrder={"content"})
068: public class KeyValueType {
069:
070: @XmlElementRefs({@XmlElementRef(name="RSAKeyValue",namespace="http://www.w3.org/2000/09/xmldsig#",type=com.sun.xml.ws.security.opt.crypto.dsig.keyinfo.RSAKeyValue.class),@XmlElementRef(name="DSAKeyValue",namespace="http://www.w3.org/2000/09/xmldsig#",type=com.sun.xml.ws.security.opt.crypto.dsig.keyinfo.DSAKeyValue.class)})
071: @XmlMixed
072: @XmlAnyElement(lax=true)
073: protected List<Object> content;
074:
075: /**
076: * Gets the value of the content property.
077: *
078: * <p>
079: * This accessor method returns a reference to the live list,
080: * not a snapshot. Therefore any modification you make to the
081: * returned list will be present inside the JAXB object.
082: * This is why there is not a <CODE>set</CODE> method for the content property.
083: *
084: * <p>
085: * For example, to add a new item, do as follows:
086: * <pre>
087: * getContent().add(newItem);
088: * </pre>
089: *
090: *
091: * <p>
092: * Objects of the following type(s) are allowed in the list
093: * {@link Object }
094: * {@link JAXBElement }{@code <}{@link DSAKeyValueType }{@code >}
095: * {@link JAXBElement }{@code <}{@link RSAKeyValueType }{@code >}
096: * {@link String }
097: * {@link Element }
098: *
099: *
100: */
101: public List<Object> getContent() {
102: if (content == null) {
103: content = new ArrayList<Object>();
104: }
105: return this.content;
106: }
107:
108: }
|