public class SwiftBlock3 extends SwiftTagListBlock implements java.io.Serializable
This block is optional, and contains special processing instructions.
EMPTY_LIST
blockType, input, output, unparsedTexts
Constructor and Description |
---|
SwiftBlock3()
Default constructor
|
SwiftBlock3(java.util.List<Tag> tags)
Constructor with tag initialization
|
Modifier and Type | Method and Description |
---|---|
SwiftBlock3Builder |
builder() |
static SwiftBlock3 |
fromJson(java.lang.String json)
This method deserializes the JSON data into an block 3 object.
|
void |
generateMUR(boolean overwriteIfExist)
This method will generate a MUR field (tag 108) with a timestamp using
current time formatted as yyMMddHHmmssSSSS
|
java.lang.String |
getName()
Returns the block name (the value 3 as a string)
|
java.lang.Integer |
getNumber()
Returns the block number (the value 3 as an integer)
|
java.lang.Boolean |
isSTP()
Indicates if the message is a Straight Through Processing (STP)
|
protected void |
setBlockName(java.lang.String blockName)
Sets the block name.
|
protected void |
setBlockNumber(java.lang.Integer blockNumber)
Sets the block number.
|
addTag, addTags, append, append, append, append, append, append, asTagArray, clear, containsAllOf, containsAnyOf, containsField, containsTag, containsTag, containsTag, countAll, countByName, countTagsStarsWith, equals, fields, filterByName, filterByNameOrdered, getField, getFieldByName, getFieldByName, getFieldByName, getFieldByNumber, getFieldByNumber, getFieldByQualifiers, getFieldsByName, getFieldsByName, getFieldsByNumber, getOptionalList, getOptionalList, getOptionalLists, getSubBlock, getSubBlock, getSubBlock, getSubBlock, getSubBlockAfterFirst, getSubBlockAfterFirst, getSubBlockAfterLast, getSubBlockBeforeFirst, getSubBlockBeforeFirst, getSubBlockBeforeLast, getSubBlockByTagNames, getSubBlockDelimitedWithOptionalTail, getSubBlocks, getSubBlocks, getSubBlocks, getSubBlocks, getSubBlocks, getSubBlocks, getSubBlocksByTagNames, getSubBlocksDelimitedWithOptionalTail, getTag, getTagByName, getTagByName, getTagByNumber, getTagIndex, getTagMap, getTags, getTagsByContent, getTagsByName, getTagsByName, getTagsByNumber, getTagsByValue, getTagValue, getTagValues, hashCode, indexOfAnyFirst, indexOfAnyFirstAfterIndex, indexOfAnyLast, indexOfAnyLastAfterIndex, indexOfFirst, indexOfFirstValue, indexOfLast, indexOfLastValue, isEmpty, iterator, removeAfterFirstStartsWith, removeAll, removeSubBlock, removeSubBlocks, removeTag, setTag, setTags, setTags, size, splitByTagName, splitByTagName, sublist, tagIterator, tagNamesList, toJson, toString, visit
getBlockType, getInput, getOutput, getUnparsedTexts, getUnparsedTextsSize, isTagBlock, setBlockType, setInput, setOutput, setUnparsedTexts, unparsedTextAddText, unparsedTextAddText, unparsedTextGetAsMessage, unparsedTextGetText, unparsedTextIsMessage, unparsedTextVerify
public SwiftBlock3()
public SwiftBlock3(java.util.List<Tag> tags)
tags
- the list of tags to initializepublic static SwiftBlock3 fromJson(java.lang.String json)
SwiftTagListBlock.toJson()
protected void setBlockNumber(java.lang.Integer blockNumber)
setBlockNumber
in class SwiftTagListBlock
blockNumber
- the block number to setjava.lang.IllegalArgumentException
- if parameter blockName is not the integer 3protected void setBlockName(java.lang.String blockName)
setBlockName
in class SwiftTagListBlock
blockName
- the block name to setjava.lang.IllegalArgumentException
- if parameter blockName is not the string "3"public java.lang.Integer getNumber()
getNumber
in class SwiftTagListBlock
public java.lang.String getName()
getName
in class SwiftTagListBlock
public java.lang.Boolean isSTP()
public void generateMUR(boolean overwriteIfExist)
overwriteIfExist
- when true and field 108 already exist, its value will be overwriten with the generated timestamppublic SwiftBlock3Builder builder()