Class SecuritiesMessage
- Namespace
- Subsembly.Swift.SecuritiesMarkets
- Assembly
- Subsembly.Sepa.dll
Base class for the object model of all generic SWIFT Securities Markets messages.
public abstract class SecuritiesMessage : SecuritiesSequence, ISecuritiesSequence
- Inheritance
-
SecuritiesMessage
- Implements
- Derived
- Inherited Members
Remarks
The base class unifies and simplifies the parsing of generic SWIFT messages. After successfully parsing a SWIFT message, the derived class should hold the parsed content.
Constructors
SecuritiesMessage(int)
public SecuritiesMessage(int nMT)
Parameters
nMTintThe SWIFT message type number.
Properties
BlockName
public override string BlockName { get; }
Property Value
MessageType
public int MessageType { get; }
Property Value
Methods
CreateMessageData()
Produces the binary data from this SWIFT message.
public byte[] CreateMessageData()
Returns
- byte[]
Exceptions
DebugTrace()
Tries to produce the SWIFT Message Text and writes it to the Debug output.
[Conditional("DEBUG")]
public void DebugTrace()
Parse(SwiftReader)
public void Parse(SwiftReader aReader)
Parameters
aReaderSwiftReader
ProcessField(SwiftField)
Invoked during parsing in order to let the derived class process a SWIFT field at the root level. Usually a generic SWIFT message never has fields at the root level, hence the default implementation just throws an UnexpectedField exception.
public override void ProcessField(SwiftField aField)
Parameters
aFieldSwiftFieldThe field to process. The field type is either GenericField, or NonGenericField. All other field types are already processed internally by this class.
Write(SwiftWriter)
public void Write(SwiftWriter aWriter)
Parameters
aWriterSwiftWriter
Exceptions
WriteSequence(SwiftWriter)
public override void WriteSequence(SwiftWriter aWriter)
Parameters
aWriterSwiftWriter