org.apache.sandesha.ws.rm
Interface IRmElement

All Known Implementing Classes:
Accept, AcknowledgementRange, AckRequested, AcksTo, CreateSequence, CreateSequenceResponse, FaultCode, LastMessage, MessageNumber, Nack, Sequence, SequenceAcknowledgement, SequenceFault, SequenceOffer, TerminateSequence

public interface IRmElement

class IRmElement

Author:
Amila Navarathna, Jaliya Ekanayaka, Sudar Nimalan

This is the parent interface for the rm-protocol elements except the element who are in the format of a URI

If require to add the attributes, extend the concrete class with MessageElement
If require to add child elements, extend the concrete class with MessageElement


Method Summary
 void addChildElement(MessageElement element)
          Method addChildElement Adds an element to this element as a child element.
 MessageElement getSoapElement()
          Methode getSoapElement

This gives the soap element of the protocol element.

 

Method Detail

getSoapElement

public MessageElement getSoapElement()
                              throws SOAPException
Methode getSoapElement

This gives the soap element of the protocol element. Each implementation must implement this method such that then it can be easily get the related soap element

Returns:
the soap element
Throws:
SOAPException

addChildElement

public void addChildElement(MessageElement element)
                     throws SOAPException
Method addChildElement Adds an element to this element as a child element. If not required to add a child element, just provide an empty implementation in the concrete class

Parameters:
element - the child element
Throws:
SOAPException