示例#1
0
        /// <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);
        }
示例#2
0
        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);
        }
示例#3
0
        public virtual IList <string> getLinesBetween(int start, int end, int offset)
        {
            Field25P cp = newInstance(this);

            return(SwiftParseUtils.getLines(getLine(cp, start, end, offset)));
        }
示例#4
0
        public virtual IList <string> getLines(int offset)
        {
            Field25P cp = newInstance(this);

            return(SwiftParseUtils.getLines(getLine(cp, null, null, offset)));
        }
示例#5
0
        public virtual string getLine(int line, int offset)
        {
            Field25P cp = newInstance(this);

            return(getLine(cp, line, null, offset));
        }