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