org.codehaus.xfire.service
Class MessagePartContainer

java.lang.Object
  extended by org.codehaus.xfire.service.MessagePartContainer
Direct Known Subclasses:
FaultInfo, MessageInfo

public abstract class MessagePartContainer
extends java.lang.Object

Represents the base class for containers of MessagePartInfo objects.

Author:
Arjen Poutsma

Constructor Summary
protected MessagePartContainer(OperationInfo operation)
          Initializes a new instance of the MessagePartContainer.
 
Method Summary
 void addMessagePart(MessagePartInfo part)
          Adds an message part to this container.
 MessagePartInfo addMessagePart(javax.xml.namespace.QName name, java.lang.Class clazz)
          Adds an message part to this conainer.
 MessagePartInfo getMessagePart(javax.xml.namespace.QName name)
          Returns the message part with the given name, if found.
 int getMessagePartIndex(MessagePartInfo part)
           
 java.util.List getMessageParts()
          Returns all message parts for this message.
 OperationInfo getOperation()
          Returns the operation of this container.
 void removeMessagePart(javax.xml.namespace.QName name)
          Removes an message part from this container.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePartContainer

protected MessagePartContainer(OperationInfo operation)
Initializes a new instance of the MessagePartContainer.

Parameters:
operation - the operation.
Method Detail

getOperation

public OperationInfo getOperation()
Returns the operation of this container.

Returns:
the operation.

addMessagePart

public MessagePartInfo addMessagePart(javax.xml.namespace.QName name,
                                      java.lang.Class clazz)
Adds an message part to this conainer.

Parameters:
name - the qualified name of the message part.
clazz - the type of the message part.

addMessagePart

public void addMessagePart(MessagePartInfo part)
Adds an message part to this container.

Parameters:
part - the message part.

getMessagePartIndex

public int getMessagePartIndex(MessagePartInfo part)

removeMessagePart

public void removeMessagePart(javax.xml.namespace.QName name)
Removes an message part from this container.

Parameters:
name - the qualified message part name.

getMessagePart

public MessagePartInfo getMessagePart(javax.xml.namespace.QName name)
Returns the message part with the given name, if found.

Parameters:
name - the qualified name.
Returns:
the message part; or null if not found.

getMessageParts

public java.util.List getMessageParts()
Returns all message parts for this message.

Returns:
all message parts.

size

public int size()


Copyright © 2004-2009. All Rights Reserved.