?? messageinfo.java
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -