Examples of validate()


Examples of com.cognifide.slice.validation.api.Validator.validate()

    if (validatable == null) {
      return null;
    }

    final Validator validator = SliceTagUtils.getFromCurrentPath(pageContext, Validator.class, appName);
    final ValidationResult validationResult = validator.validate(validatable);
    return validationResult;
  }

  public String getVar() {
    return var;
View Full Code Here

Examples of com.commander4j.db.JDBSchema.validate()

      {
        JSplashScreenUtils.updateProgress(75, "Validating Schema Version...");

        JDBSchema schema = new JDBSchema(Common.sessionID, Common.hostList.getHost(Common.selectedHostID));

        schema.validate(true);
        JSplashScreenUtils.updateProgress(80, "Initialising Help Subsystem...");
        JSplashScreenUtils.updateProgress(85, "Loading EAN Barcode definitions...");

        JUtility.initEANBarcode();
View Full Code Here

Examples of com.compomics.util.pride.validation.PrideXmlValidator.validate()

                    // validate the pride xml file
                    if (validatePrideXml && !projectExportDialog.progressCancelled()) {
                        progressDialog.setPrimaryProgressCounterIndeterminate(true);
                        progressDialog.setTitle("Validating PRIDE XML. Please Wait...");
                        PrideXmlValidator validator = new PrideXmlValidator();
                        conversionCompleted = validator.validate(new File(outputFolderJTextField.getText(), outputFileName + ".xml"));

                        // see if any errors were found, and display them to the user
                        if (!conversionCompleted) {
                            JOptionPane.showMessageDialog(null, validator.getErrorsAsString(), "PRIDE XML Errors", JOptionPane.ERROR_MESSAGE);
                        }
View Full Code Here

Examples of com.datasift.client.DataSiftClient.validate()

        Stream stream = Stream.fromString("13e9347e7da32f19fcdb08e297019d2e");
        Dpu dpu = datasift.dpu(stream).sync();

        Balance balance = datasift.balance().sync();
        //synchronously validate a CSDL
        Validation validation = datasift.validate(csdl).sync();
        if (!validation.isSuccessful()) {
            //if true an exception may have caused the request to fail, inspect the cause if available
            if (validation.failureCause() != null) { //may not be an exception
                validation.failureCause().printStackTrace();
            }
View Full Code Here

Examples of com.discursive.cas.extend.client.ProxyTicketValidator.validate()

    throws ParserConfigurationException, SAXException, IOException, JspTagException {
    ProxyTicketValidator pv = new ProxyTicketValidator();
    pv.setCasValidateUrl(casValidate);
    pv.setServiceTicket(ticket);
    pv.setService(service);
    pv.validate();
    if (!pv.isAuthenticationSuccesful())
      throw new JspTagException(
        "CAS authentication error: " + pv.getErrorCode());
    if (pv.getProxyList().size() != 0) {
      // ticket was proxied
View Full Code Here

Examples of com.dotcms.repackage.javax.portlet.PreferencesValidator.validate()

        try {
          PreferencesValidator prefsValidatorObj =
            PortalUtil.getPreferencesValidator(portletModel);

          prefsValidatorObj.validate(
            PortletPreferencesSerializer.fromDefaultXML(
              defaultPreferences));
        }
        catch (Exception e) {
          _log.warn(
View Full Code Here

Examples of com.dotmarketing.cms.comment.struts.CommentsForm.validate()

  public ActionForward saveComments(ActionMapping mapping, ActionForm lf, HttpServletRequest request, HttpServletResponse response) {

    CommentsForm commentsForm = (CommentsForm) lf;

    request.getSession().setAttribute("commentsForm", commentsForm);
    ActionErrors ae = commentsForm.validate(mapping, request);

    HashMap<String,String> commentsOptions = (HashMap<String,String>) request.getSession().getAttribute("commentsOptions");


    try {
View Full Code Here

Examples of com.dotmarketing.cms.createaccount.struts.CreateAccountForm.validate()

  @SuppressWarnings("finally")
  public ActionForward quickCreate(ActionMapping mapping, ActionForm lf, HttpServletRequest request,
      HttpServletResponse response) {
    CreateAccountForm form = (CreateAccountForm) lf;
    ActionErrors ae = form.validate(mapping, request);
    try
    {
      if ((ae != null) && (ae.size() > 0)) {
        saveMessages(request.getSession(), ae);
        return mapping.findForward("createAccount");
View Full Code Here

Examples of com.dtrules.decisiontables.RDecisionTable.validate()

                            "validity check",
                            error.getMessage(),
                            0,
                            "In the "+error.getErrorType().name()+" row "+error.getIndex()+"\r\n"+error.getSource());
                }
                Coordinate err_RowCol = t.validate();
                if(!t.isCompiled()  || err_RowCol!=null){
                    int column = 0;
                    int row    = 0;
                    if(err_RowCol!=null){
                        row    = err_RowCol.getRow();
View Full Code Here

Examples of com.easypo.XmlPurchaseOrderDocumentBean.validate()

                  "<per-unit-ounces>5.0</per-unit-ounces>" +
                  "<quantity>1</quantity>" +
                 "</line-item>" +
                "</purchase-order>");

        Assert.assertEquals(false, xdoc.validate());
        Assert.assertEquals(XmlPurchaseOrderDocumentBean.type, xdoc.schemaType());

        // check type of element when xsi:type is bad
        XmlObject cust = xdoc.getPurchaseOrder().getCustomer();
        Assert.assertEquals(XmlCustomerBean.type, cust.schemaType());
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.