webresultannotation.java

来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 97 行

JAVA
97
字号
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 + =
减小字号Ctrl + -
显示快捷键?