001: package org.w3._2002._03.xkms_;
002:
003: import java.util.ArrayList;
004: import java.util.List;
005:
006: import javax.xml.bind.annotation.XmlAccessType;
007: import javax.xml.bind.annotation.XmlAccessorType;
008: import javax.xml.bind.annotation.XmlAttribute;
009: import javax.xml.bind.annotation.XmlElement;
010: import javax.xml.bind.annotation.XmlID;
011: import javax.xml.bind.annotation.XmlSchemaType;
012: import javax.xml.bind.annotation.XmlType;
013: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
014: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
015:
016: import org.w3._2000._09.xmldsig_.KeyInfoType;
017:
018: /**
019: * <p>Java class for KeyBindingAbstractType complex type.
020: *
021: * <p>The following schema fragment specifies the expected content contained within this class.
022: *
023: * <pre>
024: * <complexType name="KeyBindingAbstractType">
025: * <complexContent>
026: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
027: * <sequence>
028: * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
029: * <element ref="{http://www.w3.org/2002/03/xkms#}KeyUsage" maxOccurs="3" minOccurs="0"/>
030: * <element ref="{http://www.w3.org/2002/03/xkms#}UseKeyWith" maxOccurs="unbounded" minOccurs="0"/>
031: * </sequence>
032: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
033: * </restriction>
034: * </complexContent>
035: * </complexType>
036: * </pre>
037: *
038: *
039: */
040: @XmlAccessorType(XmlAccessType.FIELD)
041: @XmlType(name="KeyBindingAbstractType",propOrder={"keyInfo","keyUsage","useKeyWith"})
042: /*@XmlSeeAlso({
043: QueryKeyBindingType.class,
044: PrototypeKeyBindingType.class,
045: UnverifiedKeyBindingType.class
046: })*/
047: public abstract class KeyBindingAbstractType {
048:
049: @XmlElement(name="KeyInfo",namespace="http://www.w3.org/2000/09/xmldsig#")
050: protected KeyInfoType keyInfo;
051: @XmlElement(name="KeyUsage")
052: protected List<String> keyUsage;
053: @XmlElement(name="UseKeyWith")
054: protected List<UseKeyWithType> useKeyWith;
055: @XmlAttribute(name="Id")
056: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
057: @XmlID
058: @XmlSchemaType(name="ID")
059: protected String id;
060:
061: /**
062: * Gets the value of the keyInfo property.
063: *
064: * @return
065: * possible object is
066: * {@link KeyInfoType }
067: *
068: */
069: public KeyInfoType getKeyInfo() {
070: return keyInfo;
071: }
072:
073: /**
074: * Sets the value of the keyInfo property.
075: *
076: * @param value
077: * allowed object is
078: * {@link KeyInfoType }
079: *
080: */
081: public void setKeyInfo(KeyInfoType value) {
082: this .keyInfo = value;
083: }
084:
085: /**
086: * Gets the value of the keyUsage property.
087: *
088: * <p>
089: * This accessor method returns a reference to the live list,
090: * not a snapshot. Therefore any modification you make to the
091: * returned list will be present inside the JAXB object.
092: * This is why there is not a <CODE>set</CODE> method for the keyUsage property.
093: *
094: * <p>
095: * For example, to add a new item, do as follows:
096: * <pre>
097: * getKeyUsage().add(newItem);
098: * </pre>
099: *
100: *
101: * <p>
102: * Objects of the following type(s) are allowed in the list
103: * {@link String }
104: *
105: *
106: */
107: public List<String> getKeyUsage() {
108: if (keyUsage == null) {
109: keyUsage = new ArrayList<String>();
110: }
111: return this .keyUsage;
112: }
113:
114: /**
115: * Gets the value of the useKeyWith property.
116: *
117: * <p>
118: * This accessor method returns a reference to the live list,
119: * not a snapshot. Therefore any modification you make to the
120: * returned list will be present inside the JAXB object.
121: * This is why there is not a <CODE>set</CODE> method for the useKeyWith property.
122: *
123: * <p>
124: * For example, to add a new item, do as follows:
125: * <pre>
126: * getUseKeyWith().add(newItem);
127: * </pre>
128: *
129: *
130: * <p>
131: * Objects of the following type(s) are allowed in the list
132: * {@link UseKeyWithType }
133: *
134: *
135: */
136: public List<UseKeyWithType> getUseKeyWith() {
137: if (useKeyWith == null) {
138: useKeyWith = new ArrayList<UseKeyWithType>();
139: }
140: return this .useKeyWith;
141: }
142:
143: /**
144: * Gets the value of the id property.
145: *
146: * @return
147: * possible object is
148: * {@link String }
149: *
150: */
151: public String getId() {
152: return id;
153: }
154:
155: /**
156: * Sets the value of the id property.
157: *
158: * @param value
159: * allowed object is
160: * {@link String }
161: *
162: */
163: public void setId(String value) {
164: this.id = value;
165: }
166:
167: }
|