This project has retired. For details please refer to its Attic page.
KeyValueType xref
View Javadoc
1   /*
2    * Copyright 2001-2008 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  
18  
19  package org.w3._2000._09.xmldsig_;
20  
21  import java.util.ArrayList;
22  import java.util.List;
23  import javax.xml.bind.JAXBElement;
24  import javax.xml.bind.annotation.XmlAccessType;
25  import javax.xml.bind.annotation.XmlAccessorType;
26  import javax.xml.bind.annotation.XmlAnyElement;
27  import javax.xml.bind.annotation.XmlElementRef;
28  import javax.xml.bind.annotation.XmlElementRefs;
29  import javax.xml.bind.annotation.XmlMixed;
30  import javax.xml.bind.annotation.XmlType;
31  import org.w3c.dom.Element;
32  
33  
34  /**
35   * <p>Java class for KeyValueType complex type.
36   * 
37   * <p>The following schema fragment specifies the expected content contained within this class.
38   * 
39   * <pre>
40   * &lt;complexType name="KeyValueType">
41   *   &lt;complexContent>
42   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43   *       &lt;choice>
44   *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}DSAKeyValue"/>
45   *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}RSAKeyValue"/>
46   *         &lt;any/>
47   *       &lt;/choice>
48   *     &lt;/restriction>
49   *   &lt;/complexContent>
50   * &lt;/complexType>
51   * </pre>
52   * 
53   * 
54   */
55  @XmlAccessorType(XmlAccessType.FIELD)
56  @XmlType(name = "KeyValueType", propOrder = {
57      "content"
58  })
59  public class KeyValueType {
60  
61      @XmlElementRefs({
62          @XmlElementRef(name = "DSAKeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
63          @XmlElementRef(name = "RSAKeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class)
64      })
65      @XmlMixed
66      @XmlAnyElement(lax = true)
67      protected List<Object> content;
68  
69      /**
70       * Gets the value of the content property.
71       * 
72       * <p>
73       * This accessor method returns a reference to the live list,
74       * not a snapshot. Therefore any modification you make to the
75       * returned list will be present inside the JAXB object.
76       * This is why there is not a <CODE>set</CODE> method for the content property.
77       * 
78       * <p>
79       * For example, to add a new item, do as follows:
80       * <pre>
81       *    getContent().add(newItem);
82       * </pre>
83       * 
84       * 
85       * <p>
86       * Objects of the following type(s) are allowed in the list
87       * {@link String }
88       * {@link JAXBElement }{@code <}{@link DSAKeyValueType }{@code >}
89       * {@link Object }
90       * {@link Element }
91       * {@link JAXBElement }{@code <}{@link RSAKeyValueType }{@code >}
92       * 
93       * 
94       */
95      public List<Object> getContent() {
96          if (content == null) {
97              content = new ArrayList<Object>();
98          }
99          return this.content;
100     }
101 
102 }