|
JAIN TCAP API v1.1 - 5th Sept 2001 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--jain.protocol.ss7.tcap.ComponentIndEvent
A ComponentIndEvent is the super class of all Component Indication primitives, which represent TCAP Component Indications sent from a JainTcapProvider to a JainTcapListener . It affords a method of generic event passing, while enforcing tight control over event flow between the Listener and the Provider. This type of Event will be processed by the processComponentIndEvent method of the JainTcapListener . This class implements the java.lang.Cloneable interface, therefore all Component Indication primitives that extend this Event can be cloned using the clone() method inherited from java.lang.Object .
Field Summary | |
protected int |
m_dialogueId
The Dialogue Id parameter of the indication component |
protected boolean |
m_dialogueIdPresent
|
protected int |
m_invokeId
The Invoke Id parameter in ITU and ANSI for an INVOKE component. |
protected boolean |
m_invokeIdPresent
|
protected boolean |
m_lastComponent
Indicates if this Indication Component is the last component of a transaction message. |
protected boolean |
m_lastComponentPresent
|
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
ComponentIndEvent(java.lang.Object source)
Constructs a new ComponentIndEvent. |
Method Summary | |
abstract int |
getDialogueId()
Gets the Dialogue Id parameter of the indication component, which is a reference identifier which identifies a specific dialogue or transaction and all associated components within that dialogue or transaction. |
abstract int |
getInvokeId()
Gets the Invoke Id parameter of the component indication. |
abstract int |
getPrimitiveType()
This abstract method defines the 'getPrimitiveType' method that must be implemented by its subclasses in order to return the type of that subclassed Component Indication primitive. |
boolean |
isInvokeIdPresent()
Indicates if the Invoke Id is present in this Indication event. |
boolean |
isLastComponent()
Indicates if this indication Component is the last component in a Transaction message i.e. |
void |
setDialogueId(int dialogueId)
Sets the Dialogue Id parameter of this Component Indication Event. |
void |
setInvokeId(int invokeId)
Sets the Invoke Id parameter of the indication component. |
void |
setLastComponent(boolean lastComponent)
Sets this indication Component as the last component in a Transaction message for example BEGIN or CONTINUE. |
void |
setSource(java.lang.Object source)
Sets the source of this event. |
java.lang.String |
toString()
String representation of class ComponentIndEvent |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int m_dialogueId
protected int m_invokeId
protected boolean m_lastComponent
protected boolean m_invokeIdPresent
protected boolean m_dialogueIdPresent
protected boolean m_lastComponentPresent
Constructor Detail |
public ComponentIndEvent(java.lang.Object source)
source
- the new object source supplied to the constructorMethod Detail |
public void setSource(java.lang.Object source)
source
- The new Object Source valuepublic void setDialogueId(int dialogueId)
dialogueId
- The new Dialogue Identifierpublic void setInvokeId(int invokeId)
invokeId
- The new Invoke Identifierpublic void setLastComponent(boolean lastComponent)
Note to Developers:- This should not be confused with the lastInvokeEvent parameter in an INVOKE Component which is a flag for an ANSI implementation of the JAIN TCAP API to determine the type of component, either INVOKE_NL or INVOKE_L. For example in an ANSI INVOKE Indicaton the last component in the transaction message could be an INVOKE_NL, were an INVOKE_L will follow in the next message segment, therefore the lastComponent parameter is true, while the lastInvokeEvent is false.
By default this component will not be the last Component, that is the lastComponent is set to false by default.
lastComponent
- The new LastComponent valuepublic abstract int getDialogueId() throws ParameterNotSetException, MandatoryParameterNotSetException
ParameterNotSetException
- this exception is thrown if
this parameter is a JAIN optional parameter and has not yet been set.
The Dialogue Id is JAIN Optional for the
Invoke Indication .MandatoryParameterNotSetException
- this exception is thrown if
the Dialogue Id is a JAIN mandatory parameter for the specific
Component Indication. The Dialogue Id is JAIN Mandatory for all
component indications except for the
Invoke Indication .public boolean isInvokeIdPresent()
public abstract int getInvokeId() throws ParameterNotSetException, MandatoryParameterNotSetException
ParameterNotSetException
- this exception is thrown if
this is a JAIN Optional parameter in the specific component indication
and has not been set.MandatoryParameterNotSetException
- if this is a JAIN Mandatory
parameter in the specific component indication and has not been set.public boolean isLastComponent()
Note to Developers:- This should not be confused with the lastInvokeEvent parameter in an INVOKE Component which is a flag for an ANSI implementation of the JAIN TCAP API to determine the type of component, either INVOKE_NL or INVOKE_L. For example in an ANSI INVOKE Indicaton the last component in the transaction message could be an INVOKE_NL, were an INVOKE_L will follow in the next message segment, therefore the lastComponent parameter is true, while the lastInvokeEvent is false.
By default the lastComponent parameter is set to false .
public abstract int getPrimitiveType()
public java.lang.String toString()
toString
in class java.util.EventObject
|
JAIN TCAP API v1.1 - 5th Sept 2001 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |