KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3 > _2001 > _04 > xmlenc_ > AgreementMethodType


1
2 package org.w3._2001._04.xmlenc_;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.ArrayList JavaDoc;
6 import java.util.List JavaDoc;
7 import javax.xml.bind.JAXBElement;
8 import javax.xml.bind.annotation.XmlAccessType;
9 import javax.xml.bind.annotation.XmlAccessorType;
10 import javax.xml.bind.annotation.XmlAttribute;
11 import javax.xml.bind.annotation.XmlElementRef;
12 import javax.xml.bind.annotation.XmlElementRefs;
13 import javax.xml.bind.annotation.XmlMixed;
14 import javax.xml.bind.annotation.XmlSchemaType;
15 import javax.xml.bind.annotation.XmlType;
16 import org.w3._2000._09.xmldsig_.DigestMethodType;
17 import org.w3._2000._09.xmldsig_.KeyInfoType;
18
19
20 /**
21  * <p>Java class for AgreementMethodType complex type.
22  *
23  * <p>The following schema fragment specifies the expected content contained within this class.
24  *
25  * <pre>
26  * &lt;complexType name="AgreementMethodType">
27  * &lt;complexContent>
28  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29  * &lt;sequence>
30  * &lt;element name="KA-Nonce" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
31  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}DigestMethod" minOccurs="0"/>
32  * &lt;element name="OriginatorKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
33  * &lt;element name="RecipientKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
34  * &lt;/sequence>
35  * &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
36  * &lt;/restriction>
37  * &lt;/complexContent>
38  * &lt;/complexType>
39  * </pre>
40  *
41  *
42  */

43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "AgreementMethodType", propOrder = {
45     "content"
46 })
47 public class AgreementMethodType {
48
49     @XmlElementRefs({
50         @XmlElementRef(name = "OriginatorKeyInfo", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class),
51         @XmlElementRef(name = "RecipientKeyInfo", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class),
52         @XmlElementRef(name = "KA-Nonce", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class),
53         @XmlElementRef(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class)
54     })
55     @XmlMixed
56     protected List JavaDoc<Serializable JavaDoc> content;
57     @XmlAttribute(name = "Algorithm", required = true)
58     @XmlSchemaType(name = "anyURI")
59     protected String JavaDoc algorithm;
60
61     /**
62      * Gets the value of the content property.
63      *
64      * <p>
65      * This accessor method returns a reference to the live list,
66      * not a snapshot. Therefore any modification you make to the
67      * returned list will be present inside the JAXB object.
68      * This is why there is not a <CODE>set</CODE> method for the content property.
69      *
70      * <p>
71      * For example, to add a new item, do as follows:
72      * <pre>
73      * getContent().add(newItem);
74      * </pre>
75      *
76      *
77      * <p>
78      * Objects of the following type(s) are allowed in the list
79      * {@link String }
80      * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
81      * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
82      * {@link JAXBElement }{@code <}{@link DigestMethodType }{@code >}
83      * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
84      *
85      *
86      */

87     public List JavaDoc<Serializable JavaDoc> getContent() {
88         if (content == null) {
89             content = new ArrayList JavaDoc<Serializable JavaDoc>();
90         }
91         return this.content;
92     }
93
94     /**
95      * Gets the value of the algorithm property.
96      *
97      * @return
98      * possible object is
99      * {@link String }
100      *
101      */

102     public String JavaDoc getAlgorithm() {
103         return algorithm;
104     }
105
106     /**
107      * Sets the value of the algorithm property.
108      *
109      * @param value
110      * allowed object is
111      * {@link String }
112      *
113      */

114     public void setAlgorithm(String JavaDoc value) {
115         this.algorithm = value;
116     }
117
118 }
119
Popular Tags