加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Sax解析xml

发布时间:2020-12-16 00:13:08 所属栏目:百科 来源:网络整理
导读:sax解析一般用来解析比较复杂的xml文件,sax解析xml的速度通常也比dom4j快,在我的文章xml解析中这两种解析方式都会列举出来 sax解析 只需要继承DefaultHandler类 package com.ccx.org.util;import java.io.InputStream;import java.io.StringReader;import

sax解析一般用来解析比较复杂的xml文件,sax解析xml的速度通常也比dom4j快,在我的文章xml解析中这两种解析方式都会列举出来


sax解析 只需要继承DefaultHandler类

package com.ccx.org.util;

import java.io.InputStream;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

import com.ccx.org.pojo.GAlter;
import com.ccx.org.pojo.GBasic;
import com.ccx.org.pojo.GCaseinfo;
import com.ccx.org.pojo.GEntinv;
import com.ccx.org.pojo.GFiliation;
import com.ccx.org.pojo.GFrinv;
import com.ccx.org.pojo.GFrposition;
import com.ccx.org.pojo.GLiquidation;
import com.ccx.org.pojo.GMordetail;
import com.ccx.org.pojo.GMordetailId;
import com.ccx.org.pojo.GMorguainfo;
import com.ccx.org.pojo.GMorguainfoId;
import com.ccx.org.pojo.GOrderlist;
import com.ccx.org.pojo.GPerson;
import com.ccx.org.pojo.GPunishbreak;
import com.ccx.org.pojo.GPunished;
import com.ccx.org.pojo.GShareholder;
import com.ccx.org.pojo.GSharesfrost;
import com.ccx.org.pojo.GSharesimpawn;
import com.ccxe.common.util.StringUtil;

/**
 * 使用javasax解析xml
 * @author *****
 *
 */
public class SaxParseService extends DefaultHandler{

	private List list = null;  
	private String preTag = null;//作用是记录解析时的上一个节点名称  
    //照面信息
	List<GBasic> basicList = null;
    private GBasic basic = null;
    //行政处罚历史信息
    List<GCaseinfo> caseinfoList = null;
    private GCaseinfo caseinfo = null;
    //变更信息
    List<GAlter> alterList = null;
    private GAlter alter = null;
    //企业对外投资
    private List<GEntinv> entinvList = null;
    private GEntinv entinv = null;
    //分支机构信息
    private List<GFiliation> filiationList = null;
    private GFiliation filiation = null;
    //法人对外投资
    private List<GFrinv> frinvList = null;
    private GFrinv frinv = null;
    //法人其他任职信息
    private List<GFrposition> frpositionList = null;
    private GFrposition frposition;
    //清算信息
    private List<GLiquidation> liquidationList = null;
    private GLiquidation liquidation;
    //动产抵押信息
    private List<GMordetail> mordetailList = null;
    private GMordetail mordetail;
    //
    private List<GMordetailId> mordetailIdList = null;
    private GMordetailId mordetailId;
    //动产抵押物信息
    private List<GMorguainfo> morguainfoList = null;
    private GMorguainfo morguainfo;
    //
    private List<GMorguainfoId> morguainfoIdList = null;
    private GMorguainfoId morguainfoId;
    //订单信息
    private List<GOrderlist> orderlistList = null;
    private GOrderlist orderlistId;
    //股东详细信息
    private List<GPerson> personList = null;
    private GPerson person;
    //失信被执行人信息
    private List<GPunishbreak> punishbreakList = null;
    private GPunishbreak punishbreak;
    //被执行人信息
    private List<GPunished> punishedList = null;
    private GPunished punished;
    //股东信息
    private List<GShareholder> shareholderList = null;
    private GShareholder shareholder;
    //股权冻结历史信息
    private List<GSharesfrost> sharesfrostList = null;
    private GSharesfrost sharesfrost;
    //股权出质历史信息
    private List<GSharesimpawn> sharesimpawnList = null;
    private GSharesimpawn sharesimpawn;
    
   
    
    private int nodeTag;//用数字表示当前父节点
	
	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}

	/**
	 * 解析xml文件获取数据
	 * @param xmlStream
	 * @return
	 * @throws Exception
	 */
	public List getData(InputStream xmlStream) throws Exception{  
        SAXParserFactory factory = SAXParserFactory.newInstance();  
        SAXParser parser = factory.newSAXParser();  
        SaxParseService handler = new SaxParseService();  
        parser.parse(xmlStream,handler);  
        return handler.getList();
    } 
	
	/**
	 * 解析xml字符串获取数据
	 * @param xmlStr
	 * @return
	 * @throws Exception
	 */
	public List getData(String xmlStr)throws Exception{
		SAXParserFactory factory = SAXParserFactory.newInstance();  
        SAXParser parser = factory.newSAXParser();  
        SaxParseService handler = new SaxParseService();  
        parser.parse(new InputSource(new StringReader(xmlStr)),handler);
        return handler.getList();
	}
	
	public void startDocument() throws SAXException {  
        list = new ArrayList();  
        basicList = new ArrayList<GBasic>();
        caseinfoList = new ArrayList<GCaseinfo>();
        alterList = new ArrayList<GAlter>();
        entinvList = new ArrayList<GEntinv>();
        filiationList = new ArrayList<GFiliation>();
        frinvList = new ArrayList<GFrinv>();
        frpositionList = new ArrayList<GFrposition>();
        liquidationList = new ArrayList<GLiquidation>();
        mordetailList = new ArrayList<GMordetail>();
        mordetailIdList = new ArrayList<GMordetailId>();
        morguainfoList = new ArrayList<GMorguainfo>();
        orderlistList = new ArrayList<GOrderlist>();
        personList = new ArrayList<GPerson>();
        punishbreakList = new ArrayList<GPunishbreak>();
        punishedList = new ArrayList<GPunished>();
        shareholderList = new ArrayList<GShareholder>();
        sharesfrostList = new ArrayList<GSharesfrost>();
        sharesimpawnList = new ArrayList<GSharesimpawn>();
    }  
	
	public void startElement(String uri,String localName,String qName,Attributes attributes) throws SAXException {  
		
		if("ORDERLIST".equals(qName)){  
			nodeTag = 0;
        } else if("BASIC".equals(qName)){
        	nodeTag = 1;
        }else if("SHAREHOLDER".equals(qName)){
        	nodeTag = 2;
        }else if("PERSON".equals(qName)){
        	nodeTag = 3;
        }else if("FRINV".equals(qName)){
        	nodeTag = 4;
        }else if("FRPOSITION".equals(qName)){
        	nodeTag = 5;
        }else if("ENTINV".equals(qName)){
        	nodeTag = 6;
        }else if("ALTER".equals(qName)){
        	nodeTag = 7;
        }else if("FILIATION".equals(qName)){
        	nodeTag = 8;
        }else if("SHARESIMPAWN".equals(qName)){
        	nodeTag = 9;
        }else if("MORDETAIL".equals(qName)){
        	nodeTag = 10;
        }else if("MORGUAINFO".equals(qName)){
        	nodeTag = 11;
        }else if("PUNISHBREAK".equals(qName)){
        	nodeTag = 12;
        }else if("SHARESFROST".equals(qName)){
        	nodeTag = 13;
        }else if("LIQUIDATION".equals(qName)){
        	nodeTag = 14;
        }else if("CASEINFO".equals(qName)){
        	nodeTag = 15;
        }else if("PUNISHED".equals(qName)){
        	nodeTag = 16;
        }
		switch (nodeTag) {
		case 0:
			break;
		case 1:
			if("ITEM".equals(qName)){
				basic = new GBasic();
			}
			break;
		case 2:
			if("ITEM".equals(qName)){
				shareholder = new GShareholder();
			}
			break;
		case 3:
			if("ITEM".equals(qName)){
				person = new GPerson();
			}
			break;
		case 4:
			if("ITEM".equals(qName)){
				frinv = new GFrinv();
			}
			break;
		case 5:
			if("ITEM".equals(qName)){
				frposition = new GFrposition();
			}
			break;
		case 6:
			if("ITEM".equals(qName)){
				entinv = new GEntinv();
			}
			break;
		case 7:
			if("ITEM".equals(qName)){
				alter = new GAlter();
			}
			break;
		case 8:
			if("ITEM".equals(qName)){
				filiation = new GFiliation();
			}
			break;
		case 9:
			if("ITEM".equals(qName)){
				sharesimpawn = new GSharesimpawn();
			}
			break;
		case 10:
			if("ITEM".equals(qName)){
				mordetail = new GMordetail();
			}
			break;
		case 11:
			if("ITEM".equals(qName)){
				morguainfo = new GMorguainfo();
			}
			break;
		case 12:
			if("ITEM".equals(qName)){
				punishbreak = new GPunishbreak();
			}
			break;
		case 13:
			if("ITEM".equals(qName)){
				sharesfrost = new GSharesfrost();
			}
			break;
		case 14:
			if("ITEM".equals(qName)){
				liquidation = new GLiquidation();
			}
			break;
		case 15:
			if("ITEM".equals(qName)){
				caseinfo = new GCaseinfo();
			}
			break;
		case 16:
			if("ITEM".equals(qName)){
				punished = new GPunished();
			}
			break;
		

		default:
			break;
		}
		
        preTag = qName;//将正在解析的节点名称赋给preTag  
    } 
		
	public void endElement(String uri,String qName)  
            throws SAXException {  
			switch (nodeTag) {
			case 0:
				break;
			case 1:
				if("ITEM".equals(qName)){
					if(null != basic){
						basicList.add(basic);
						list.add(basicList);
					}
		        }
				break;
			case 2:
				if("ITEM".equals(qName)){
					if(null != shareholder){
						shareholderList.add(shareholder);
						list.add(shareholderList);
					}
		        }
				break;
			case 3:
				if("ITEM".equals(qName)){
					if(null != person){
						personList.add(person);
						list.add(personList);
					}
		        }
				break;
			case 4:
				if("ITEM".equals(qName)){
					if(null != frinv){
						frinvList.add(frinv);
						list.add(frinvList);
					}
		        }
				break;
			case 5:
				if("ITEM".equals(qName)){
					if(null != frposition){
						frpositionList.add(frposition);
						list.add(frpositionList);
					}
		        }
				break;
			case 6:
				if("ITEM".equals(qName)){
					if(null != entinv){
						entinvList.add(entinv);
						list.add(entinvList);
					}
		        }
				break;
			case 7:
				if("ITEM".equals(qName)){
					if(null != alter){
						alterList.add(alter);
						list.add(alterList);
					}
		        }
				break;
			case 8:
				if("ITEM".equals(qName)){
					if(null != filiation){
						filiationList.add(filiation);
						list.add(filiationList);
					}
		        }
				break;
			case 9:
				if("ITEM".equals(qName)){
					if(null != sharesimpawn){
						sharesimpawnList.add(sharesimpawn);
						list.add(sharesimpawnList);
					}
		        }
				break;
			case 10:
				if("ITEM".equals(qName)){
					if(null != mordetail){
						mordetailList.add(mordetail);
						list.add(mordetailList);
					}
		        }
				break;
			case 11:
				if("ITEM".equals(qName)){
					if(null != morguainfo){
						morguainfoList.add(morguainfo);
						list.add(morguainfoList);
					}
		        }
				break;
			case 12:
				if("ITEM".equals(qName)){
					if(null != punishbreak){
						punishbreakList.add(punishbreak);
						list.add(punishbreakList);
					}
				}
				break;
			case 13:
				if("ITEM".equals(qName)){
					if(null != sharesfrost){
						sharesfrostList.add(sharesfrost);
						list.add(sharesfrostList);
					}
				}
				break;
			case 14:
				if("ITEM".equals(qName)){
					if(null != liquidation){
						liquidationList.add(liquidation);
						list.add(liquidationList);
					}
				}
				break;
			case 15:
				if("ITEM".equals(qName)){
					if(null != caseinfoList){
						caseinfoList.add(caseinfo);
						list.add(caseinfoList);
					}
				}
				break;
			case 16:
				if("ITEM".equals(qName)){
					if(null != punished){
						punishedList.add(punished);
						list.add(punishedList);
					}
				}
				break;

			default:
				break;
			}
		 	preTag = null;
    }  
      
    @Override  
    public void characters(char[] ch,int start,int length) throws SAXException {  
        if(preTag!=null){  
            String content = new String(ch,start,length); 
            content = StringUtil.isNull(content)?"":content+"";
            setParams(nodeTag,preTag,content);
        }  
    }
    
    
    private void setParams(int nodeTag,String preTag,String content){
    	switch (nodeTag) {
		case 1:
			 if("ENTNAME".equals(preTag)){  
	                basic.setEntname(content);
	           }else if("FRNAME".equals(preTag)){  
	                basic.setFrname(content);
	           } else if("REGNO".equals(preTag)){
	           		basic.setRegno(content);
	           }else if("ORIREGNO".equals(preTag)){
	           		basic.setOriregno(content);
	           }else if("REGCAP".equals(preTag)){
	           		basic.setRegcap(content);
	           }else if("RECCAP".equals(preTag)){
	           		basic.setReccap(content);
	           }else if("REGCAPCUR".equals(preTag)){
	           		basic.setRegcapcur(content);
	           }else if("ESDATE".equals(preTag)){
	           		basic.setEsdate(content);
	           }else if("OPFROM".equals(preTag)){
	           		basic.setOpfrom(content);
	           }else if("OPTO".equals(preTag)){
	           		basic.setOpto(content);
	           }else if("ENTTYPE".equals(preTag)){
	           		basic.setEnttype(content);
	           }else if("ENTSTATUS".equals(preTag)){
	           		basic.setEntstatus(content);
	           }else if("CHANGEDATE".equals(preTag)){
	           		basic.setChangedate(content);
	           }else if("CANDATE".equals(preTag)){
	           		basic.setCandate(content);
	           }else if("REVDATE".equals(preTag)){
	           		basic.setRevdate(content);
	           }else if("DOM".equals(preTag)){
	           		basic.setDom(content);
	           }else if("ABUITEM".equals(preTag)){
	           		basic.setAbuitem(content);
	           }else if("CBUITEM".equals(preTag)){
	        	    basic.setCbuitem(content);
	           }else if("OPSCOPE".equals(preTag)){
	           		basic.setOpscope(content);
	           }else if("OPSCOANDFORM".equals(preTag)){
	           		basic.setOpscoandform(content);
	           }else if("REGORGCODE".equals(preTag)){
	           		basic.setRegorgcode(content);
	           }else if("REGORGPROVINCE".equals(preTag)){
	           		basic.setRegorgprovince(content);
	           }else if("ANCHEYEAR".equals(preTag)){
	           		basic.setAncheyear(content);
	           }else if("ANCHEDATE".equals(preTag)){
	           		basic.setAnchedate(content);
	           }else if("INDUSTRYPHYCODE".equals(preTag)){
	           		basic.setIndustryphycode(content);
	           }else if("INDUSTRYPHYNAME".equals(preTag)){
	           		basic.setIndustryphyname(content);
	           }else if("INDUSTRYCOCODE".equals(preTag)){
	           		basic.setIndustrycocode(content);
	           }else if("INDUSTRYCONAME".equals(preTag)){
	           	 	basic.setIndustryconame(content);
	           }
			break;
		case 2:
			if("SHANAME".equals(preTag)){  
				shareholder.setShaname(content);
			}else if("SUBCONAM".equals(preTag)){  
				shareholder.setSubconam(content);
			} else if("REGCAPCUR".equals(preTag)){
				shareholder.setRegcapcur(content);
			}else if("CONFORM".equals(preTag)){
				shareholder.setConform(content);
			}else if("FUNDEDRATIO".equals(preTag)){
				shareholder.setFundedratio(content);
			}else if("CONDATE".equals(preTag)){
				shareholder.setCondate(content);
			}else if("COUNTRY".equals(preTag)){
				shareholder.setCountry(content);
			}else if("INVAMOUNT".equals(preTag)){
				shareholder.setInvamount(content);
			}else if("SUMCONAM".equals(preTag)){
				shareholder.setSumconam(content);
			}else if("INVSUMFUNDEDRATIO".equals(preTag)){
				shareholder.setInvsumfundedratio(content);
			}
			break;
		case 3:
			if("PERNAME".equals(preTag)){  
				person.setPername(content);
			}else if("POSITION".equals(preTag)){  
				person.setPosition(content);
			} else if("SEX".equals(preTag)){
				person.setSex(content);
			}else if("PERSONAMOUNT".equals(preTag)){
				person.setPersonamount(content);
			}
			break;
		case 4://FRINV
			if("NAME".equals(preTag)){  
				frinv.setName(content);
			}else if("ENTNAME".equals(preTag)){  
				frinv.setEntname(content);
			} else if("REGNO".equals(preTag)){
				frinv.setRegno(content);
			}else if("ENTTYPE".equals(preTag)){
				frinv.setEnttype(content);
			}else if("REGCAP".equals(preTag)){
				frinv.setRegcap(content);
			}else if("REGCAPCUR".equals(preTag)){
				frinv.setRegcapcur(content);
			}else if("ENTSTATUS".equals(preTag)){
				frinv.setEntstatus(content);
			}else if("CANDATE".equals(preTag)){
				frinv.setCandate(content);
			}else if("REVDATE".equals(preTag)){
				frinv.setRevdate(content);
			}else if("REGORG".equals(preTag)){
				frinv.setRegorg(content);
			}else if("SUBCONAM".equals(preTag)){
				frinv.setSubconam(content);
			}else if("CURRENCY".equals(preTag)){
				frinv.setCurrency(content);
			}else if("CONFORM".equals(preTag)){
				frinv.setConform(content);
			}else if("FUNDEDRATIO".equals(preTag)){
				frinv.setFundedratio(content);
			}else if("ESDATE".equals(preTag)){
				frinv.setEsdate(content);
			}
			break;
		case 5://FRPOSITION
			if("NAME".equals(preTag)){  
				frposition.setName(content);
			}else if("ENTNAME".equals(preTag)){  
				frposition.setEntname(content);
			} else if("REGNO".equals(preTag)){
				frposition.setRegno(content);
			}else if("ENTTYPE".equals(preTag)){
				frposition.setEnttype(content);
			}else if("REGCAP".equals(preTag)){
				frposition.setRegcap(content);
			}else if("REGCAPCUR".equals(preTag)){
				frposition.setRegcapcur(content);
			}else if("ENTSTATUS".equals(preTag)){
				frposition.setEntstatus(content);
			}else if("CANDATE".equals(preTag)){
				frposition.setCandate(content);
			}else if("REVDATE".equals(preTag)){
				frposition.setRevdate(content);
			}else if("REGORG".equals(preTag)){
				frposition.setRegorg(content);
			}else if("POSITION".equals(preTag)){
				frposition.setPosition(content);
			}else if("LEREPSIGN".equals(preTag)){
				frposition.setLerepsign(content);
			}else if("ESDATE".equals(preTag)){
				frposition.setEsdate(content);
			}
			break;
		case 6://ENTINV
			if("ENTNAME".equals(preTag)){  
				entinv.setEntname(content);
			}else if("REGNO".equals(preTag)){
				entinv.setRegno(content);
			}else if("ENTTYPE".equals(preTag)){
				entinv.setEnttype(content);
			}else if("REGCAP".equals(preTag)){
				entinv.setRegcap(content);
			}else if("REGCAPCUR".equals(preTag)){
				entinv.setRegcapcur(content);
			}else if("ENTSTATUS".equals(preTag)){
				entinv.setEntstatus(content);
			}else if("CANDATE".equals(preTag)){
				entinv.setCandate(content);
			}else if("REVDATE".equals(preTag)){
				entinv.setRevdate(content);
			}else if("REGORG".equals(preTag)){
				entinv.setRegorg(content);
			}else if("SUBCONAM".equals(preTag)){
				entinv.setSubconam(content);
			}else if("CONGROCUR".equals(preTag)){
				entinv.setCongrocur(content);
			}else if("CONFORM".equals(preTag)){
				entinv.setConform(content);
			}else if("FUNDEDRATIO".equals(preTag)){
				entinv.setFundedratio(content);
			}else if("NAME".equals(preTag)){
				entinv.setName(content);
			}
			break;
		case 7://ALTER
			if("ALTDATE".equals(preTag)){  
				alter.setAltdate(content);
			}else if("ALTITEM".equals(preTag)){  
				alter.setAltitem(content);
			} else if("ALTBE".equals(preTag)){
				alter.setAltbe(content);
			}else if("ALTAF".equals(preTag)){
				alter.setAltaf(content);
			}
			break;
		case 8://FILIATION
			if("BRNAME".equals(preTag)){  
				filiation.setBrname(content);
			}else if("BRREGNO".equals(preTag)){  
				filiation.setBrregno(content);
			} else if("BRPRINCIPAL".equals(preTag)){
				filiation.setBrprincipal(content);
			}else if("CBUITEM".equals(preTag)){
				filiation.setCbuitem(content);
			}else if("BRADDR".equals(preTag)){
				filiation.setBraddr(content);
			}
			break;
		case 9://SHARESIMPAWN
			if("IMPORG".equals(preTag)){  
				sharesimpawn.setImporg(content);
			}else if("IMPORGTYPE".equals(preTag)){  
				sharesimpawn.setImporgtype(content);
			} else if("IMPAM".equals(preTag)){
				sharesimpawn.setImpam(content);
			}else if("IMPONRECDATE".equals(preTag)){
				sharesimpawn.setImponrecdate(content);
			}else if("IMPEXAEEP".equals(preTag)){
				sharesimpawn.setImpexaeep(content);
			}else if("IMPSANDATE".equals(preTag)){
				sharesimpawn.setImpsandate(content);
			}else if("IMPTO".equals(preTag)){
				sharesimpawn.setImpto(content);
			}
			break;
		case 10://MORDETAIL
			if("MORTGAGOR".equals(preTag)){  
				mordetail.setMortgagor(content);
			}else if("MORE".equals(preTag)){  
				mordetail.setMore(content);
			} else if("REGORG".equals(preTag)){
				mordetail.setRegorg(content);
			}else if("REGIDATE".equals(preTag)){
				mordetail.setRegidate(content);
			}else if("MORREGCNO".equals(preTag)){
				mordetail.setMorregcno(content);
			}else if("APPREGREA".equals(preTag)){
				mordetail.setAppregrea(content);
			}else if("PRICLASECKIND".equals(preTag)){
				mordetail.setPriclaseckind(content);
			}else if("PRICLASECAM".equals(preTag)){
				mordetail.setPriclasecam(content);
			}else if("PEFPERFORM".equals(preTag)){
				mordetail.setPefperform(content);
			}else if("PEFPERTO".equals(preTag)){
				mordetail.setPefperto(content);
			}else if("CANDATE".equals(preTag)){
				mordetail.setCandate(content);
			}
			break;
		case 11://MORGUAINFO
			if("GUANAME".equals(preTag)){  
				morguainfo.setGuaname(content);
			}else if("QUAN".equals(preTag)){  
				morguainfo.setQuan(content);
			} else if("VALUE".equals(preTag)){
				morguainfo.setValue(content);
			}
			break;
		case 12://PUNISHBREAK
			if("CASECODE".equals(preTag)){  
				punishbreak.setCasecode(content);
			}else if("INAMECLEAN".equals(preTag)){  
				punishbreak.setInameclean(content);
			} else if("TYPE".equals(preTag)){
				punishbreak.setType(content);
			}else if("SEXYCLEAN".equals(preTag)){
				punishbreak.setSexyclean(content);
			}else if("CARDNUM".equals(preTag)){
				punishbreak.setCardnum(content);
			}else if("YSFZD".equals(preTag)){
				punishbreak.setYsfzd(content);
			}else if("BUSINESSENTITY".equals(preTag)){
				punishbreak.setBusinessentity(content);
			}else if("REGDATECLEAN".equals(preTag)){
				punishbreak.setRegdateclean(content);
			}else if("PUBLISHDATECLEAN".equals(preTag)){
				punishbreak.setPublishdateclean(content);
			}else if("COURTNAME".equals(preTag)){
				punishbreak.setCourtname(content);
			}else if("AREANAMECLEAN".equals(preTag)){
				punishbreak.setAreanameclean(content);
			}else if("GISTID".equals(preTag)){
				punishbreak.setGistid(content);
			}else if("GISTUNIT".equals(preTag)){
				punishbreak.setGistunit(content);
			}else if("DUTY".equals(preTag)){
				punishbreak.setDuty(content);
			}else if("DISRUPTTYPENAME".equals(preTag)){
				punishbreak.setDisrupttypename(content);
			}else if("PERFORMANCE".equals(preTag)){
				punishbreak.setPerformance(content);
			}else if("PERFORMEDPART".equals(preTag)){
				punishbreak.setPerformedpart(content);
			}else if("UNPERFORMPART".equals(preTag)){
				punishbreak.setUnperformpart(content);
			}
			break;
		case 13://SHARESFROST
			if("FRODOCNO".equals(preTag)){  
				sharesfrost.setFrodocno(content);
			}else if("FROAUTH".equals(preTag)){  
				sharesfrost.setFroauth(content);
			} else if("FROFROM".equals(preTag)){
				sharesfrost.setFrofrom(content);
			}else if("FROTO".equals(preTag)){
				sharesfrost.setFroto(content);
			}else if("FROAM".equals(preTag)){
				sharesfrost.setFroam(content);
			}else if("THAWAUTH".equals(preTag)){
				sharesfrost.setThawauth(content);
			}else if("THAWDOCNO".equals(preTag)){
				sharesfrost.setThawdocno(content);
			}else if("THAWDATE".equals(preTag)){
				sharesfrost.setThawdate(content);
			}else if("THAWCOMMENT".equals(preTag)){
				sharesfrost.setThawcomment(content);
			}
			break;
		case 14://LIQUIDATION
			if("LIGENTITY".equals(preTag)){  
				liquidation.setLigentity(content);
			}else if("LIGPRINCIPAL".equals(preTag)){  
				liquidation.setLigprincipal(content);
			} else if("LIQMEN".equals(preTag)){
				liquidation.setLiqmen(content);
			}else if("LIGST".equals(preTag)){
				liquidation.setLigst(content);
			}else if("LIGENDDATE".equals(preTag)){
				liquidation.setLigenddate(content);
			}else if("DEBTTRANEE".equals(preTag)){
				liquidation.setDebttranee(content);
			}else if("CLAIMTRANEE".equals(preTag)){
				liquidation.setClaimtranee(content);
			}
			break;
		case 15://CASEINFO
			if("CASETIME".equals(preTag)){  
				caseinfo.setCasetime(content);
			}else if("CASEREASON".equals(preTag)){  
				caseinfo.setCasereason(content);
			} else if("CASEVAL".equals(preTag)){
				caseinfo.setCaseval(content);
			}else if("CASETYPE".equals(preTag)){
				caseinfo.setCasetype(content);
			}else if("EXESORT".equals(preTag)){
				caseinfo.setExesort(content);
			}else if("CASERESULT".equals(preTag)){
				caseinfo.setCaseresult(content);
			}else if("PENDECNO".equals(preTag)){
				caseinfo.setPendecno(content);
			}else if("PENDECISSDATE".equals(preTag)){
				caseinfo.setPendecissdate(content);
			}else if("PENAUTH".equals(preTag)){
				caseinfo.setPenauth(content);
			}else if("ILLEGFACT".equals(preTag)){
				caseinfo.setIllegfact(content);
			}else if("PENBASIS".equals(preTag)){
				caseinfo.setPenbasis(content);
			}else if("PENTYPE".equals(preTag)){
				caseinfo.setPentype(content);
			}else if("PENRESULT".equals(preTag)){
				caseinfo.setPenresult(content);
			}else if("PENAM".equals(preTag)){
				caseinfo.setPenam(content);
			}else if("PENEXEST".equals(preTag)){
				caseinfo.setPenexest(content);
			}
			break;
		case 16://PUNISHED
			if("INAMECLEAN".equals(preTag)){  
				punished.setInameclean(content);
			}else if("REGDATECLEAN".equals(preTag)){  
				punished.setRegdateclean(content);
			} else if("COURTNAME".equals(preTag)){
				punished.setCourtname(content);
			}else if("EXECMONEY".equals(preTag)){
				punished.setExecmoney(content);
			}
			break;

		default:
			break;
		}
    }
    
    
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读