⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basefaulttype.java

📁 Xfire文件 用于开发web service 的一个开源工具 很好用的
💻 JAVA
字号:
package org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import javax.xml.bind.annotation.XmlAccessType;import javax.xml.bind.annotation.XmlAccessorType;import javax.xml.bind.annotation.XmlAnyAttribute;import javax.xml.bind.annotation.XmlAnyElement;import javax.xml.bind.annotation.XmlAttribute;import javax.xml.bind.annotation.XmlElement;import javax.xml.bind.annotation.XmlMixed;import javax.xml.bind.annotation.XmlType;import javax.xml.bind.annotation.XmlValue;import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;import javax.xml.datatype.XMLGregorianCalendar;import javax.xml.namespace.QName;import org.w3c.dom.Element;import org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType;/** * <p>Java class for BaseFaultType complex type. *  * <p>The following schema fragment specifies the expected content contained within this class. *  * <pre> * &lt;complexType name="BaseFaultType"> *   &lt;complexContent> *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> *       &lt;sequence> *         &lt;element name="Timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/> *         &lt;element name="Originator" type="{http://schemas.xmlsoap.org/ws/2003/03/addressing}EndpointReferenceType" minOccurs="0"/> *         &lt;element name="ErrorCode" minOccurs="0"> *           &lt;complexType> *             &lt;complexContent> *               &lt;extension base="{http://www.w3.org/2001/XMLSchema}anyType"> *                 &lt;attribute name="dialect" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> *               &lt;/extension> *             &lt;/complexContent> *           &lt;/complexType> *         &lt;/element> *         &lt;element name="Description" maxOccurs="unbounded" minOccurs="0"> *           &lt;complexType> *             &lt;simpleContent> *               &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string"> *                 &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> *               &lt;/extension> *             &lt;/simpleContent> *           &lt;/complexType> *         &lt;/element> *         &lt;element name="FaultCause" type="{http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd}BaseFaultType" maxOccurs="unbounded" minOccurs="0"/> *       &lt;/sequence> *     &lt;/restriction> *   &lt;/complexContent> * &lt;/complexType> * </pre> *  *  */@XmlAccessorType(XmlAccessType.FIELD)@XmlType(name = "BaseFaultType")public class BaseFaultType {    @XmlElement(name = "Timestamp", namespace = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd")    protected XMLGregorianCalendar timestamp;    @XmlElement(name = "Originator", namespace = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd")    protected EndpointReferenceType originator;    @XmlElement(name = "ErrorCode", namespace = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd")    protected ErrorCode errorCode;    @XmlElement(name = "Description", namespace = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd")    protected List<Description> description;    @XmlElement(name = "FaultCause", namespace = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd")    protected List<BaseFaultType> faultCause;    /**     * Gets the value of the timestamp property.     *      * @return     *     possible object is     *     {@link XMLGregorianCalendar }     *          */    public XMLGregorianCalendar getTimestamp() {        return timestamp;    }    /**     * Sets the value of the timestamp property.     *      * @param value     *     allowed object is     *     {@link XMLGregorianCalendar }     *          */    public void setTimestamp(XMLGregorianCalendar value) {        this.timestamp = value;    }    /**     * Gets the value of the originator property.     *      * @return     *     possible object is     *     {@link EndpointReferenceType }     *          */    public EndpointReferenceType getOriginator() {        return originator;    }    /**     * Sets the value of the originator property.     *      * @param value     *     allowed object is     *     {@link EndpointReferenceType }     *          */    public void setOriginator(EndpointReferenceType value) {        this.originator = value;    }    /**     * Gets the value of the errorCode property.     *      * @return     *     possible object is     *     {@link ErrorCode }     *          */    public ErrorCode getErrorCode() {        return errorCode;    }    /**     * Sets the value of the errorCode property.     *      * @param value     *     allowed object is     *     {@link ErrorCode }     *          */    public void setErrorCode(ErrorCode value) {        this.errorCode = value;    }    /**     * Gets the value of the description property.     *      * <p>     * This accessor method returns a reference to the live list,     * not a snapshot. Therefore any modification you make to the     * returned list will be present inside the JAXB object.     * This is why there is not a <CODE>set</CODE> method for the description property.     *      * <p>     * For example, to add a new item, do as follows:     * <pre>     *    getDescription().add(newItem);     * </pre>     *      *      * <p>     * Objects of the following type(s) are allowed in the list     * {@link Description }     *      *      */    public List<Description> getDescription() {        if (description == null) {            description = new ArrayList<Description>();        }        return this.description;    }    /**     * Gets the value of the faultCause property.     *      * <p>     * This accessor method returns a reference to the live list,     * not a snapshot. Therefore any modification you make to the     * returned list will be present inside the JAXB object.     * This is why there is not a <CODE>set</CODE> method for the faultCause property.     *      * <p>     * For example, to add a new item, do as follows:     * <pre>     *    getFaultCause().add(newItem);     * </pre>     *      *      * <p>     * Objects of the following type(s) are allowed in the list     * {@link BaseFaultType }     *      *      */    public List<BaseFaultType> getFaultCause() {        if (faultCause == null) {            faultCause = new ArrayList<BaseFaultType>();        }        return this.faultCause;    }    /**     * <p>Java class for anonymous complex type.     *      * <p>The following schema fragment specifies the expected content contained within this class.     *      * <pre>     * &lt;complexType>     *   &lt;simpleContent>     *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">     *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>     *     &lt;/extension>     *   &lt;/simpleContent>     * &lt;/complexType>     * </pre>     *      *      */    @XmlAccessorType(XmlAccessType.FIELD)    @XmlType(name = "")    public static class Description {        @XmlValue        protected String value;        @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)        protected String lang;        /**         * Gets the value of the value property.         *          * @return         *     possible object is         *     {@link String }         *              */        public String getValue() {            return value;        }        /**         * Sets the value of the value property.         *          * @param value         *     allowed object is         *     {@link String }         *              */        public void setValue(String value) {            this.value = value;        }        /**         * Gets the value of the lang property.         *          * @return         *     possible object is         *     {@link String }         *              */        public String getLang() {            return lang;        }        /**         * Sets the value of the lang property.         *          * @param value         *     allowed object is         *     {@link String }         *              */        public void setLang(String value) {            this.lang = value;        }    }    /**     * <p>Java class for anonymous complex type.     *      * <p>The following schema fragment specifies the expected content contained within this class.     *      * <pre>     * &lt;complexType>     *   &lt;complexContent>     *     &lt;extension base="{http://www.w3.org/2001/XMLSchema}anyType">     *       &lt;attribute name="dialect" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />     *     &lt;/extension>     *   &lt;/complexContent>     * &lt;/complexType>     * </pre>     *      *      */    @XmlAccessorType(XmlAccessType.FIELD)    @XmlType(name = "")    public static class ErrorCode {        @XmlMixed        @XmlAnyElement        protected List<Object> content;        @XmlAttribute(required = true)        protected String dialect;        @XmlAnyAttribute        private Map<QName, String> otherAttributes = new HashMap<QName, String>();        /**         * Gets the value of the content property.         *          * <p>         * This accessor method returns a reference to the live list,         * not a snapshot. Therefore any modification you make to the         * returned list will be present inside the JAXB object.         * This is why there is not a <CODE>set</CODE> method for the content property.         *          * <p>         * For example, to add a new item, do as follows:         * <pre>         *    getContent().add(newItem);         * </pre>         *          *          * <p>         * Objects of the following type(s) are allowed in the list         * {@link String }         * {@link Element }         *          *          */        public List<Object> getContent() {            if (content == null) {                content = new ArrayList<Object>();            }            return this.content;        }        /**         * Gets the value of the dialect property.         *          * @return         *     possible object is         *     {@link String }         *              */        public String getDialect() {            return dialect;        }        /**         * Sets the value of the dialect property.         *          * @param value         *     allowed object is         *     {@link String }         *              */        public void setDialect(String value) {            this.dialect = value;        }        /**         * Gets a map that contains attributes that aren't bound to any typed property on this class.         *          * <p>         * the map is keyed by the name of the attribute and          * the value is the string value of the attribute.         *          * the map returned by this method is live, and you can add new attribute         * by updating the map directly. Because of this design, there's no setter.         *          *          * @return         *     always non-null         */        public Map<QName, String> getOtherAttributes() {            return otherAttributes;        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -