public class SwiftBlock5 extends SwiftTagListBlock implements java.io.Serializable
Each SWIFT message has one or more trailers as required by
the message exchange and security requirements.
System trailers, if applicable, follow user trailers.
EMPTY_LIST
blockType, id, input, output, unparsedTexts
Constructor and Description |
---|
SwiftBlock5()
Default constructor
|
SwiftBlock5(java.util.List<Tag> tags)
Constructor with tag initialization
|
Modifier and Type | Method and Description |
---|---|
static SwiftBlock5 |
fromJson(java.lang.String json)
This method deserializes the JSON data into a block 5 object.
|
java.lang.String |
getName()
Returns the block name (the value 5 as a string)
|
java.lang.Integer |
getNumber()
Returns the block number (the value 5 as an integer)
|
java.util.Optional<Tag> |
getTag(SwiftBlock5Field field)
Gets a specific field from the trailer.
|
protected void |
setBlockName(java.lang.String blockName)
Sets the block name.
|
protected void |
setBlockNumber(java.lang.Integer blockNumber)
Sets the block number.
|
SwiftBlock5 |
setPDE()
Sets the Possible Duplicate Emission tag with no value.
|
SwiftBlock5 |
setTag(SwiftBlock5Field field,
java.lang.String value)
Sets a specific field in the trailer.
|
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, getSubBlockBeforeLast, getSubBlockByIndex, 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, toJsonV1, toString, trimAfterFirst, visit
getBlockType, getId, getInput, getOutput, getUnparsedTexts, getUnparsedTextsSize, isTagBlock, setBlockType, setId, setInput, setOutput, setUnparsedTexts, unparsedTextAddText, unparsedTextAddText, unparsedTextGetAsMessage, unparsedTextGetText, unparsedTextIsMessage, unparsedTextVerify
public SwiftBlock5()
public SwiftBlock5(java.util.List<Tag> tags)
tags
- the list of tags to initializejava.lang.IllegalArgumentException
- if parameter tags is nulljava.lang.IllegalArgumentException
- if parameter tags is not composed of Stringsprotected 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 5protected 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 "5"public java.lang.Integer getNumber()
getNumber
in class SwiftTagListBlock
public java.lang.String getName()
getName
in class SwiftTagListBlock
public static SwiftBlock5 fromJson(java.lang.String json)
SwiftTagListBlock.toJson()
public SwiftBlock5 setTag(SwiftBlock5Field field, java.lang.String value)
field
- the specific field to set or updatevalue
- optional field value, could be a time, a MIR, or any other value for the field; null is also accepted when the field should hold no valuepublic java.util.Optional<Tag> getTag(SwiftBlock5Field field)
field
- the specific field to getpublic SwiftBlock5 setPDE()