Examples of validate()


Examples of buildcraft.api.transport.IPipePluggable.validate()

    public void validate(LogisticsTileGenericPipe pipe) {
      for (ForgeDirection d : ForgeDirection.VALID_DIRECTIONS) {
        IPipePluggable p = pluggables[d.ordinal()];

        if (p != null) {
          p.validate(pipe, d);
        }
      }
    }
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.client.GenericClient.validate()

          } else {
            resource = myCtx.newJsonParser().parseResource(def.getImplementingClass(), resourceText);
          }
          returnsResource = false;

          client.validate(resource);

        } else if ("update".equals(method)) {
          RuntimeResourceDefinition def = getResourceType(theReq);
          String resourceText = StringUtils.defaultString(theReq.getParameter("resource"));
          if (StringUtils.isBlank(resourceText)) {
View Full Code Here

Examples of ca.uhn.hl7v2.conf.check.DefaultValidator.validate()

            String profileString = ProfileStoreFactory.getProfileStore().getProfile(id);
            if (profileString != null) {
                ProfileParser profParser = new ProfileParser(true);
                RuntimeProfile profile = profParser.parse(profileString);
               
                exceptions = val.validate(message, profile.getMessage());
            } else {
                throw new ProfileException("Unable to find the profile " + id);
            }
        } catch (IOException e) {
            throw new ProfileException("Error retreiving profile " + id, e);
View Full Code Here

Examples of ca.uhn.hl7v2.conf.check.Validator.validate()

        try {
            ProfileStore profileStore = context.getProfileStore();
            String profileString = profileStore.getProfile(id);
            if (profileString != null) {
                RuntimeProfile profile = PARSER.parse(profileString);              
                exceptions = validator.validate(message, profile.getMessage());
            } else {
                throw new ProfileException("Unable to find the profile " + id);
            }
        } catch (IOException e) {
            throw new ProfileException("Error retreiving profile " + id, e);
View Full Code Here

Examples of ca.uhn.hl7v2.validation.MessageValidator.validate()

            Message message = exchange.getIn().getBody(Message.class);
            ValidationContext context = validatorExpression != null
                    ? validatorExpression.evaluate(exchange, ValidationContext.class)
                    : dynamicValidationContext(message, exchange.getIn().getHeader(HL7Constants.HL7_CONTEXT, HapiContext.class));
            MessageValidator validator = new MessageValidator(context, false);
            return validator.validate(message);
        } catch (HL7Exception e) {
            throw ObjectHelper.wrapRuntimeCamelException(e);
        }
    }
View Full Code Here

Examples of ch.ethz.inf.vs.californium.CoapClient.validate()

      etag = response.getOptions().getETags().get(0);
      System.out.println(response.getCode() + " - ETag [" + Utils.toHexString(etag) + "]");
      System.out.println(response.getResponseText());

      System.out.println("---------------\nGET /validate with ETag\n---------------");
      response = client.validate(etag);
      etag = response.getOptions().getETags().get(0);
      System.out.println(response.getCode() + " - ETag [" + Utils.toHexString(etag) + "]");
      System.out.println(response.getResponseText());

      System.out.println("---------------\nPUT /validate stimulus\n---------------");
View Full Code Here

Examples of ch.njol.skript.config.Config.validate()

          return;
        }
       
        final ArrayList<String> aliasNodes = new ArrayList<String>();
       
        aliasConfig.validate(
            new SectionValidator()
                .addEntry("aliases", new Setter<String>() {
                  @Override
                  public void set(final String s) {
                    for (final String n : s.split(","))
View Full Code Here

Examples of clips.delegate.directory.complex.DirectoryMKB10.validate()

  }//GEN-LAST:event_updateMKB10ActionPerformed

  private void btValidateMKB10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btValidateMKB10ActionPerformed
    try {
      DirectoryMKB10 dir = DirectoryLocator.getDirectory(DirectoryMKB10.class);
      dir.validate();
    }
    catch (ParseException ex) {
      MessageBox.showExceptionOnly(ex);
    }
    catch (ClipsException ex) {
View Full Code Here

Examples of cloudinary.lib.PhotoUploadValidator.validate()

    @SuppressWarnings("rawtypes")
  @RequestMapping(value = "/upload", method = RequestMethod.POST)
    public String uploadPhoto(@ModelAttribute PhotoUpload photoUpload, BindingResult result, ModelMap model) throws IOException {
        PhotoUploadValidator validator = new PhotoUploadValidator();
        validator.validate(photoUpload, result);

        Map uploadResult = null;
        if (photoUpload.getFile() != null && !photoUpload.getFile().isEmpty()) {
            uploadResult = Singleton.getCloudinary().uploader().upload(photoUpload.getFile().getBytes(),
                    Cloudinary.asMap("resource_type", "auto"));
View Full Code Here

Examples of cnslab.cnsnetwork.SimulatorParser.validate()

       
        final SimulatorParser
          simulatorParser = new SimulatorParser ( );
       
        final String
          out = simulatorParser.validate (
            thinlet.getString (
              thinlet.getSelectedItem ( thinlet.find ( "xmlModles" ) ),
              "text" ) );
       
        LOGGER.debug ( "parser validation output:  {}", out );
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.