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     * &lt;complexType name="BaseFaultType">
070     *   &lt;complexContent>
071     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
072     *       &lt;sequence>
073     *         &lt;any/>
074     *         &lt;element name="Timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
075     *         &lt;element name="Originator" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType" minOccurs="0"/>
076     *         &lt;element name="ErrorCode" minOccurs="0">
077     *           &lt;complexType>
078     *             &lt;complexContent>
079     *               &lt;extension base="{http://www.w3.org/2001/XMLSchema}anyType">
080     *                 &lt;attribute name="dialect" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
081     *               &lt;/extension>
082     *             &lt;/complexContent>
083     *           &lt;/complexType>
084     *         &lt;/element>
085     *         &lt;element name="Description" maxOccurs="unbounded" minOccurs="0">
086     *           &lt;complexType>
087     *             &lt;simpleContent>
088     *               &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
089     *                 &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
090     *               &lt;/extension>
091     *             &lt;/simpleContent>
092     *           &lt;/complexType>
093     *         &lt;/element>
094     *         &lt;element name="FaultCause" minOccurs="0">
095     *           &lt;complexType>
096     *             &lt;complexContent>
097     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
098     *                 &lt;sequence>
099     *                   &lt;any/>
100     *                 &lt;/sequence>
101     *               &lt;/restriction>
102     *             &lt;/complexContent>
103     *           &lt;/complexType>
104     *         &lt;/element>
105     *       &lt;/sequence>
106     *     &lt;/restriction>
107     *   &lt;/complexContent>
108     * &lt;/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        ResourceUnavailableFaultType.class,
124        ResourceUnknownFaultType.class,
125        PublisherRegistrationRejectedFaultType.class,
126        ResourceNotDestroyedFaultType.class,
127        PublisherRegistrationFailedFaultType.class,
128        SetResourcePropertyRequestFailedFaultType.class,
129        InvalidModificationFaultType.class,
130        InvalidResourcePropertyQNameFaultType.class,
131        QueryEvaluationErrorFaultType.class,
132        UnableToPutResourcePropertyDocumentFaultType.class,
133        InvalidQueryExpressionFaultType.class,
134        UnableToModifyResourcePropertyFaultType.class,
135        InsertResourcePropertiesRequestFailedFaultType.class,
136        UnknownQueryExpressionDialectFaultType.class,
137        DeleteResourcePropertiesRequestFailedFaultType.class,
138        UpdateResourcePropertiesRequestFailedFaultType.class,
139        InvalidTopicExpressionFaultType.class,
140        ResumeFailedFaultType.class,
141        TopicExpressionDialectUnknownFaultType.class,
142        NotifyMessageNotSupportedFaultType.class,
143        UnableToGetMessagesFaultType.class,
144        UnrecognizedPolicyRequestFaultType.class,
145        MultipleTopicsSpecifiedFaultType.class,
146        UnableToDestroyPullPointFaultType.class,
147        NoCurrentMessageOnTopicFaultType.class,
148        InvalidFilterFaultType.class,
149        TopicNotSupportedFaultType.class,
150        UnacceptableInitialTerminationTimeFaultType.class,
151        PauseFailedFaultType.class,
152        InvalidMessageContentExpressionFaultType.class,
153        UnableToCreatePullPointFaultType.class,
154        UnacceptableTerminationTimeFaultType.class,
155        UnsupportedPolicyRequestFaultType.class,
156        UnableToDestroySubscriptionFaultType.class,
157        InvalidProducerPropertiesExpressionFaultType.class,
158        SubscribeCreationFailedFaultType.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 Object }
197         * {@link Element }
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         * &lt;complexType>
359         *   &lt;simpleContent>
360         *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
361         *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
362         *     &lt;/extension>
363         *   &lt;/simpleContent>
364         * &lt;/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         * &lt;complexType>
440         *   &lt;complexContent>
441         *     &lt;extension base="{http://www.w3.org/2001/XMLSchema}anyType">
442         *       &lt;attribute name="dialect" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
443         *     &lt;/extension>
444         *   &lt;/complexContent>
445         * &lt;/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         * &lt;complexType>
547         *   &lt;complexContent>
548         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
549         *       &lt;sequence>
550         *         &lt;any/>
551         *       &lt;/sequence>
552         *     &lt;/restriction>
553         *   &lt;/complexContent>
554         * &lt;/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 Object }
574             *     {@link Element }
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 Object }
587             *     {@link Element }
588             *     
589             */
590            public void setAny(Object value) {
591                this.any = value;
592            }
593    
594        }
595    
596    }