org.ow2.orchestra.facade.runtime.impl
Class MessageImpl

java.lang.Object
  extended by org.ow2.orchestra.facade.runtime.impl.MessageImpl
All Implemented Interfaces:
java.io.Serializable, CopyAble<Message>, Message

public class MessageImpl
extends java.lang.Object
implements java.io.Serializable, Message

Models a WSDL message type variable.

Author:
Goulven Le Jeune, Charles Souillard, Candy Chlad, Stanislas Giraudet De Boudemange, Guillaume Porcher
See Also:
Serialized Form

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> parts
           
 
Constructor Summary
MessageImpl(java.util.Map<java.lang.String,org.w3c.dom.Document> docParts)
          Create a multi-part message.
 
Method Summary
 MessageImpl copy()
          Export to log message.
 java.util.Map<java.lang.String,org.w3c.dom.Element> getParts()
           
 org.w3c.dom.Element getPartValue(java.lang.String partName)
           
 boolean hasPart(java.lang.String partName)
          Test if the message has part named partName (given in parameter).
 boolean isPartInitialized(java.lang.String partName)
          Return true if the part having the given name is initialized.
 java.lang.String toString()
          Return a string representation of the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parts

protected java.util.Map<java.lang.String,java.lang.String> parts
Constructor Detail

MessageImpl

public MessageImpl(java.util.Map<java.lang.String,org.w3c.dom.Document> docParts)
Create a multi-part message.

Parameters:
parts - HashMap containing the message parts
Method Detail

getPartValue

public org.w3c.dom.Element getPartValue(java.lang.String partName)
Specified by:
getPartValue in interface Message
Returns:
Element content of the message part 'partName'.

isPartInitialized

public boolean isPartInitialized(java.lang.String partName)
Return true if the part having the given name is initialized.

Parameters:
partName - partName
Returns:
true if the part having the given name is initialized.

hasPart

public boolean hasPart(java.lang.String partName)
Description copied from interface: Message
Test if the message has part named partName (given in parameter).

Specified by:
hasPart in interface Message
Parameters:
partName - : name of the part.
Returns:
true if the part has been found, false else.

toString

public java.lang.String toString()
Return a string representation of the message.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of the message

getParts

public java.util.Map<java.lang.String,org.w3c.dom.Element> getParts()
Specified by:
getParts in interface Message
Returns:
a map with message part name as key and message part element as value.

copy

public MessageImpl copy()
Export to log message.

Specified by:
copy in interface CopyAble<Message>
Returns:
The duplicate of Xml object


Copyright © 2009 OW2 Consortium. All Rights Reserved.