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.annotation.XmlAccessType;
24  import javax.xml.bind.annotation.XmlAccessorType;
25  import javax.xml.bind.annotation.XmlAnyElement;
26  import javax.xml.bind.annotation.XmlAttribute;
27  import javax.xml.bind.annotation.XmlMixed;
28  import javax.xml.bind.annotation.XmlSchemaType;
29  import javax.xml.bind.annotation.XmlType;
30  import org.w3c.dom.Element;
31  
32  
33  /**
34   * <p>Java class for DigestMethodType complex type.
35   * 
36   * <p>The following schema fragment specifies the expected content contained within this class.
37   * 
38   * <pre>
39   * &lt;complexType name="DigestMethodType">
40   *   &lt;complexContent>
41   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42   *       &lt;sequence>
43   *         &lt;any/>
44   *       &lt;/sequence>
45   *       &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
46   *     &lt;/restriction>
47   *   &lt;/complexContent>
48   * &lt;/complexType>
49   * </pre>
50   * 
51   * 
52   */
53  @XmlAccessorType(XmlAccessType.FIELD)
54  @XmlType(name = "DigestMethodType", propOrder = {
55      "content"
56  })
57  public class DigestMethodType {
58  
59      @XmlMixed
60      @XmlAnyElement(lax = true)
61      protected List<Object> content;
62      @XmlAttribute(name = "Algorithm", required = true)
63      @XmlSchemaType(name = "anyURI")
64      protected String algorithm;
65  
66      /**
67       * Gets the value of the content property.
68       * 
69       * <p>
70       * This accessor method returns a reference to the live list,
71       * not a snapshot. Therefore any modification you make to the
72       * returned list will be present inside the JAXB object.
73       * This is why there is not a <CODE>set</CODE> method for the content property.
74       * 
75       * <p>
76       * For example, to add a new item, do as follows:
77       * <pre>
78       *    getContent().add(newItem);
79       * </pre>
80       * 
81       * 
82       * <p>
83       * Objects of the following type(s) are allowed in the list
84       * {@link String }
85       * {@link Object }
86       * {@link Element }
87       * 
88       * 
89       */
90      public List<Object> getContent() {
91          if (content == null) {
92              content = new ArrayList<Object>();
93          }
94          return this.content;
95      }
96  
97      /**
98       * Gets the value of the algorithm property.
99       * 
100      * @return
101      *     possible object is
102      *     {@link String }
103      *     
104      */
105     public String getAlgorithm() {
106         return algorithm;
107     }
108 
109     /**
110      * Sets the value of the algorithm property.
111      * 
112      * @param value
113      *     allowed object is
114      *     {@link String }
115      *     
116      */
117     public void setAlgorithm(String value) {
118         this.algorithm = value;
119     }
120 
121 }