org.apache.wsif.base
Class WSIFDefaultMessage

java.lang.Object
  extended by org.apache.wsif.base.WSIFDefaultMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, WSIFMessage
Direct Known Subclasses:
JMSMessage, WSIFMessage_JCA

public class WSIFDefaultMessage
extends java.lang.Object
implements WSIFMessage

A DefaultWSIFMessage is a default implementation of WSIFMessage holding a collection of WSIFParts corresponding to the parts of a message as defined in WSDL.

Author:
Paul Fremantle, Alekander Slominski, Matthew J. Duftler, Sanjiva Weerawarana, Nirmal Mukhi, Owen Burroughs , Ant Elder , Jeremy Hughes , Mark Whitlock
See Also:
Serialized Form

Constructor Summary
WSIFDefaultMessage()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String deep()
           
 boolean getBooleanPart(java.lang.String name)
           
 byte getBytePart(java.lang.String name)
           
 char getCharPart(java.lang.String name)
           
 double getDoublePart(java.lang.String name)
           
 float getFloatPart(java.lang.String name)
           
 int getIntPart(java.lang.String name)
           
 long getLongPart(java.lang.String name)
           
 javax.wsdl.Message getMessageDefinition()
          Get the underlying WSDL model for this message.
 java.lang.String getName()
          Set the name of this message.
 java.lang.Object getObjectPart(java.lang.String name)
           
 java.lang.Object getObjectPart(java.lang.String name, java.lang.Class sourceClass)
           
 java.util.Iterator getPartNames()
          Return list of part names.
 java.util.Iterator getParts()
          Return an iterator of the parts in the message.
 java.lang.String getRepresentationStyle()
          Return the representation style for all parts in this message
 short getShortPart(java.lang.String name)
           
 void setBooleanPart(java.lang.String name, boolean part)
           
 void setBytePart(java.lang.String name, byte part)
           
 void setCharPart(java.lang.String name, char part)
           
 void setDoublePart(java.lang.String name, double part)
           
 void setFloatPart(java.lang.String name, float part)
           
 void setIntPart(java.lang.String name, int part)
           
 void setLongPart(java.lang.String name, long part)
           
 void setMessageDefinition(javax.wsdl.Message msgDef)
          Set the underlying WSDL model for this message.
 void setName(java.lang.String name)
          Get the name of this message.
 void setObjectPart(java.lang.String name, java.lang.Object part)
           
 void setParts(java.util.Map sourceParts)
          This message parts will be replaced by sourceParts.
 void setRepresentationStyle(java.lang.String rStyle)
          Set the representation style for all parts in this message
 void setShortPart(java.lang.String name, short part)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WSIFDefaultMessage

public WSIFDefaultMessage()
Method Detail

getName

public java.lang.String getName()
Set the name of this message.

Specified by:
getName in interface WSIFMessage

setName

public void setName(java.lang.String name)
Get the name of this message.

Specified by:
setName in interface WSIFMessage

getRepresentationStyle

public java.lang.String getRepresentationStyle()
Return the representation style for all parts in this message

Specified by:
getRepresentationStyle in interface WSIFMessage

setRepresentationStyle

public void setRepresentationStyle(java.lang.String rStyle)
Set the representation style for all parts in this message

Specified by:
setRepresentationStyle in interface WSIFMessage

getParts

public java.util.Iterator getParts()
Return an iterator of the parts in the message. Supercedes void getParts(Map)

Specified by:
getParts in interface WSIFMessage

setParts

public void setParts(java.util.Map sourceParts)
Description copied from interface: WSIFMessage
This message parts will be replaced by sourceParts.

Specified by:
setParts in interface WSIFMessage

getMessageDefinition

public javax.wsdl.Message getMessageDefinition()
Description copied from interface: WSIFMessage
Get the underlying WSDL model for this message.

Specified by:
getMessageDefinition in interface WSIFMessage
Returns:
javax.wsdl.Message

setMessageDefinition

public void setMessageDefinition(javax.wsdl.Message msgDef)
Description copied from interface: WSIFMessage
Set the underlying WSDL model for this message.

Specified by:
setMessageDefinition in interface WSIFMessage

setObjectPart

public void setObjectPart(java.lang.String name,
                          java.lang.Object part)
                   throws WSIFException
Specified by:
setObjectPart in interface WSIFMessage
Throws:
WSIFException

getObjectPart

public java.lang.Object getObjectPart(java.lang.String name)
                               throws WSIFException
Specified by:
getObjectPart in interface WSIFMessage
Throws:
WSIFException

getObjectPart

public java.lang.Object getObjectPart(java.lang.String name,
                                      java.lang.Class sourceClass)
                               throws WSIFException
Specified by:
getObjectPart in interface WSIFMessage
Throws:
WSIFException

getBytePart

public byte getBytePart(java.lang.String name)
                 throws WSIFException
Specified by:
getBytePart in interface WSIFMessage
Throws:
WSIFException

setBytePart

public void setBytePart(java.lang.String name,
                        byte part)
Specified by:
setBytePart in interface WSIFMessage

getCharPart

public char getCharPart(java.lang.String name)
                 throws WSIFException
Specified by:
getCharPart in interface WSIFMessage
Throws:
WSIFException

setCharPart

public void setCharPart(java.lang.String name,
                        char part)
Specified by:
setCharPart in interface WSIFMessage

getIntPart

public int getIntPart(java.lang.String name)
               throws WSIFException
Specified by:
getIntPart in interface WSIFMessage
Throws:
WSIFException

setIntPart

public void setIntPart(java.lang.String name,
                       int part)
Specified by:
setIntPart in interface WSIFMessage

getLongPart

public long getLongPart(java.lang.String name)
                 throws WSIFException
Specified by:
getLongPart in interface WSIFMessage
Throws:
WSIFException

setLongPart

public void setLongPart(java.lang.String name,
                        long part)
Specified by:
setLongPart in interface WSIFMessage

getShortPart

public short getShortPart(java.lang.String name)
                   throws WSIFException
Specified by:
getShortPart in interface WSIFMessage
Throws:
WSIFException

setShortPart

public void setShortPart(java.lang.String name,
                         short part)
Specified by:
setShortPart in interface WSIFMessage

getFloatPart

public float getFloatPart(java.lang.String name)
                   throws WSIFException
Specified by:
getFloatPart in interface WSIFMessage
Throws:
WSIFException

setFloatPart

public void setFloatPart(java.lang.String name,
                         float part)
Specified by:
setFloatPart in interface WSIFMessage

getDoublePart

public double getDoublePart(java.lang.String name)
                     throws WSIFException
Specified by:
getDoublePart in interface WSIFMessage
Throws:
WSIFException

setDoublePart

public void setDoublePart(java.lang.String name,
                          double part)
Specified by:
setDoublePart in interface WSIFMessage

getBooleanPart

public boolean getBooleanPart(java.lang.String name)
                       throws WSIFException
Specified by:
getBooleanPart in interface WSIFMessage
Throws:
WSIFException

setBooleanPart

public void setBooleanPart(java.lang.String name,
                           boolean part)
Specified by:
setBooleanPart in interface WSIFMessage

getPartNames

public java.util.Iterator getPartNames()
Description copied from interface: WSIFMessage
Return list of part names.

NOTE: part names are unordered.

Specified by:
getPartNames in interface WSIFMessage

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface WSIFMessage
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

deep

public java.lang.String deep()


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.