Examples of clean()


Examples of fr.soleil.salsa.persistence.model.Configuration.clean()

                if (result instanceof IConfig<?>) {
                    IConfig<?> sc = (IConfig<?>) result;
                    sc.setChartProperties(c.getChartProperties());
                    sc.setPlotPropertiesMap(c.getPlotPropertiesMap());
                }
                c.clean();
            }
            if (result == null) {
                StringBuilder builder = new StringBuilder(
                        "Failed to find configuration matching id = ");
                builder.append(id);
View Full Code Here

Examples of fr.soleil.salsa.persistence.model.Configuration.clean()

                    result.setType(IConfig.ScanType.SCAN_K);
                } else if (c.getType().equals("ConfigEnergy")) {
                    result.setType(IConfig.ScanType.SCAN_ENERGY);
                }

                c.clean();
            }
            if (result == null) {
                StringBuilder builder = new StringBuilder("Failed to find configuration matching id = ");
                builder.append(id);
                throw new ScanNotFoundException(builder.toString());
View Full Code Here

Examples of fr.soleil.salsa.persistence.model.Configuration.clean()

            if (result.getDirectory() != null && c.getDirectory() != null) {
                result.getDirectory().setTimestamp(c.getDirectory().getTimestamp());
            }
            result.setModified(false);
        }
        c.clean();
        // System.out.println("Actuator= " + result.getDimensionX().getActuatorsList().size());
        return result;
    }

    @Override
View Full Code Here

Examples of fr.soleil.salsa.persistence.model.Configuration.clean()

            if (result.getDirectory() != null && c.getDirectory() != null) {
                result.getDirectory().setTimestamp(c.getDirectory().getTimestamp());
            }
            result.setModified(false);
        }
        c.clean();
        // System.out.println("Actuator= " +
        // result.getDimensionX().getActuatorsList().size());
        return result;
    }
View Full Code Here

Examples of info.bliki.htmlcleaner.HtmlCleaner.clean()

  public String toWiki(IHTMLToWiki converter) {
    HtmlCleaner cleaner = null;
    StringBuilder resultBuffer = new StringBuilder(fInputHTML.length());
    try {
      cleaner = new HtmlCleaner(fInputHTML);
      cleaner.clean();
      // resultBuffer.append(cleaner.getXmlAsString());
      TagNode body = cleaner.getBodyNode();
      converter.nodeToWiki(body, resultBuffer);
    } catch (IOException e) {
    }
View Full Code Here

Examples of it.eng.spagobi.engines.dossier.dao.IDossierDAO.clean()

        logger.error("Cannot close openoffice template document", e);
      }
      }
      // cleans dossier temp folder
      if (dossierDAO != null && tempFolder != null) {
        dossierDAO.clean(tempFolder);
        logger.debug("Deleted folder " + tempFolder);
      }
      logger.debug("OUT");
  }
View Full Code Here

Examples of javango.forms.Form.clean()

//            if (!bl.canUpdate(object)) {
//              throw new HttpException("Unable to updte");
//            }
//          }
         
          form.clean(object);
          try {
            if (object_id == null) {
              manager.create(object);
            } else {
              manager.save(object);
View Full Code Here

Examples of javango.forms.fields.BooleanField.clean()

    String[] value = form.getData().get(String.format("%s-%s", form.getPrefix(), deletionFieldName));
    if (value == null || value.length == 0) {
      return false;
    }
    try {
      return field.clean(value, new HashMap<String, String>());
    } catch (ValidationException e) {
      return false;
    }
  }
 
View Full Code Here

Examples of javango.forms.fields.ChoiceField.clean()

   
    String[] o = w.valueFromMap(postData, "pickme");
    assertEquals("2", o[0]);
   
    Map<String, String> errors = new HashMap<String, String>();
    Object cleaned = field.clean(o, errors);
    assertTrue(errors.isEmpty());
    assertEquals("2", cleaned);
  }
 
  public static class TestForm extends AbstractForm {
View Full Code Here

Examples of javango.forms.fields.DoubleField.clean()

    DoubleField field = injector.getInstance(DoubleField.class);
    field.setName("fieldName");

    Map<String, String> errors = new HashMap<String, String>();
   
    Double value = field.clean(new String[]{""}, errors);
    assertFalse(errors.isEmpty());
    assertTrue(errors.containsKey(field.getName()));
    assertEquals(AbstractField.REQUIRED_ERROR, errors.get(field.getName()));
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.