public class SwiftBlock4 extends SwiftTagListBlock implements java.io.Serializable
EMPTY_LISTblockType, input, output, unparsedTexts| Constructor and Description |
|---|
SwiftBlock4()
Default constructor
|
SwiftBlock4(java.util.List<Tag> tags)
Constructor with tag initialization
|
| Modifier and Type | Method and Description |
|---|---|
static SwiftBlock4 |
fromJson(java.lang.String json)
This method deserializes the JSON data into an block 4 object.
|
java.lang.String |
getName()
Returns the block name (the value 4 as a string)
|
java.lang.Integer |
getNumber()
Returns the block number (the value 4 as an integer)
|
static SwiftBlock4 |
removeEmptySequences(SwiftBlock4 b4)
Creates a new block with all empty sequences removed.
|
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, visitgetBlockType, getInput, getOutput, getUnparsedTexts, getUnparsedTextsSize, isTagBlock, setBlockType, setInput, setOutput, setUnparsedTexts, unparsedTextAddText, unparsedTextAddText, unparsedTextGetAsMessage, unparsedTextGetText, unparsedTextIsMessage, unparsedTextVerifypublic SwiftBlock4()
public SwiftBlock4(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 Stringspublic static SwiftBlock4 removeEmptySequences(SwiftBlock4 b4)
The implementation uses as sequence boundaries the fields: 16R, 16S and 15a. Two consecutive 16R (start of sequence) and 16S (end of sequence) with the same qualifier are considered an empty sequence so both boundary fields 16R and 16S will be dropped. For field 15a (start of sequence) there is no end of sequence boundary so if two consecutive 15a are found, the first one will be dropped. Also a 15a at the end of the block will be considered and empty sequence.
b4 - a block with sequences to filterpublic static SwiftBlock4 fromJson(java.lang.String json)
SwiftTagListBlock.toJson()protected void setBlockNumber(java.lang.Integer blockNumber)
setBlockNumber in class SwiftTagListBlockblockNumber - the block number to setjava.lang.IllegalArgumentException - if parameter blockName is not the integer 4protected void setBlockName(java.lang.String blockName)
setBlockName in class SwiftTagListBlockblockName - the block name to setjava.lang.IllegalArgumentException - if parameter blockName is not the string "4"public java.lang.Integer getNumber()
getNumber in class SwiftTagListBlockpublic java.lang.String getName()
getName in class SwiftTagListBlock