/// <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); if (value != null) { string left; string right = null; if (value.IndexOf('/') >= 0) { left = SwiftParseUtils.getTokenFirst(value, "/"); right = SwiftParseUtils.getTokenSecondLast(value, "/"); } else { left = value; } Component1 = SwiftParseUtils.getAlphaPrefix(left); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final String second = getComponent1() == null ? left : org.apache.commons.lang3.StringUtils.substringAfter(left, getComponent1()); string second = Component1 == null ? left : StringUtils.substringAfter(left, Component1); setComponent2(second); if (right != null) { setComponent3(SwiftParseUtils.getTokenFirst(right, "/")); Component4 = SwiftParseUtils.getTokenSecondLast(right, "/"); } } }
/// <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); Component1 = SwiftParseUtils.getTokenFirst(value, ":", "/"); Component2 = SwiftParseUtils.getTokenSecond(value, "/"); Component3 = SwiftParseUtils.getTokenThirdLast(value, "/"); }
/// <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(5); Component1 = SwiftParseUtils.getTokenFirst(value, null, "/"); Component2 = SwiftParseUtils.getTokenSecond(value, "/"); string toparse = SwiftParseUtils.getTokenThirdLast(value, "/"); if (toparse != null) { if (toparse.Length < 5) { Component3 = toparse; } if (toparse.Length >= 5) { Component3 = StringUtils.Substring(toparse, 0, 5); } if (toparse.Length > 5 && toparse.Length < 9) { Component4 = StringUtils.Substring(toparse, 5 - toparse); } if (toparse.Length >= 9) { Component4 = StringUtils.Substring(toparse, 5, 9); } if (toparse.Length > 9) { Component5 = StringUtils.Substring(toparse, 9 - toparse); } } }
/// <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); Component1 = SwiftParseUtils.getTokenFirst(value, ":", "//"); string toparse = SwiftParseUtils.getTokenSecondLast(value, "//"); setComponent2(SwiftParseUtils.getAlphaPrefix(toparse)); setComponent3(SwiftParseUtils.getNumericSuffix(toparse)); }
/// <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); Component1 = SwiftParseUtils.getTokenFirst(value, ":", "//"); string toparse = SwiftParseUtils.getTokenSecondLast(value, "//"); Component2 = SwiftParseUtils.getTokenFirst(toparse, "/"); setComponent3(SwiftParseUtils.getTokenSecondLast(toparse, "/")); }
/// <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], "/", "/"); } } }
/// <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); Component1 = SwiftParseUtils.getTokenFirst(value, null, "/"); string toparse = SwiftParseUtils.getTokenSecondLast(value, "/"); if (StringUtils.isNotBlank(toparse)) { Component2 = SwiftParseUtils.getTokenFirst(toparse, null, "/"); string toparse2 = SwiftParseUtils.getTokenSecondLast(toparse, "/"); if (StringUtils.isNotBlank(toparse2)) { Component3 = SwiftParseUtils.getTokenFirst(toparse2, null, "/"); setComponent4(SwiftParseUtils.getTokenSecondLast(toparse2, "/")); } } }
/// <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); Component1 = SwiftParseUtils.getTokenFirst(value, ":", "//"); string toparse = SwiftParseUtils.getTokenSecondLast(value, "//"); string alpha = SwiftParseUtils.getAlphaPrefix(toparse); if (alpha != null && alpha.Length >= 4) { //optional letter Component2 = StringUtils.Substring(alpha, 0, 1); //remaining string setComponent3(StringUtils.Substring(alpha, 1 - alpha)); } else if (toparse != null && toparse.Length >= 3) { //optional letter not present setComponent3(alpha); } setComponent4(SwiftParseUtils.getNumericSuffix(toparse)); }
/// <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); Component1 = SwiftParseUtils.getTokenFirst(value, "/", "/"); string toparse = SwiftParseUtils.getTokenSecondLast(SwiftParseUtils.removePrefix(value, "/"), "/"); if (toparse != null) { if (toparse.Length >= 4) { setComponent2(StringUtils.Substring(toparse, 0, 4)); } if (toparse.Length >= 5) { Component3 = StringUtils.Substring(toparse, 4, 5); } if (toparse.Length > 5) { setComponent4(StringUtils.Substring(toparse, 5 - toparse)); } } }
/// <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); setComponent1(SwiftParseUtils.getTokenFirst(value, "/")); setComponent2(SwiftParseUtils.getTokenSecond(value, "/")); }
/// <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(1); Component1 = SwiftParseUtils.getTokenFirst(value, "/", null); }