Beispiel #1
0
        public virtual Field29B setNarrative(string value)
        {
            IList <string> lines = SwiftParseUtils.getLines(value);

            SwiftParseUtils.setComponentsFromLines(this, 1, 4, 0, lines);
            return(this);
        }
Beispiel #2
0
        /// <summary>
        /// Parses the parameter value into the internal components structure.
        /// <br>
        /// Used to update all components from a full new value, as an alternative
        /// to setting individual components. Previous component values are overwritten.
        /// </summary>
        /// <param name="value"> complete field value including separators and CRLF
        /// @since 7.8 </param>
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET:
//ORIGINAL LINE: @Override public void parse(final String value)
        public override void parse(string value)
        {
            init(4);
            IList <string> lines = SwiftParseUtils.getLines(value);

            SwiftParseUtils.setComponentsFromLines(this, 1, null, 0, lines);
        }
Beispiel #3
0
        /// <summary>
        /// Parses the parameter value into the internal components structure.
        /// <br>
        /// Used to update all components from a full new value, as an alternative
        /// to setting individual components. Previous component values are overwritten.
        /// </summary>
        /// <param name="value"> complete field value including separators and CRLF
        /// @since 7.8 </param>
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET:
//ORIGINAL LINE: @Override public void parse(final String value)
        public override void parse(string value)
        {
            init(4);
            IList <string> lines = SwiftParseUtils.getLines(value);

            if (lines.Count == 0)
            {
                return;
            }
            Component1 = lines[0];
            if (lines.Count > 1)
            {
                setComponent2(lines[1]);
            }
            if (lines.Count > 2)
            {
                string toparse = lines[2];
                if (toparse != null && toparse.Length >= 4)
                {
                    setComponent3(StringUtils.Substring(toparse, 0, 4));
                    if (toparse.Length > 4)
                    {
                        setComponent4(StringUtils.Substring(toparse, 4 - toparse));
                    }
                }
                else
                {
                    setComponent3(toparse);
                }
            }
        }
Beispiel #4
0
        /// <summary>
        /// Parses the parameter value into the internal components structure.
        /// <br>
        /// Used to update all components from a full new value, as an alternative
        /// to setting individual components. Previous component values are overwritten.
        /// </summary>
        /// <param name="value"> complete field value including separators and CRLF
        /// @since 7.8 </param>
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET:
//ORIGINAL LINE: @Override public void parse(final String value)
        public override void parse(string value)
        {
            init(2);
            IList <string> lines = SwiftParseUtils.getLines(value);

            if (lines.Count > 0)
            {
                Component1 = lines[0];
                if (lines.Count > 1)
                {
                    setComponent2(lines[1]);
                }
            }
        }
Beispiel #5
0
        /// <summary>
        /// Parses the parameter value into the internal components structure.
        /// <br>
        /// Used to update all components from a full new value, as an alternative
        /// to setting individual components. Previous component values are overwritten.
        /// </summary>
        /// <param name="value"> complete field value including separators and CRLF
        /// @since 7.8 </param>
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET:
//ORIGINAL LINE: @Override public void parse(final String value)
        public override void parse(string value)
        {
            init(4);
            IList <string> lines = SwiftParseUtils.getLines(value);

            if (lines.Count > 0)
            {
                setComponent1(SwiftParseUtils.getTokenFirst(lines[0], "/", "/"));
                Component2 = SwiftParseUtils.getTokenSecondLast(lines[0], "/", "/");
                if (lines.Count > 1)
                {
                    setComponent3(SwiftParseUtils.getTokenFirst(lines[1], "/", "/"));
                    Component4 = SwiftParseUtils.getTokenSecondLast(lines[1], "/", "/");
                }
            }
        }
Beispiel #6
0
        /// <summary>
        /// Parses the parameter value into the internal components structure.
        /// <br>
        /// Used to update all components from a full new value, as an alternative
        /// to setting individual components. Previous component values are overwritten.
        /// </summary>
        /// <param name="value"> complete field value including separators and CRLF
        /// @since 7.8 </param>
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET:
//ORIGINAL LINE: @Override public void parse(final String value)
        public override void parse(string value)
        {
            init(3);
            IList <string> lines = SwiftParseUtils.getLines(value);

            if (lines.Count > 0)
            {
                setComponent1(lines[0]);
                if (lines.Count > 1)
                {
                    Component2 = lines[1];
                }
                if (lines.Count > 2)
                {
                    Component3 = lines[2];
                }
            }
        }
Beispiel #7
0
        public virtual IList <string> getLinesBetween(int start, int end, int offset)
        {
            Field29B cp = newInstance(this);

            return(SwiftParseUtils.getLines(getLine(cp, start, end, offset)));
        }
Beispiel #8
0
        public virtual IList <string> getLines(int offset)
        {
            Field29B cp = newInstance(this);

            return(SwiftParseUtils.getLines(getLine(cp, null, null, offset)));
        }