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_.SignatureType;
017:
018: /**
019: * <p>Java class for MessageAbstractType complex type.
020: *
021: * <p>The following schema fragment specifies the expected content contained within this class.
022: *
023: * <pre>
024: * <complexType name="MessageAbstractType">
025: * <complexContent>
026: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
027: * <sequence>
028: * <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
029: * <element ref="{http://www.w3.org/2002/03/xkms#}MessageExtension" maxOccurs="unbounded" minOccurs="0"/>
030: * <element ref="{http://www.w3.org/2002/03/xkms#}OpaqueClientData" minOccurs="0"/>
031: * </sequence>
032: * <attribute name="Id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
033: * <attribute name="Service" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
034: * <attribute name="Nonce" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
035: * </restriction>
036: * </complexContent>
037: * </complexType>
038: * </pre>
039: *
040: *
041: */
042:
043: @XmlAccessorType(XmlAccessType.FIELD)
044: @XmlType(name="MessageAbstractType",propOrder={"signature","messageExtension","opaqueClientData"})
045: /*@XmlSeeAlso({
046: ResultType.class,
047: RequestAbstractType.class
048: })*/
049: public abstract class MessageAbstractType {
050:
051: @XmlElement(name="Signature",namespace="http://www.w3.org/2000/09/xmldsig#")
052: protected SignatureType signature;
053: @XmlElement(name="MessageExtension")
054: protected List<MessageExtensionAbstractType> messageExtension;
055: @XmlElement(name="OpaqueClientData")
056: protected OpaqueClientDataType opaqueClientData;
057: @XmlAttribute(name="Id",required=true)
058: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
059: @XmlID
060: @XmlSchemaType(name="ID")
061: protected String id;
062: @XmlAttribute(name="Service",required=true)
063: @XmlSchemaType(name="anyURI")
064: protected String service;
065: @XmlAttribute(name="Nonce")
066: protected byte[] nonce;
067:
068: /**
069: * Gets the value of the signature property.
070: *
071: * @return
072: * possible object is
073: * {@link SignatureType }
074: *
075: */
076: public SignatureType getSignature() {
077: return signature;
078: }
079:
080: /**
081: * Sets the value of the signature property.
082: *
083: * @param value
084: * allowed object is
085: * {@link SignatureType }
086: *
087: */
088: public void setSignature(SignatureType value) {
089: this .signature = value;
090: }
091:
092: /**
093: * Gets the value of the messageExtension property.
094: *
095: * <p>
096: * This accessor method returns a reference to the live list,
097: * not a snapshot. Therefore any modification you make to the
098: * returned list will be present inside the JAXB object.
099: * This is why there is not a <CODE>set</CODE> method for the messageExtension property.
100: *
101: * <p>
102: * For example, to add a new item, do as follows:
103: * <pre>
104: * getMessageExtension().add(newItem);
105: * </pre>
106: *
107: *
108: * <p>
109: * Objects of the following type(s) are allowed in the list
110: * {@link MessageExtensionAbstractType }
111: *
112: *
113: */
114: public List<MessageExtensionAbstractType> getMessageExtension() {
115: if (messageExtension == null) {
116: messageExtension = new ArrayList<MessageExtensionAbstractType>();
117: }
118: return this .messageExtension;
119: }
120:
121: /**
122: * Gets the value of the opaqueClientData property.
123: *
124: * @return
125: * possible object is
126: * {@link OpaqueClientDataType }
127: *
128: */
129: public OpaqueClientDataType getOpaqueClientData() {
130: return opaqueClientData;
131: }
132:
133: /**
134: * Sets the value of the opaqueClientData property.
135: *
136: * @param value
137: * allowed object is
138: * {@link OpaqueClientDataType }
139: *
140: */
141: public void setOpaqueClientData(OpaqueClientDataType value) {
142: this .opaqueClientData = value;
143: }
144:
145: /**
146: * Gets the value of the id property.
147: *
148: * @return
149: * possible object is
150: * {@link String }
151: *
152: */
153: public String getId() {
154: return id;
155: }
156:
157: /**
158: * Sets the value of the id property.
159: *
160: * @param value
161: * allowed object is
162: * {@link String }
163: *
164: */
165: public void setId(String value) {
166: this .id = value;
167: }
168:
169: /**
170: * Gets the value of the service property.
171: *
172: * @return
173: * possible object is
174: * {@link String }
175: *
176: */
177: public String getService() {
178: return service;
179: }
180:
181: /**
182: * Sets the value of the service property.
183: *
184: * @param value
185: * allowed object is
186: * {@link String }
187: *
188: */
189: public void setService(String value) {
190: this .service = value;
191: }
192:
193: /**
194: * Gets the value of the nonce property.
195: *
196: * @return
197: * possible object is
198: * byte[]
199: */
200: public byte[] getNonce() {
201: return nonce;
202: }
203:
204: /**
205: * Sets the value of the nonce property.
206: *
207: * @param value
208: * allowed object is
209: * byte[]
210: */
211: public void setNonce(byte[] value) {
212: this .nonce = ((byte[]) value);
213: }
214:
215: }
|