Examples of validate()


Examples of PrologPlusCG.gui.PrologPlusCGFrame.validate()

  public PrologPlusCG() {
    PPCGEnv env = new PPCGEnv();
    PrologPlusCGFrame frame = new PrologPlusCGFrame(env, false);
    PPCGIO_GUI io = new PPCGIO_GUI(env, frame);
    env.io = io;
    frame.validate();
   
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
   
View Full Code Here

Examples of aQute.service.library.Library.Deposit.validate()

      depo.depository = this.options.depository();
      depo.organization = this.options.domain();
      depo.email = settings.getEmail();
      depo.type = options.type;

      List<Error> s = depo.validate();
      if (!s.isEmpty())
        throw new IllegalArgumentException("Invalid request: " + s.toString());

      File f = File.createTempFile("depo-", ".jar");
      try {
View Full Code Here

Examples of abstrasy.consoleui.FrameWorkConsole.validate()

        //Compacter les cadres ayant des infos de taille préférées - ex. depuis leur disposition
        if (packFrame) {
            frame.pack();
        }
        else {
            frame.validate();
        }
        //Centrer la fenêtre
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = frame.getSize();
        if (frameSize.height > screenSize.height) {
View Full Code Here

Examples of anvil.session.Session.validate()

  {
    if (request.length>1) {
      String id = request[1];
      Session session = _container.getSession(id);
      if (session != null) {
        if (session.validate()) {
          output.println("valid");
        } else {
          output.println("invalid");
        }
        output.flush();
View Full Code Here

Examples of br.com.jteam.jfcm.model.validator.FileExtensionValidator.validate()

      if (!FileTypeUtil.isFilePresentOnDisk(path)) {
        throw new ShowFileContentServiceException(
            "File doesn't exist anymore on disc");
      }
      FileExtensionValidator fileExtensionValidator = new ShowFileExtensionValidator();
      fileExtensionValidator.validate(name);
      FileType fileType = FileType.getFileTypeByFileName(name);
      br.com.jteam.jfcm.model.File fileToBeViewed = FileFactory.getInstance(
          fileType).createFile(name, path);
      return fileToBeViewed;
    } catch (IncorrectFileExtensionException ex) {
View Full Code Here

Examples of br.com.jteam.jfcm.model.validator.impl.ShowFileExtensionValidator.validate()

      if (!FileTypeUtil.isFilePresentOnDisk(path)) {
        throw new ShowFileContentServiceException(
            "File doesn't exist anymore on disc");
      }
      FileExtensionValidator fileExtensionValidator = new ShowFileExtensionValidator();
      fileExtensionValidator.validate(name);
      FileType fileType = FileType.getFileTypeByFileName(name);
      br.com.jteam.jfcm.model.File fileToBeViewed = FileFactory.getInstance(
          fileType).createFile(name, path);
      return fileToBeViewed;
    } catch (IncorrectFileExtensionException ex) {
View Full Code Here

Examples of br.com.jteam.jfcm.model.validator.impl.ZipFileExtensionValidator.validate()

  {
    if (file == null) { throw new IllegalArgumentException("Zip File cannot be null"); }
    if (!FileTypeUtil.isFilePresentOnDisk(file.getAbsolutePath())) { throw new FileListContentServiceException(
      "File doesn't exist anymore on disc"); }
    FileExtensionValidator fileExtensionValidator = new ZipFileExtensionValidator();
    fileExtensionValidator.validate(file.getName());
    FileType fileType = FileType.getFileTypeByFileName(file.getName());
    return FileFactory.getInstance(fileType).createFile(file.getName(), file.getAbsolutePath());
  }
}
View Full Code Here

Examples of br.gov.serpro.ouvidoria.struts.form.CadastrarFuncionarioForm.validate()

        Constants.PA_FUNCIONARIO);
    Funcionario gestor = (Funcionario) defaultCtrl.get(funcionarioId);

    CadastrarFuncionarioForm funcionarioForm = (CadastrarFuncionarioForm) form;

    ActionMessages msgs = funcionarioForm.validate(mapping, request);

    if (!msgs.isEmpty()) {
      saveErrors(request, msgs);
      return mapping.findForward("error");
    }
View Full Code Here

Examples of br.net.woodstock.rockframework.domain.validator.jpa.EntityValidator.validate()

  protected BusinessResult validate(final Entity entity, final Operation operation) {
    Assert.notNull(entity, "entity");
    Assert.notNull(operation, "operation");

    EntityValidator validator = new EntityValidatorImpl(operation);
    Collection<ValidationResult> results = validator.validate(entity);
    if (results.size() > 0) {
      ValidationResult result = results.iterator().next();
      return new BusinessResult(true, result.getMessage());
    }
View Full Code Here

Examples of br.net.woodstock.rockframework.domain.validator.jpa.impl.EntityValidatorImpl.validate()

  protected BusinessResult validate(final Entity entity, final Operation operation) {
    Assert.notNull(entity, "entity");
    Assert.notNull(operation, "operation");

    EntityValidator validator = new EntityValidatorImpl(operation);
    Collection<ValidationResult> results = validator.validate(entity);
    if (results.size() > 0) {
      ValidationResult result = results.iterator().next();
      return new BusinessResult(true, result.getMessage());
    }
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.