Examples of ValidationContext


Examples of org.jibx.schema.validation.ValidationContext

     */
    protected GlobalCustom readCustom(InputStream is)
        throws Exception {
        IUnmarshallingContext ictx =
            m_bindingFactory.createUnmarshallingContext();
        ValidationContext vctx = new ValidationContext();
        ictx.setDocument(is, null);
        ictx.setUserContext(vctx);
        GlobalCustom global = (GlobalCustom)ictx.unmarshalElement();
        List problems = vctx.getProblems();
        if (problems.size() > 0) {
            StringBuffer buff = new StringBuffer();
            for (int i = 0; i < problems.size(); i++) {
                ValidationProblem prob = (ValidationProblem)problems.get(i);
                buff.append(prob.getSeverity() >=
View Full Code Here

Examples of org.jibx.schema.validation.ValidationContext

     */
    public CodeGen(SchemasetCustom global, URL root, File target) {
        m_global = global;
        addDefaultSubstitutions(m_global);
        m_targetDir = target;
        m_validationContext = new ValidationContext();
    }
View Full Code Here

Examples of org.jitterbit.integration.data.validation.ValidationContext

                Alert.error("The Schedule is invalid.", "Invalid Schedule");
            }
        }

        private boolean isValid() {
            ValidationResult result = schedule.validate(new ValidationContext() {

                @Override
                public IntegrationEntityLookup getDataStore() {
                    return null;
                }
View Full Code Here

Examples of org.relaxng.datatype.ValidationContext

   * @return DOCUMENT ME!
   */
  private XSDatatype deriveSimpleType(XSDatatype baseType,
                                      Element xsdRestriction) {
    TypeIncubator incubator = new TypeIncubator(baseType);
    ValidationContext context = null;

    try {
      for (Iterator iter = xsdRestriction.elementIterator(); iter
          .hasNext();) {
        Element element = (Element) iter.next();
View Full Code Here

Examples of org.springmodules.validation.bean.context.ValidationContext

    public Object invoke(MethodInvocation methodInvocation) throws Throwable {

        String[] contextTokens = getValidationContextTokens(methodInvocation);

        ValidationContext originalContext = ValidationContextHolder.getValidationContext();
        if (originalContext != null && extendExistingContext) {
            ValidationContextUtils.extendContext(contextTokens);
        } else {
            ValidationContextUtils.setContext(contextTokens);
        }
View Full Code Here

Examples of org.springmodules.validation.bean.context.ValidationContext

    public Object invoke(MethodInvocation methodInvocation) throws Throwable {

        String[] contextTokens = getValidationContextTokens(methodInvocation);

        ValidationContext originalContext = ValidationContextHolder.getValidationContext();
        if (originalContext != null && extendExistingContext) {
            ValidationContextUtils.extendContext(contextTokens);
        } else {
            ValidationContextUtils.setContext(contextTokens);
        }
View Full Code Here

Examples of org.uengine.kernel.ValidationContext

      return manager;
   
       
    public void testScript() {
      super.testScript();
      ValidationContext vc = instance.getValidationContext();
      if(vc.size()>0)
        reportError(vc.toString());
    }
View Full Code Here

Examples of org.uengine.kernel.ValidationContext

  public void validateActivity(){
    if(getActivity()!=null && !"PMT".equals(System.getProperty("designerMode"))){
      HashMap validationOption = new HashMap();
      validationOption.put(ValidationContext.OPTIONKEY_DISABLE_REPLICATION, true);
     
      ValidationContext valCtx = getActivity().validate(validationOption);
     
      if(valCtx.size()>0){
        Border border;
        if(valCtx.isWarning()){
          setErrorState(ERRORSTATE_WARN);
          border = warningBorder;
        }else{
          setErrorState(ERRORSTATE_ERROR);
          border = errorBorder;
View Full Code Here

Examples of org.uengine.kernel.ValidationContext

    tabPane.add( GlobalContext.getLocalizedMessage("processdesigner.integrity.displayname", "Integrity"), new JScrollPane(validationPanel));
   
    tabPane.getModel().addChangeListener(
      new ChangeListener() {
        public void stateChanged(ChangeEvent e) {
          ValidationContext valCtx = ((ActivityRecord)thisForm.getInstance()).getActivity().validate(null);
          if(valCtx!=null && valCtx.size()>0){
            StringBuffer errMsg = new StringBuffer();
            for(Enumeration enumeration = valCtx.elements(); enumeration.hasMoreElements();){
              Object item = (Object)enumeration.nextElement();
              errMsg.append(item +"\n");
            }
            validationPanel.setText(errMsg.toString());
          }else
View Full Code Here

Examples of org.uengine.kernel.ValidationContext

    return manager;
 
       
  public void testScript() {
    super.testScript();
    ValidationContext vc = instance.getValidationContext();
    if(vc.size()>0)
      reportError(vc.toString());
  }
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.