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