Class MT107.SequenceA

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<Tag>
    Enclosing class:
    MT107

    public static class MT107.SequenceA
    extends SwiftTagListBlock
    Class to model Sequence "A" in MT 107.
    See Also:
    Serialized Form
    • Field Detail

      • START

        public static final java.lang.String[] START
        First mandatory tag name of the sequence: "20" . Array format is for cases when more than one letter options is allowed
      • END

        protected static final java.lang.String[] END
        Last mandatory tag name of the sequence: "30" Array format is for cases when more than one letter options is allowed
      • TAIL

        protected static final java.lang.String[] TAIL
        List of optional tags after the last mandatory tag.
    • Method Detail

      • newInstance

        @SequenceStyle(GENERATED_FIXED_WITH_OPTIONAL_TAIL)
        public static MT107.SequenceA newInstance​(Tag... tags)
        Same as newInstance(int, int, Tag...) using zero for the indexes.
        Parameters:
        tags - the list of tags to set as sequence content
        Returns:
        a new instance of the sequence, initialized with the parameter tags
      • newInstance

        @SequenceStyle(GENERATED_FIXED_WITH_OPTIONAL_TAIL)
        public static MT107.SequenceA newInstance​(int start,
                                                  int end,
                                                  Tag... tags)
        Creates a sequence with starting and ending tags set to the indicated tags in from the START and END lists of mandatory fields, and with the content between the starting and ending tag initialized with the given optional tags.
        Parameters:
        start - a zero-based index within the list of mandatory starting tags in the sequence
        end - a zero-based index within the list of mandatory ending tags in the sequence
        tags - the list of tags to set as sequence content
        Returns:
        a new instance of the sequence, initialized with the parameter tags