Class MT360.SequenceO1a

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

    public static class MT360.SequenceO1a
    extends SwiftTagListBlock
    Class to model Sequence "O1a" in MT 360.
    See Also:
    Serialized Form
    • Field Detail

      • START

        public static final java.lang.String[] START
        First mandatory tag name of the sequence: "22M" . 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: "22N" 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 MT360.SequenceO1a 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 MT360.SequenceO1a 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