org.objectweb.jotm.btp.messages
Class RelatedGroup

java.lang.Object
  |
  +--org.objectweb.jotm.btp.messages.BtpMessage
        |
        +--org.objectweb.jotm.btp.messages.RelatedGroup

public class RelatedGroup
extends BtpMessage


Field Summary
static int APP
           
static int BEGIN
           
static int BEGIN_CONTEXT
           
static int BEGUN
           
static int BEGUN_CONTEXT
           
static int CANCELLED
           
static int CONTEXT
           
static int CONTEXT_APP
           
static int CONTEXT_REPLY
           
static int CTXREPLY_APP
           
static int CTXREPLY_ENROL
           
static int CTXREPLY_ENROL_APP_PREPARED
           
static int CTXREPLY_ENROL_CANCELLED
           
static int CTXREPLY_ENROL_PREPARED
           
static int ENROL
           
static int PREPARED
           
static int UNKNOWN
           
 
Fields inherited from class org.objectweb.jotm.btp.messages.BtpMessage
CANCEL, CANCEL_INFERIORS, CANCEL_TRANSACTION, CONFIRM, CONFIRM_ONE_PHASE, CONFIRM_TRANSACTION, CONFIRMED, CONTRADICTION, EMPTY, ENROLLED, FAULT, HAZARD, INFERIOR_STATE, INFERIOR_STATUSES, JOTM_ADMIN, PREPARE, PREPARE_INFERIORS, REDIRECT, RELATED_GROUP, REQUEST_INFERIOR_STATUSES, REQUEST_STATUS, RESIGN, RESIGNED, STATUS, SUPERIOR_STATE, TRANSACTION_CANCELLED, TRANSACTION_CONFIRMED
 
Constructor Summary
RelatedGroup()
           
RelatedGroup(BtpMessage m1)
           
RelatedGroup(BtpMessage m1, BtpMessage m2)
           
RelatedGroup(BtpMessage m1, BtpMessage m2, BtpMessage m3)
           
RelatedGroup(int subtype)
           
RelatedGroup(XElement el)
           
 
Method Summary
 void addMessage(BtpMessage msg)
           
 Begin getBegin()
           
 Begun getBegun()
           
 Context getContext()
           
 BtpMessage getMessage(int pos)
           
 BtpMessage getMessageByType(int type)
          Return the 1st message of a given type (null if not found).
 int getMessageCount()
           
 Vector getMessages()
           
 Vector getMessagesByType(int type)
           
 int getSubtype()
           
 XElement toXml()
           
 
Methods inherited from class org.objectweb.jotm.btp.messages.BtpMessage
addQualifier, addQualifiers, addReplyAddress, addReplyAddress, addSenderAddress, addSenderAddress, addTargetAddress, get, getId, getInferiorName, getInferiorTimeout, getInferiorTimeoutDecision, getMinimumInferiorTimeout, getName, getQualifier, getQualifier, getQualifiers, getReplyAddress, getReplyAddresses, getSenderAddress, getSenderAddresses, getSingle, getSingle, getTargetAddress, getTransactionTimelimit, getType, pickAddrSet, pickString, setId, setInferiorName, setInferiorTimeout, setMinimumInferiorTimeout, setTargetAddress, setTransactionTimelimit, toHtml, toHtml, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

APP

public static final int APP
See Also:
Constant Field Values

BEGIN

public static final int BEGIN
See Also:
Constant Field Values

BEGUN

public static final int BEGUN
See Also:
Constant Field Values

CANCELLED

public static final int CANCELLED
See Also:
Constant Field Values

CONTEXT

public static final int CONTEXT
See Also:
Constant Field Values

CONTEXT_REPLY

public static final int CONTEXT_REPLY
See Also:
Constant Field Values

ENROL

public static final int ENROL
See Also:
Constant Field Values

PREPARED

public static final int PREPARED
See Also:
Constant Field Values

BEGIN_CONTEXT

public static final int BEGIN_CONTEXT
See Also:
Constant Field Values

BEGUN_CONTEXT

public static final int BEGUN_CONTEXT
See Also:
Constant Field Values

CONTEXT_APP

public static final int CONTEXT_APP
See Also:
Constant Field Values

CTXREPLY_APP

public static final int CTXREPLY_APP
See Also:
Constant Field Values

CTXREPLY_ENROL

public static final int CTXREPLY_ENROL
See Also:
Constant Field Values

CTXREPLY_ENROL_CANCELLED

public static final int CTXREPLY_ENROL_CANCELLED
See Also:
Constant Field Values

CTXREPLY_ENROL_PREPARED

public static final int CTXREPLY_ENROL_PREPARED
See Also:
Constant Field Values

CTXREPLY_ENROL_APP_PREPARED

public static final int CTXREPLY_ENROL_APP_PREPARED
See Also:
Constant Field Values
Constructor Detail

RelatedGroup

public RelatedGroup()

RelatedGroup

public RelatedGroup(int subtype)

RelatedGroup

public RelatedGroup(BtpMessage m1)

RelatedGroup

public RelatedGroup(BtpMessage m1,
                    BtpMessage m2)

RelatedGroup

public RelatedGroup(BtpMessage m1,
                    BtpMessage m2,
                    BtpMessage m3)

RelatedGroup

public RelatedGroup(XElement el)
Method Detail

addMessage

public void addMessage(BtpMessage msg)

getMessages

public Vector getMessages()

getMessage

public BtpMessage getMessage(int pos)

getMessageCount

public int getMessageCount()

getMessagesByType

public Vector getMessagesByType(int type)

getMessageByType

public BtpMessage getMessageByType(int type)
Return the 1st message of a given type (null if not found). Use if you are sure only one message of the given type is present... otherwise, prefer getMessagesByType(type);


getBegin

public Begin getBegin()

getBegun

public Begun getBegun()

getContext

public Context getContext()

getSubtype

public int getSubtype()

toXml

public XElement toXml()
Overrides:
toXml in class BtpMessage