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 Message, java.io.Serializable

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  org.w3c.dom.Document parts
           
 
Constructor Summary
MessageImpl()
           
MessageImpl(org.w3c.dom.Document duplicateParts)
           
 
Method Summary
 MessageImpl copy()
          Export to log message.
 org.w3c.dom.Element getPartElement(java.lang.String partName)
           
 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).
 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 org.w3c.dom.Document parts
Constructor Detail

MessageImpl

public MessageImpl()

MessageImpl

public MessageImpl(org.w3c.dom.Document duplicateParts)
Parameters:
duplicateParts -
Method Detail

getPartElement

public org.w3c.dom.Element getPartElement(java.lang.String partName)

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'.

copy

public MessageImpl copy()
Export to log message.

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

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.

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


Copyright © 2011 OW2 Consortium. All Rights Reserved.