messageinfo.java
来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 69 行
JAVA
69 行
package org.codehaus.xfire.service;import java.util.Iterator;import javax.xml.namespace.QName;/** * Represents the description of a service operation message. * <p/> * Messages are created using the {@link OperationInfo#createMessage} method. * * @author <a href="mailto:poutsma@mac.com">Arjen Poutsma</a> */public class MessageInfo extends MessagePartContainer implements Visitable{ private QName name; /** * Initializes a new instance of the <code>MessageInfo</code> class with the given qualified name and operation. * * @param name the name. * @param operation the operation. */ MessageInfo(QName name, OperationInfo operation) { super(operation); this.name = name; } /** * Returns the qualified name of the message info. * * @return the name. */ public QName getName() { return name; } /** * Sets the qualified name of the message info. * * @param name the qualified name. */ public void setName(QName name) { this.name = name; } /** * Acceps the given visitor. Iterates over all message part infos. * * @param visitor the visitor. */ public void accept(Visitor visitor) { visitor.startMessage(this); for (Iterator iterator = getMessageParts().iterator(); iterator.hasNext();) { MessagePartInfo messagePartInfo = (MessagePartInfo) iterator.next(); messagePartInfo.accept(visitor); } visitor.endMessage(this); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?