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

📄 webresultannotation.java

📁 Xfire文件 用于开发web service 的一个开源工具 很好用的
💻 JAVA
字号:
package org.codehaus.xfire.annotations;import java.io.Serializable;/** * Represents an common representation of a web result annotation. Customizes the mapping of the return value to a WSDL * part and XML element. * * @author Arjen Poutsma */public class WebResultAnnotation implements Serializable{    private String name = "return";    private String partName = "return";    private String targetNamespace = "";    private boolean header;    public String getPartName()    {        return partName;    }    public void setPartName(String partName)    {        this.partName = partName;    }    public boolean isHeader()    {        return header;    }    public void setHeader(boolean header)    {        this.header = header;    }    /**     * Returns the name of the return value as it appears in the WSDL and messages on the wire. For RPC bindings, this     * is the name of the wsdl:part representing the return value. For document bindings, this is the local name of the     * XML element representing the return value.     *     * @return the name of the return value.     */    public String getName()    {        return name;    }    /**     * Sets the name of return value as it appears in the WSDL and messages on the wire. For RPC bindings, this is the     * name of  the wsdl:part representing the return value. For document bindings, this is the local name of the XML     * element  representing the return value.     *     * @param name the new name of the return value.     */    public void setName(String name)    {        this.name = name;    }    /**     * Returns the XML namespace for the return value. Only used with document bindings, where the return value maps to     * an  XML element. Defaults to the targetNamespace of the Web Service.     *     * @return the XML namespace for the return value.     */    public String getTargetNamespace()    {        return targetNamespace;    }    /**     * Sets the XML namespace for the return value. Only used with document bindings, where the return value maps to an     * XML element. Defaults to the targetNamespace of the Web Service.     *     * @param targetNamespace the new XML namespace for the return value.     */    public void setTargetNamespace(String targetNamespace)    {        this.targetNamespace = targetNamespace;    }    /**     * Returns a String representation of this <code>WebResultAnnotation</code> attribute.     *     * @return a string representation.     */    public String toString()    {        return "WebResultAnnotation{" +                "name='" + name + "'" +                ", targetNamespace='" + targetNamespace + "'" +                "}";    }}

⌨️ 快捷键说明

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