public class MtSwiftMessage extends AbstractSwiftMessage
PROPERTY_NAME
Constructor and Description |
---|
MtSwiftMessage() |
MtSwiftMessage(String fin) |
MtSwiftMessage(SwiftMessage model) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getMessageName()
Get the value of the property under the
AbstractSwiftMessage.PROPERTY_NAME key or the result of getMessageType() |
String |
getMessageType()
Get the message type set in the identifier attribute.
|
Integer |
getMessageTypeInt()
Get the integer value of the
getMessageType()
or null if the identifier attribute is not set or not a number |
String |
getMir() |
SwiftMessage |
getModelMessage()
If the modelMessage attribute is set, its value is returned.
|
String |
getMur() |
String |
getPde() |
String |
getPdm() |
String |
getUuid() |
int |
hashCode() |
boolean |
isType(int type)
Test if this message is a given specific type.
|
boolean |
isType(Integer... type)
Tell if this message is any of the given types.
|
MtSwiftMessage |
readFile(File file) |
void |
setMir(String mir) |
void |
setModelMessage(SwiftMessage modelMessage) |
void |
setMur(String mur) |
void |
setPde(String pde) |
void |
setPdm(String pdm) |
void |
setUuid(String uuid) |
String |
toString() |
void |
updateFromFIN()
Updates the derived attributes and the model message from the current raw (FIN) message attribute.
|
void |
updateFromFIN(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(String fin)
updateFromFIN(String)
public MtSwiftMessage(SwiftMessage model)
updateFromModel(SwiftMessage)
public boolean equals(Object obj)
equals
in class AbstractSwiftMessage
public String getMessageName()
AbstractSwiftMessage.PROPERTY_NAME
key or the result of getMessageType()
getMessageName
in class AbstractSwiftMessage
public String getMessageType()
AbstractSwiftMessage.getIdentifier()
public Integer getMessageTypeInt()
getMessageType()
or null if the identifier attribute is not set or not a numberpublic String getMir()
public SwiftMessage getModelMessage()
public String getMur()
public String getPde()
public String getPdm()
public 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(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(File file) throws IOException
readFile
in class AbstractSwiftMessage
IOException
public void setMir(String mir)
public void setModelMessage(SwiftMessage modelMessage)
public void setMur(String mur)
public void setPde(String pde)
public void setPdm(String pdm)
public void setUuid(String uuid)
public void updateFromFIN()
fin
- the message to updatepublic void updateFromFIN(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