KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3 > _2000 > _09 > xmldsig_ > DigestMethodType


1
2 package org.w3._2000._09.xmldsig_;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6 import javax.xml.bind.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlAnyElement;
9 import javax.xml.bind.annotation.XmlAttribute;
10 import javax.xml.bind.annotation.XmlMixed;
11 import javax.xml.bind.annotation.XmlSchemaType;
12 import javax.xml.bind.annotation.XmlType;
13 import org.w3c.dom.Element JavaDoc;
14
15
16 /**
17  * <p>Java class for DigestMethodType complex type.
18  *
19  * <p>The following schema fragment specifies the expected content contained within this class.
20  *
21  * <pre>
22  * &lt;complexType name="DigestMethodType">
23  * &lt;complexContent>
24  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25  * &lt;sequence>
26  * &lt;any/>
27  * &lt;/sequence>
28  * &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
29  * &lt;/restriction>
30  * &lt;/complexContent>
31  * &lt;/complexType>
32  * </pre>
33  *
34  *
35  */

36 @XmlAccessorType(XmlAccessType.FIELD)
37 @XmlType(name = "DigestMethodType", propOrder = {
38     "content"
39 })
40 public class DigestMethodType {
41
42     @XmlMixed
43     @XmlAnyElement(lax = true)
44     protected List JavaDoc<Object JavaDoc> content;
45     @XmlAttribute(name = "Algorithm", required = true)
46     @XmlSchemaType(name = "anyURI")
47     protected String JavaDoc algorithm;
48
49     /**
50      * Gets the value of the content property.
51      *
52      * <p>
53      * This accessor method returns a reference to the live list,
54      * not a snapshot. Therefore any modification you make to the
55      * returned list will be present inside the JAXB object.
56      * This is why there is not a <CODE>set</CODE> method for the content property.
57      *
58      * <p>
59      * For example, to add a new item, do as follows:
60      * <pre>
61      * getContent().add(newItem);
62      * </pre>
63      *
64      *
65      * <p>
66      * Objects of the following type(s) are allowed in the list
67      * {@link String }
68      * {@link Element }
69      * {@link Object }
70      *
71      *
72      */

73     public List JavaDoc<Object JavaDoc> getContent() {
74         if (content == null) {
75             content = new ArrayList JavaDoc<Object JavaDoc>();
76         }
77         return this.content;
78     }
79
80     /**
81      * Gets the value of the algorithm property.
82      *
83      * @return
84      * possible object is
85      * {@link String }
86      *
87      */

88     public String JavaDoc getAlgorithm() {
89         return algorithm;
90     }
91
92     /**
93      * Sets the value of the algorithm property.
94      *
95      * @param value
96      * allowed object is
97      * {@link String }
98      *
99      */

100     public void setAlgorithm(String JavaDoc value) {
101         this.algorithm = value;
102     }
103
104 }
105
Popular Tags