1213141516171819202122
if(parttype.startsWith("single")) { rtn= new SinglePartions(); }else if(parttype.startsWith("dir")){ rtn= new DirtoryPartions(); }else{ rtn= new ThedatePartions(); } rtn.setPartionType(parttype); return rtn;