public abstract class SwiftBlock2 extends SwiftValueBlock implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
messagePriority
String of 1 character containing the message priority as follows:
S = System N = Normal U = Urgent |
protected java.lang.String |
messageType
String of 3 character containing the Message Type (MT)
as classified and numbered by SWIFT.
|
blockType, id, input, output, unparsedTexts
Constructor and Description |
---|
SwiftBlock2()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clean()
Sets all attributes to null
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessagePriority()
Gets the message priority
|
java.lang.String |
getMessageType()
Gets the Message Type (MT) as classified and numbered by SWIFT.
|
java.lang.String |
getName()
Returns the block name (the value 2 as a string)
|
java.lang.Integer |
getNumber()
Returns the block number (the value 2 as an integer)
|
int |
hashCode() |
boolean |
isInput()
Returns
true if this block 2 is an input block 2. |
boolean |
isOutput()
Returns
true if this block 2 is an output block 2. |
protected void |
setBlockName(java.lang.String blockName)
Sets the block name.
|
protected void |
setBlockNumber(java.lang.Integer blockNumber)
Sets the block number.
|
void |
setMessagePriority(java.lang.String messagePriority)
Set the message priority
|
void |
setMessageType(java.lang.String messageType)
Sets the Message Type (MT) as classified and numbered by SWIFT.
|
java.lang.String |
toJson()
intended to be overwritten
|
java.lang.String |
toString()
convert this to string
|
getBlockValue, getValue, getValuePart, isEmpty, setBlockValue, setValue, size
getBlockType, getId, getUnparsedTexts, getUnparsedTextsSize, isTagBlock, setBlockType, setId, setInput, setOutput, setUnparsedTexts, unparsedTextAddText, unparsedTextAddText, unparsedTextGetAsMessage, unparsedTextGetText, unparsedTextIsMessage, unparsedTextVerify
protected java.lang.String messagePriority
protected java.lang.String messageType
public void clean()
public boolean equals(java.lang.Object obj)
equals
in class SwiftBlock
public java.lang.String getMessagePriority()
public java.lang.String getMessageType()
public java.lang.String getName()
getName
in class SwiftBlock
public java.lang.Integer getNumber()
getNumber
in class SwiftBlock
public int hashCode()
hashCode
in class SwiftBlock
public boolean isInput()
true
if this block 2 is an input block 2.true
if block 2 is input, of false
in other casepublic boolean isOutput()
true
if this block 2 is an output block 2.true
if block 2 is output, of false
in other caseprotected void setBlockName(java.lang.String blockName)
setBlockName
in class SwiftBlock
blockName
- the block name to setjava.lang.IllegalArgumentException
- if parameter blockName is not the string "2"protected void setBlockNumber(java.lang.Integer blockNumber)
setBlockNumber
in class SwiftBlock
blockNumber
- the block number to setjava.lang.IllegalArgumentException
- if parameter blockName is not the integer 2public void setMessagePriority(java.lang.String messagePriority)
messagePriority
- the message prioritypublic void setMessageType(java.lang.String messageType)
messageType
- String of 3 characterpublic java.lang.String toJson()
public java.lang.String toString()
toString
in class SwiftBlock