/// <summary> /// Copy constructor.<br> /// Initializes the components list with a deep copy of the source components list. </summary> /// <param name="source"> a field instance to copy /// @since 7.7 </param> public static Field25P newInstance(Field25P source) { Field25P cp = new Field25P(); cp.Components = new List <>(source.Components); return(cp); }
public static Field25P fromJson(string json) { Field25P field = new Field25P(); JsonParser parser = new JsonParser(); JsonObject jsonObject = (JsonObject)parser.parse(json); if (jsonObject.get("account") != null) { field.Component1 = jsonObject.get("account").AsString; } if (jsonObject.get("bIC") != null) { field.setComponent2(jsonObject.get("bIC").AsString); } return(field); }
public virtual IList <string> getLinesBetween(int start, int end, int offset) { Field25P cp = newInstance(this); return(SwiftParseUtils.getLines(getLine(cp, start, end, offset))); }
public virtual IList <string> getLines(int offset) { Field25P cp = newInstance(this); return(SwiftParseUtils.getLines(getLine(cp, null, null, offset))); }
public virtual string getLine(int line, int offset) { Field25P cp = newInstance(this); return(getLine(cp, line, null, offset)); }