be.SIRAPRISE.messages
Class ServerMessageTypes

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageTypes

public class ServerMessageTypes
extends java.lang.Object

Author:
Erwin Smout

Field Summary
static int AUTHENTICATIONOK
          The message type id
 
Method Summary
static ServerMessageTypes getInstance()
          Gets The instance
 ServerMessageType getServerMessageType(int messageType)
          Gets the most recent version of the ServerMessageType of the indicated type, that is, the version that is used in the SIRA_PRISE version that this package conforms to / corresponds with.
 ServerMessageType getServerMessageTypeForMessageVersion(int messageType, int messageVersion)
          Gets The ServerMessageType of the indicated type and version
 ServerMessageType getServerMessageTypeForSiraPriseVersion(int messageType, Version siraPriseVersion)
          Gets The ServerMessageType of the indicated type that was used in the indicated SIRA_PRISE specification version
 Version getThisPackagesSiraPriseVersion()
          Gets The specification version that this package corresponds to
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHENTICATIONOK

public static final int AUTHENTICATIONOK
The message type id

See Also:
Constant Field Values
Method Detail

getInstance

public static ServerMessageTypes getInstance()
Gets The instance

Returns:
The instance

getServerMessageType

public ServerMessageType getServerMessageType(int messageType)
                                       throws NotFoundException
Gets the most recent version of the ServerMessageType of the indicated type, that is, the version that is used in the SIRA_PRISE version that this package conforms to / corresponds with.

Parameters:
messageType - the message type family to be obtained
Returns:
The ServerMessageType of the indicated type and version
Throws:
NotFoundException

getServerMessageTypeForMessageVersion

public ServerMessageType getServerMessageTypeForMessageVersion(int messageType,
                                                               int messageVersion)
                                                        throws NotFoundException
Gets The ServerMessageType of the indicated type and version

Parameters:
messageType - the message type family to be obtained
messageVersion - the version of the message type to be retrieved
Returns:
The ServerMessageType of the indicated type and version
Throws:
NotFoundException

getServerMessageTypeForSiraPriseVersion

public ServerMessageType getServerMessageTypeForSiraPriseVersion(int messageType,
                                                                 Version siraPriseVersion)
                                                          throws NotFoundException
Gets The ServerMessageType of the indicated type that was used in the indicated SIRA_PRISE specification version

Parameters:
messageType - the message type family to be obtained
siraPriseVersion - the SIRA_PRISE specificiation version applying to the message type to be retrieved
Returns:
The ServerMessageType of the indicated type and version
Throws:
NotFoundException

getThisPackagesSiraPriseVersion

public Version getThisPackagesSiraPriseVersion()
Gets The specification version that this package corresponds to

Returns:
The specification version that this package corresponds to