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

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

public class MessageImpl
extends Object
implements Message, 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  Document parts
           
 
Constructor Summary
MessageImpl()
           
MessageImpl(Document duplicateParts)
           
 
Method Summary
 MessageImpl copy()
          Export to log message.
 Element getPartElement(String partName)
           
 Map<String,Element> getParts()
           
 Element getPartValue(String partName)
           
 boolean hasPart(String partName)
          Test if the message has part named partName (given in parameter).
 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 Document parts
Constructor Detail

MessageImpl

public MessageImpl()

MessageImpl

public MessageImpl(Document duplicateParts)
Parameters:
duplicateParts -
Method Detail

getPartElement

public Element getPartElement(String partName)

getPartValue

public Element getPartValue(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 Map<String,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(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 String toString()
Return a string representation of the message.

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


Copyright © 2011 OW2 Consortium. All Rights Reserved.