示例#1
0
 @Override
 public Object visitePenalities(final NodePenalities parent, final Object data) {
   final ObjStep step = (ObjStep) data;
   for (int i = 0; i < parent.getNumChild(); i++) {
     final ObjPenalite penalite = (ObjPenalite) parent.getChild(i).accept(this, null);
     step.addPenalite(penalite);
   }
   return null;
 }
示例#2
0
 @Override
 public Object visiteCategories(final NodeCategories parent, final Object data) {
   if (data instanceof ObjManifestation) {
     final ObjManifestation manif = (ObjManifestation) data;
     for (int i = 0; i < parent.getNumChild(); i++) {
       final ObjCategorie cat = (ObjCategorie) parent.getChild(i).accept(this, data);
       manif.addCategorie(cat);
     }
   }
   if (data instanceof ObjStep) {
     final ObjStep step = (ObjStep) data;
     for (int i = 0; i < parent.getNumChild(); i++) {
       final ObjCategorie cat = (ObjCategorie) parent.getChild(i).accept(this, data);
       step.addFiltreCategory(cat);
     }
   }
   return null;
 }
示例#3
0
 @Override
 public Object visiteStep(final NodeStep nodeStep, final Object data) {
   final ObjStep step = createStep(nodeStep._name);
   step.setCumulerSousEtape(nodeStep._cumulersousetape);
   step.setActif(nodeStep._calcul);
   step.setArretChrono(nodeStep._arretchrono);
   step.setOrdre(EMPTY + nodeStep._id);
   step.setBaliseDepart(nodeStep._balisedepart);
   step.setBaliseArrivee(nodeStep._balisearrivee);
   step.setInfo(ObjStep.VAR_DESCRIPTION, nodeStep._desc);
   step.setInfo(ObjStep.VAR_FILENAME_IMPORT, nodeStep._importfilename);
   step.setCategoryFilter(nodeStep._categoryfilter);
   step.setClassementInter(nodeStep._classementinter);
   step.setEpreuve(nodeStep._epreuve);
   step.setDateLastImport(createDate(nodeStep._lastimport));
   step.setImportAuto(nodeStep._importauto);
   step.setPenalitySaisie(nodeStep._penalityseizure);
   loadObject(step, nodeStep);
   final AbstractSteps parent = (AbstractSteps) data;
   for (int i = 0; i < nodeStep.getNumChild(); i++) {
     nodeStep.getChild(i).accept(this, step);
   }
   parent.addStep(step);
   return null;
 }