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