Obsidian/Recognition/Programing/Java/JAVA -Json for VO.md

1.3 KiB


package kr.gmtc.gw.elastic.vo;

import java.util.ArrayList;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class LogMsgParserVO_Arraytype {

    private LogMsgHeader header; 
    private ArrayList<LogMsgFieldVO> data;

    public LogMsgParserVO_Arraytype() {
        this.data = new ArrayList<LogMsgFieldVO>();
    }

    @Setter
    @Getter
    public static class LogMsgHeader {
        private String log_dt;
        private String log_se;
        private String sw_se;
        private String server_se;
    }

    @Setter
    @Getter
    public static class LogMsgFieldVO {

        private ArrayList<Object> fields;

        public LogMsgFieldVO(){
            this.fields = new ArrayList<Object>();
        }

        public LogMsgFieldVO(ArrayList<Object> fields){
            this.fields = fields;
        }
        
    }

    @Setter
    @Getter
    public static class LogMsgFieldListVO {

        private List<LogMsgFieldArrayVO> fieldList;

        public LogMsgFieldListVO() {
            
            this.fieldList = new ArrayList<LogMsgFieldArrayVO>();
        }
        
    }

    @Setter
    @Getter
    public static class LogMsgFieldArrayVO {

        private ArrayList<String> fieldArray;
        
    }


}