xsul.wsif.impl
Class WSIFMessageElement

java.lang.Object
  extended byXmlElementAdapter
      extended byxsul.wsif.impl.WSIFMessageElement
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, WSIFMessage

public class WSIFMessageElement
extends XmlElementAdapter
implements WSIFMessage

WSIF Message that is built on top of XmlElement

Version:
$Revision: 1.4 $
Author:
Aleksander Slominski
See Also:
Serialized Form

Constructor Summary
WSIFMessageElement(java.lang.String messageName)
           
WSIFMessageElement(WsdlMessage message)
           
 
Method Summary
 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)
           
 java.lang.Object getObjectPart(java.lang.String name)
           
 java.lang.Object getObjectPart(java.lang.String name, java.lang.Class sourceClass)
           
 short getShortPart(java.lang.String name)
           
 Iterable partNames()
          Return list of part names.
 Iterable parts()
          Create an iterator of the parts in this message.
 void setBooleanPart(java.lang.String name, boolean booleanPart)
           
 void setBytePart(java.lang.String name, byte bytePart)
           
 void setCharPart(java.lang.String name, char charPart)
           
 void setDoublePart(java.lang.String name, double doublePart)
           
 void setFloatPart(java.lang.String name, float floatPart)
           
 void setIntPart(java.lang.String name, int intPart)
           
 void setLongPart(java.lang.String name, long longPart)
           
 void setObjectPart(java.lang.String name, java.lang.Object part)
           
 void setShortPart(java.lang.String name, short shortPart)
           
 java.lang.String toString()
           
 void validateData()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface xsul.wsif.WSIFMessage
clone, getName, setName
 

Constructor Detail

WSIFMessageElement

public WSIFMessageElement(java.lang.String messageName)

WSIFMessageElement

public WSIFMessageElement(WsdlMessage message)
Method Detail

partNames

public Iterable partNames()
Description copied from interface: WSIFMessage
Return list of part names.

NOTE: part names are unordered.

Specified by:
partNames in interface WSIFMessage

parts

public Iterable parts()
Description copied from interface: WSIFMessage
Create an iterator of the parts in this message. Supercedes void getParts(Map).

Specified by:
parts in interface WSIFMessage

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

setObjectPart

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

getCharPart

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

getBytePart

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

getShortPart

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

getIntPart

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

getLongPart

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

getFloatPart

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

getDoublePart

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

getBooleanPart

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

setCharPart

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

setBytePart

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

setShortPart

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

setIntPart

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

setLongPart

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

setFloatPart

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

setDoublePart

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

setBooleanPart

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

validateData

public void validateData()
                  throws DataValidationException
Throws:
DataValidationException

toString

public java.lang.String toString()


IU Extreme! Lab (http://www.extreme.indiana.edu)