public class MtSwiftMessage extends AbstractSwiftMessage
PROPERTY_NAME
Constructor and Description |
---|
MtSwiftMessage() |
MtSwiftMessage(java.lang.String fin) |
MtSwiftMessage(SwiftMessage model) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessageName()
Get the value of the property under the
AbstractSwiftMessage.PROPERTY_NAME key or the result of getMessageType() |
java.lang.String |
getMessageType()
Get the message type set in the identifier attribute.
|
java.lang.Integer |
getMessageTypeInt()
Get the integer value of the
getMessageType()
or null if the identifier attribute is not set or not a number |
java.lang.String |
getMir() |
SwiftMessage |
getModelMessage()
If the modelMessage attribute is set, its value is returned.
|
java.lang.String |
getMur() |
java.lang.String |
getPde() |
java.lang.String |
getPdm() |
java.lang.String |
getUuid() |
int |
hashCode() |
boolean |
isType(int type)
Test if this message is a given specific type.
|
boolean |
isType(java.lang.Integer... type)
Tell if this message is any of the given types.
|
MtSwiftMessage |
readFile(java.io.File file) |
void |
setMir(java.lang.String mir) |
void |
setModelMessage(SwiftMessage modelMessage) |
void |
setMur(java.lang.String mur) |
void |
setPde(java.lang.String pde) |
void |
setPdm(java.lang.String pdm) |
void |
setUuid(java.lang.String uuid) |
java.lang.String |
toString() |
void |
updateFromFIN()
Updates the derived attributes and the model message from the current raw (FIN) message attribute.
|
void |
updateFromFIN(java.lang.String fin)
Sets the raw message and updates the derived attributes and the model message.
|
void |
updateFromModel()
Updates the derived attributes and the raw message from the current model message attribute.
|
void |
updateFromModel(SwiftMessage model)
Sets the model message and updates the derived attributes and the raw message.
|
addNote, addStatus, contains, contains, findStatusInfo, getChecksum, getCreationDate, getDirection, getFilename, getId, getIdentifier, getLastData, getLastData, getLastModified, getMessage, getNotes, getPaddedId, getPreviousStatusInfo, getProperties, getProperty, getProperty, getPropertyBoolean, getPropertyBoolean, getReceiver, getSender, getStatus, getStatusInfo, getStatusTrail, isIncoming, isInput, isOutgoing, isOutput, isStatus, isStatus, isStatus, isStatus, sanityCheckProperties, setChecksum, setCreationDate, setDirection, setFilename, setId, setIdentifier, setLastModified, setMessage, setNotes, setProperties, setProperty, setProperty, setReceiver, setSender, setStatus, setStatus, setStatusTrail
public MtSwiftMessage()
public MtSwiftMessage(java.lang.String fin)
updateFromFIN(String)
public MtSwiftMessage(SwiftMessage model)
updateFromModel(SwiftMessage)
public boolean equals(java.lang.Object obj)
equals
in class AbstractSwiftMessage
public java.lang.String getMessageName()
AbstractSwiftMessage.PROPERTY_NAME
key or the result of getMessageType()
getMessageName
in class AbstractSwiftMessage
public java.lang.String getMessageType()
AbstractSwiftMessage.getIdentifier()
public java.lang.Integer getMessageTypeInt()
getMessageType()
or null if the identifier attribute is not set or not a numberpublic java.lang.String getMir()
public SwiftMessage getModelMessage()
public java.lang.String getMur()
public java.lang.String getPde()
public java.lang.String getPdm()
public java.lang.String getUuid()
public int hashCode()
hashCode
in class AbstractSwiftMessage
public boolean isType(int type)
type
- the message type given as int, to testtrue
if this message type is the type
given, or false
in any other casepublic boolean isType(java.lang.Integer... type)
type
- a variable list of integers for testing to match as the current message typetrue
if the current message type is any of the integers given as parameters, and false
in any other casepublic MtSwiftMessage readFile(java.io.File file) throws java.io.IOException
readFile
in class AbstractSwiftMessage
java.io.IOException
public void setMir(java.lang.String mir)
public void setModelMessage(SwiftMessage modelMessage)
public void setMur(java.lang.String mur)
public void setPde(java.lang.String pde)
public void setPdm(java.lang.String pdm)
public void setUuid(java.lang.String uuid)
public java.lang.String toString()
toString
in class java.lang.Object
public void updateFromFIN()
fin
- the message to updatepublic void updateFromFIN(java.lang.String fin)
fin
- the message to update, cannot be nullpublic void updateFromModel()
public void updateFromModel(SwiftMessage model)
model
- the message to update, cannot be null