KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3 > _2002 > _03 > xkms_ > KeyBindingAbstractType


1
2 package org.w3._2002._03.xkms_;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlAttribute;
10 import javax.xml.bind.annotation.XmlElement;
11 import javax.xml.bind.annotation.XmlID;
12 import javax.xml.bind.annotation.XmlSchemaType;
13 import javax.xml.bind.annotation.XmlType;
14 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
15 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
16
17 import org.w3._2000._09.xmldsig_.KeyInfoType;
18
19
20 /**
21  * <p>Java class for KeyBindingAbstractType complex type.
22  *
23  * <p>The following schema fragment specifies the expected content contained within this class.
24  *
25  * <pre>
26  * &lt;complexType name="KeyBindingAbstractType">
27  * &lt;complexContent>
28  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29  * &lt;sequence>
30  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
31  * &lt;element ref="{http://www.w3.org/2002/03/xkms#}KeyUsage" maxOccurs="3" minOccurs="0"/>
32  * &lt;element ref="{http://www.w3.org/2002/03/xkms#}UseKeyWith" maxOccurs="unbounded" minOccurs="0"/>
33  * &lt;/sequence>
34  * &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
35  * &lt;/restriction>
36  * &lt;/complexContent>
37  * &lt;/complexType>
38  * </pre>
39  *
40  *
41  */

42 @XmlAccessorType(XmlAccessType.FIELD)
43 @XmlType(name = "KeyBindingAbstractType", propOrder = {
44     "keyInfo",
45     "keyUsage",
46     "useKeyWith"
47 })
48 /*@XmlSeeAlso({
49     QueryKeyBindingType.class,
50     PrototypeKeyBindingType.class,
51     UnverifiedKeyBindingType.class
52 })*/

53 public abstract class KeyBindingAbstractType {
54
55     @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#")
56     protected KeyInfoType keyInfo;
57     @XmlElement(name = "KeyUsage")
58     protected List JavaDoc<String JavaDoc> keyUsage;
59     @XmlElement(name = "UseKeyWith")
60     protected List JavaDoc<UseKeyWithType> useKeyWith;
61     @XmlAttribute(name = "Id")
62     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
63     @XmlID
64     @XmlSchemaType(name = "ID")
65     protected String JavaDoc id;
66
67     /**
68      * Gets the value of the keyInfo property.
69      *
70      * @return
71      * possible object is
72      * {@link KeyInfoType }
73      *
74      */

75     public KeyInfoType getKeyInfo() {
76         return keyInfo;
77     }
78
79     /**
80      * Sets the value of the keyInfo property.
81      *
82      * @param value
83      * allowed object is
84      * {@link KeyInfoType }
85      *
86      */

87     public void setKeyInfo(KeyInfoType value) {
88         this.keyInfo = value;
89     }
90
91     /**
92      * Gets the value of the keyUsage property.
93      *
94      * <p>
95      * This accessor method returns a reference to the live list,
96      * not a snapshot. Therefore any modification you make to the
97      * returned list will be present inside the JAXB object.
98      * This is why there is not a <CODE>set</CODE> method for the keyUsage property.
99      *
100      * <p>
101      * For example, to add a new item, do as follows:
102      * <pre>
103      * getKeyUsage().add(newItem);
104      * </pre>
105      *
106      *
107      * <p>
108      * Objects of the following type(s) are allowed in the list
109      * {@link String }
110      *
111      *
112      */

113     public List JavaDoc<String JavaDoc> getKeyUsage() {
114         if (keyUsage == null) {
115             keyUsage = new ArrayList JavaDoc<String JavaDoc>();
116         }
117         return this.keyUsage;
118     }
119
120     /**
121      * Gets the value of the useKeyWith property.
122      *
123      * <p>
124      * This accessor method returns a reference to the live list,
125      * not a snapshot. Therefore any modification you make to the
126      * returned list will be present inside the JAXB object.
127      * This is why there is not a <CODE>set</CODE> method for the useKeyWith property.
128      *
129      * <p>
130      * For example, to add a new item, do as follows:
131      * <pre>
132      * getUseKeyWith().add(newItem);
133      * </pre>
134      *
135      *
136      * <p>
137      * Objects of the following type(s) are allowed in the list
138      * {@link UseKeyWithType }
139      *
140      *
141      */

142     public List JavaDoc<UseKeyWithType> getUseKeyWith() {
143         if (useKeyWith == null) {
144             useKeyWith = new ArrayList JavaDoc<UseKeyWithType>();
145         }
146         return this.useKeyWith;
147     }
148
149     /**
150      * Gets the value of the id property.
151      *
152      * @return
153      * possible object is
154      * {@link String }
155      *
156      */

157     public String JavaDoc getId() {
158         return id;
159     }
160
161     /**
162      * Sets the value of the id property.
163      *
164      * @param value
165      * allowed object is
166      * {@link String }
167      *
168      */

169     public void setId(String JavaDoc value) {
170         this.id = value;
171     }
172
173 }
174
Popular Tags