001
002 package org.oasis_open.docs.wsrf.bf_2;
003
004 import java.util.ArrayList;
005 import java.util.HashMap;
006 import java.util.List;
007 import java.util.Map;
008 import javax.xml.bind.annotation.XmlAccessType;
009 import javax.xml.bind.annotation.XmlAccessorType;
010 import javax.xml.bind.annotation.XmlAnyAttribute;
011 import javax.xml.bind.annotation.XmlAnyElement;
012 import javax.xml.bind.annotation.XmlAttribute;
013 import javax.xml.bind.annotation.XmlElement;
014 import javax.xml.bind.annotation.XmlMixed;
015 import javax.xml.bind.annotation.XmlSchemaType;
016 import javax.xml.bind.annotation.XmlSeeAlso;
017 import javax.xml.bind.annotation.XmlType;
018 import javax.xml.bind.annotation.XmlValue;
019 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
020 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
021 import javax.xml.datatype.XMLGregorianCalendar;
022 import javax.xml.namespace.QName;
023 import javax.xml.ws.wsaddressing.W3CEndpointReference;
024 import org.oasis_open.docs.wsn.b_2.InvalidFilterFaultType;
025 import org.oasis_open.docs.wsn.b_2.InvalidMessageContentExpressionFaultType;
026 import org.oasis_open.docs.wsn.b_2.InvalidProducerPropertiesExpressionFaultType;
027 import org.oasis_open.docs.wsn.b_2.InvalidTopicExpressionFaultType;
028 import org.oasis_open.docs.wsn.b_2.MultipleTopicsSpecifiedFaultType;
029 import org.oasis_open.docs.wsn.b_2.NoCurrentMessageOnTopicFaultType;
030 import org.oasis_open.docs.wsn.b_2.NotifyMessageNotSupportedFaultType;
031 import org.oasis_open.docs.wsn.b_2.PauseFailedFaultType;
032 import org.oasis_open.docs.wsn.b_2.ResumeFailedFaultType;
033 import org.oasis_open.docs.wsn.b_2.SubscribeCreationFailedFaultType;
034 import org.oasis_open.docs.wsn.b_2.TopicExpressionDialectUnknownFaultType;
035 import org.oasis_open.docs.wsn.b_2.TopicNotSupportedFaultType;
036 import org.oasis_open.docs.wsn.b_2.UnableToCreatePullPointFaultType;
037 import org.oasis_open.docs.wsn.b_2.UnableToDestroyPullPointFaultType;
038 import org.oasis_open.docs.wsn.b_2.UnableToDestroySubscriptionFaultType;
039 import org.oasis_open.docs.wsn.b_2.UnableToGetMessagesFaultType;
040 import org.oasis_open.docs.wsn.b_2.UnacceptableInitialTerminationTimeFaultType;
041 import org.oasis_open.docs.wsn.b_2.UnacceptableTerminationTimeFaultType;
042 import org.oasis_open.docs.wsn.b_2.UnrecognizedPolicyRequestFaultType;
043 import org.oasis_open.docs.wsn.b_2.UnsupportedPolicyRequestFaultType;
044 import org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType;
045 import org.oasis_open.docs.wsn.br_2.PublisherRegistrationRejectedFaultType;
046 import org.oasis_open.docs.wsn.br_2.ResourceNotDestroyedFaultType;
047 import org.oasis_open.docs.wsrf.r_2.ResourceUnavailableFaultType;
048 import org.oasis_open.docs.wsrf.r_2.ResourceUnknownFaultType;
049 import org.oasis_open.docs.wsrf.rp_2.DeleteResourcePropertiesRequestFailedFaultType;
050 import org.oasis_open.docs.wsrf.rp_2.InsertResourcePropertiesRequestFailedFaultType;
051 import org.oasis_open.docs.wsrf.rp_2.InvalidModificationFaultType;
052 import org.oasis_open.docs.wsrf.rp_2.InvalidQueryExpressionFaultType;
053 import org.oasis_open.docs.wsrf.rp_2.InvalidResourcePropertyQNameFaultType;
054 import org.oasis_open.docs.wsrf.rp_2.QueryEvaluationErrorFaultType;
055 import org.oasis_open.docs.wsrf.rp_2.SetResourcePropertyRequestFailedFaultType;
056 import org.oasis_open.docs.wsrf.rp_2.UnableToModifyResourcePropertyFaultType;
057 import org.oasis_open.docs.wsrf.rp_2.UnableToPutResourcePropertyDocumentFaultType;
058 import org.oasis_open.docs.wsrf.rp_2.UnknownQueryExpressionDialectFaultType;
059 import org.oasis_open.docs.wsrf.rp_2.UpdateResourcePropertiesRequestFailedFaultType;
060 import org.w3c.dom.Element;
061
062
063 /**
064 * <p>Java class for BaseFaultType complex type.
065 *
066 * <p>The following schema fragment specifies the expected content contained within this class.
067 *
068 * <pre>
069 * <complexType name="BaseFaultType">
070 * <complexContent>
071 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
072 * <sequence>
073 * <any/>
074 * <element name="Timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
075 * <element name="Originator" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType" minOccurs="0"/>
076 * <element name="ErrorCode" minOccurs="0">
077 * <complexType>
078 * <complexContent>
079 * <extension base="{http://www.w3.org/2001/XMLSchema}anyType">
080 * <attribute name="dialect" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
081 * </extension>
082 * </complexContent>
083 * </complexType>
084 * </element>
085 * <element name="Description" maxOccurs="unbounded" minOccurs="0">
086 * <complexType>
087 * <simpleContent>
088 * <extension base="<http://www.w3.org/2001/XMLSchema>string">
089 * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
090 * </extension>
091 * </simpleContent>
092 * </complexType>
093 * </element>
094 * <element name="FaultCause" minOccurs="0">
095 * <complexType>
096 * <complexContent>
097 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
098 * <sequence>
099 * <any/>
100 * </sequence>
101 * </restriction>
102 * </complexContent>
103 * </complexType>
104 * </element>
105 * </sequence>
106 * </restriction>
107 * </complexContent>
108 * </complexType>
109 * </pre>
110 *
111 *
112 */
113 @XmlAccessorType(XmlAccessType.FIELD)
114 @XmlType(name = "BaseFaultType", propOrder = {
115 "any",
116 "timestamp",
117 "originator",
118 "errorCode",
119 "description",
120 "faultCause"
121 })
122 @XmlSeeAlso({
123 SetResourcePropertyRequestFailedFaultType.class,
124 InvalidModificationFaultType.class,
125 InvalidResourcePropertyQNameFaultType.class,
126 QueryEvaluationErrorFaultType.class,
127 UnableToPutResourcePropertyDocumentFaultType.class,
128 InvalidQueryExpressionFaultType.class,
129 UnableToModifyResourcePropertyFaultType.class,
130 InsertResourcePropertiesRequestFailedFaultType.class,
131 UnknownQueryExpressionDialectFaultType.class,
132 DeleteResourcePropertiesRequestFailedFaultType.class,
133 UpdateResourcePropertiesRequestFailedFaultType.class,
134 InvalidTopicExpressionFaultType.class,
135 ResumeFailedFaultType.class,
136 TopicExpressionDialectUnknownFaultType.class,
137 NotifyMessageNotSupportedFaultType.class,
138 UnableToGetMessagesFaultType.class,
139 UnrecognizedPolicyRequestFaultType.class,
140 MultipleTopicsSpecifiedFaultType.class,
141 UnableToDestroyPullPointFaultType.class,
142 NoCurrentMessageOnTopicFaultType.class,
143 InvalidFilterFaultType.class,
144 TopicNotSupportedFaultType.class,
145 UnacceptableInitialTerminationTimeFaultType.class,
146 PauseFailedFaultType.class,
147 InvalidMessageContentExpressionFaultType.class,
148 UnableToCreatePullPointFaultType.class,
149 UnacceptableTerminationTimeFaultType.class,
150 UnsupportedPolicyRequestFaultType.class,
151 UnableToDestroySubscriptionFaultType.class,
152 InvalidProducerPropertiesExpressionFaultType.class,
153 SubscribeCreationFailedFaultType.class,
154 ResourceUnavailableFaultType.class,
155 ResourceUnknownFaultType.class,
156 PublisherRegistrationRejectedFaultType.class,
157 ResourceNotDestroyedFaultType.class,
158 PublisherRegistrationFailedFaultType.class
159 })
160 public class BaseFaultType {
161
162 @XmlAnyElement(lax = true)
163 protected List<Object> any;
164 @XmlElement(name = "Timestamp", required = true)
165 @XmlSchemaType(name = "dateTime")
166 protected XMLGregorianCalendar timestamp;
167 @XmlElement(name = "Originator")
168 protected W3CEndpointReference originator;
169 @XmlElement(name = "ErrorCode")
170 protected BaseFaultType.ErrorCode errorCode;
171 @XmlElement(name = "Description")
172 protected List<BaseFaultType.Description> description;
173 @XmlElement(name = "FaultCause")
174 protected BaseFaultType.FaultCause faultCause;
175 @XmlAnyAttribute
176 private Map<QName, String> otherAttributes = new HashMap<QName, String>();
177
178 /**
179 * Gets the value of the any property.
180 *
181 * <p>
182 * This accessor method returns a reference to the live list,
183 * not a snapshot. Therefore any modification you make to the
184 * returned list will be present inside the JAXB object.
185 * This is why there is not a <CODE>set</CODE> method for the any property.
186 *
187 * <p>
188 * For example, to add a new item, do as follows:
189 * <pre>
190 * getAny().add(newItem);
191 * </pre>
192 *
193 *
194 * <p>
195 * Objects of the following type(s) are allowed in the list
196 * {@link Element }
197 * {@link Object }
198 *
199 *
200 */
201 public List<Object> getAny() {
202 if (any == null) {
203 any = new ArrayList<Object>();
204 }
205 return this.any;
206 }
207
208 /**
209 * Gets the value of the timestamp property.
210 *
211 * @return
212 * possible object is
213 * {@link XMLGregorianCalendar }
214 *
215 */
216 public XMLGregorianCalendar getTimestamp() {
217 return timestamp;
218 }
219
220 /**
221 * Sets the value of the timestamp property.
222 *
223 * @param value
224 * allowed object is
225 * {@link XMLGregorianCalendar }
226 *
227 */
228 public void setTimestamp(XMLGregorianCalendar value) {
229 this.timestamp = value;
230 }
231
232 /**
233 * Gets the value of the originator property.
234 *
235 * @return
236 * possible object is
237 * {@link W3CEndpointReference }
238 *
239 */
240 public W3CEndpointReference getOriginator() {
241 return originator;
242 }
243
244 /**
245 * Sets the value of the originator property.
246 *
247 * @param value
248 * allowed object is
249 * {@link W3CEndpointReference }
250 *
251 */
252 public void setOriginator(W3CEndpointReference value) {
253 this.originator = value;
254 }
255
256 /**
257 * Gets the value of the errorCode property.
258 *
259 * @return
260 * possible object is
261 * {@link BaseFaultType.ErrorCode }
262 *
263 */
264 public BaseFaultType.ErrorCode getErrorCode() {
265 return errorCode;
266 }
267
268 /**
269 * Sets the value of the errorCode property.
270 *
271 * @param value
272 * allowed object is
273 * {@link BaseFaultType.ErrorCode }
274 *
275 */
276 public void setErrorCode(BaseFaultType.ErrorCode value) {
277 this.errorCode = value;
278 }
279
280 /**
281 * Gets the value of the description property.
282 *
283 * <p>
284 * This accessor method returns a reference to the live list,
285 * not a snapshot. Therefore any modification you make to the
286 * returned list will be present inside the JAXB object.
287 * This is why there is not a <CODE>set</CODE> method for the description property.
288 *
289 * <p>
290 * For example, to add a new item, do as follows:
291 * <pre>
292 * getDescription().add(newItem);
293 * </pre>
294 *
295 *
296 * <p>
297 * Objects of the following type(s) are allowed in the list
298 * {@link BaseFaultType.Description }
299 *
300 *
301 */
302 public List<BaseFaultType.Description> getDescription() {
303 if (description == null) {
304 description = new ArrayList<BaseFaultType.Description>();
305 }
306 return this.description;
307 }
308
309 /**
310 * Gets the value of the faultCause property.
311 *
312 * @return
313 * possible object is
314 * {@link BaseFaultType.FaultCause }
315 *
316 */
317 public BaseFaultType.FaultCause getFaultCause() {
318 return faultCause;
319 }
320
321 /**
322 * Sets the value of the faultCause property.
323 *
324 * @param value
325 * allowed object is
326 * {@link BaseFaultType.FaultCause }
327 *
328 */
329 public void setFaultCause(BaseFaultType.FaultCause value) {
330 this.faultCause = value;
331 }
332
333 /**
334 * Gets a map that contains attributes that aren't bound to any typed property on this class.
335 *
336 * <p>
337 * the map is keyed by the name of the attribute and
338 * the value is the string value of the attribute.
339 *
340 * the map returned by this method is live, and you can add new attribute
341 * by updating the map directly. Because of this design, there's no setter.
342 *
343 *
344 * @return
345 * always non-null
346 */
347 public Map<QName, String> getOtherAttributes() {
348 return otherAttributes;
349 }
350
351
352 /**
353 * <p>Java class for anonymous complex type.
354 *
355 * <p>The following schema fragment specifies the expected content contained within this class.
356 *
357 * <pre>
358 * <complexType>
359 * <simpleContent>
360 * <extension base="<http://www.w3.org/2001/XMLSchema>string">
361 * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
362 * </extension>
363 * </simpleContent>
364 * </complexType>
365 * </pre>
366 *
367 *
368 */
369 @XmlAccessorType(XmlAccessType.FIELD)
370 @XmlType(name = "", propOrder = {
371 "value"
372 })
373 public static class Description {
374
375 @XmlValue
376 protected String value;
377 @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
378 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
379 @XmlSchemaType(name = "language")
380 protected String lang;
381
382 /**
383 * Gets the value of the value property.
384 *
385 * @return
386 * possible object is
387 * {@link String }
388 *
389 */
390 public String getValue() {
391 return value;
392 }
393
394 /**
395 * Sets the value of the value property.
396 *
397 * @param value
398 * allowed object is
399 * {@link String }
400 *
401 */
402 public void setValue(String value) {
403 this.value = value;
404 }
405
406 /**
407 * Gets the value of the lang property.
408 *
409 * @return
410 * possible object is
411 * {@link String }
412 *
413 */
414 public String getLang() {
415 return lang;
416 }
417
418 /**
419 * Sets the value of the lang property.
420 *
421 * @param value
422 * allowed object is
423 * {@link String }
424 *
425 */
426 public void setLang(String value) {
427 this.lang = value;
428 }
429
430 }
431
432
433 /**
434 * <p>Java class for anonymous complex type.
435 *
436 * <p>The following schema fragment specifies the expected content contained within this class.
437 *
438 * <pre>
439 * <complexType>
440 * <complexContent>
441 * <extension base="{http://www.w3.org/2001/XMLSchema}anyType">
442 * <attribute name="dialect" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
443 * </extension>
444 * </complexContent>
445 * </complexType>
446 * </pre>
447 *
448 *
449 */
450 @XmlAccessorType(XmlAccessType.FIELD)
451 @XmlType(name = "", propOrder = {
452 "content"
453 })
454 public static class ErrorCode {
455
456 @XmlMixed
457 @XmlAnyElement
458 protected List<Object> content;
459 @XmlAttribute(required = true)
460 @XmlSchemaType(name = "anyURI")
461 protected String dialect;
462 @XmlAnyAttribute
463 private Map<QName, String> otherAttributes = new HashMap<QName, String>();
464
465 /**
466 * Gets the value of the content property.
467 *
468 * <p>
469 * This accessor method returns a reference to the live list,
470 * not a snapshot. Therefore any modification you make to the
471 * returned list will be present inside the JAXB object.
472 * This is why there is not a <CODE>set</CODE> method for the content property.
473 *
474 * <p>
475 * For example, to add a new item, do as follows:
476 * <pre>
477 * getContent().add(newItem);
478 * </pre>
479 *
480 *
481 * <p>
482 * Objects of the following type(s) are allowed in the list
483 * {@link Element }
484 * {@link String }
485 *
486 *
487 */
488 public List<Object> getContent() {
489 if (content == null) {
490 content = new ArrayList<Object>();
491 }
492 return this.content;
493 }
494
495 /**
496 * Gets the value of the dialect property.
497 *
498 * @return
499 * possible object is
500 * {@link String }
501 *
502 */
503 public String getDialect() {
504 return dialect;
505 }
506
507 /**
508 * Sets the value of the dialect property.
509 *
510 * @param value
511 * allowed object is
512 * {@link String }
513 *
514 */
515 public void setDialect(String value) {
516 this.dialect = value;
517 }
518
519 /**
520 * Gets a map that contains attributes that aren't bound to any typed property on this class.
521 *
522 * <p>
523 * the map is keyed by the name of the attribute and
524 * the value is the string value of the attribute.
525 *
526 * the map returned by this method is live, and you can add new attribute
527 * by updating the map directly. Because of this design, there's no setter.
528 *
529 *
530 * @return
531 * always non-null
532 */
533 public Map<QName, String> getOtherAttributes() {
534 return otherAttributes;
535 }
536
537 }
538
539
540 /**
541 * <p>Java class for anonymous complex type.
542 *
543 * <p>The following schema fragment specifies the expected content contained within this class.
544 *
545 * <pre>
546 * <complexType>
547 * <complexContent>
548 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
549 * <sequence>
550 * <any/>
551 * </sequence>
552 * </restriction>
553 * </complexContent>
554 * </complexType>
555 * </pre>
556 *
557 *
558 */
559 @XmlAccessorType(XmlAccessType.FIELD)
560 @XmlType(name = "", propOrder = {
561 "any"
562 })
563 public static class FaultCause {
564
565 @XmlAnyElement(lax = true)
566 protected Object any;
567
568 /**
569 * Gets the value of the any property.
570 *
571 * @return
572 * possible object is
573 * {@link Element }
574 * {@link Object }
575 *
576 */
577 public Object getAny() {
578 return any;
579 }
580
581 /**
582 * Sets the value of the any property.
583 *
584 * @param value
585 * allowed object is
586 * {@link Element }
587 * {@link Object }
588 *
589 */
590 public void setAny(Object value) {
591 this.any = value;
592 }
593
594 }
595
596 }