Examples of ValidationContext


Examples of org.uengine.kernel.ValidationContext

   
  }
 
  @Override
  public ValidationContext validate(Map options) {
    ValidationContext vc = super.validate(options);
   
   
    return vc;
  }
View Full Code Here

Examples of org.uengine.kernel.ValidationContext

  protected void saveDesignToServer(final boolean needConfirm) throws Exception{
    saveDesignToServer(needConfirm, (ProcessDefinition)getProcessDefinitionDesigner().getActivity());
  }
   
  public boolean validateDefinition(ProcessDefinition definition){
    ValidationContext valCtx = definition.validate(null);
   
    if(valCtx!=null && !valCtx.hasNoError()){
      JDialog d = new JDialog(this, "This process definition need to be verified.", true);
      JTextArea ta = new JTextArea();
      ta.setEditable(false);
      d.getContentPane().add(new JScrollPane(ta));
     
      StringBuffer errMsg = new StringBuffer();
      for(Enumeration enumeration = valCtx.elements(); enumeration.hasMoreElements();){
        Object item = (Object)enumeration.nextElement();
        errMsg.append(item +"\n");
      }
      ta.setText(errMsg.toString());
     
View Full Code Here

Examples of org.uengine.kernel.ValidationContext

//    }
  }

  @Override
  public ValidationContext validate(Map options) {
    ValidationContext vc = super.validate(options);
   
    if (getApprovalType() == 0) {
      vc.add("select approval type");
    }

    return vc;
  }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.validation.ValidationContext

            }           
        }
  }

  private ValidationContext createValidationContext(Map<String, ParamValue> params) {
    ValidationContext context = new ValidationContext(params);
    return context;
  }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.validation.ValidationContext

  }
 
  private void validateParams(Map<String, ParamValue> params) throws DataServiceFault {
    try {
      ParamValue value = null;
      ValidationContext context = this.createValidationContext(params);
      for (QueryParam queryParam : this.getQueryParams()) {
        value = params.get(queryParam.getName());
        if (value != null) {
          for (Validator validator : queryParam.getValidators()) {
            validator.validate(context, queryParam.getName(), value);
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.