Examples of addWarning()


Examples of org.jibx.schema.validation.ValidationContext.addWarning()

                                Constructor cons = clas.getConstructor(new Class[] { prior.getClass() });
                                try {
                                    return cons.newInstance(new Object[] { prior });
                                } catch (IllegalArgumentException e) { /* ignore failure */
                                } catch (InvocationTargetException e) {
                                    vctx.addWarning("Failed passing existing name converter to constructor for class " +
                                        cname + ": " + e.getMessage(), new ProblemLocation(ctx));
                                }
                               
                            } catch (SecurityException e) { /* ignore failure */
                            } catch (NoSuchMethodException e) { /* ignore failure */ }
View Full Code Here

Examples of org.jibx.schema.validation.ValidationContext.addWarning()

           
            // check if nonamespace attribute is in the allowed set
            String name = uctx.getAttributeName(i);
            if (uctx.getAttributeNamespace(i).length() == 0) {
                if (attrs.indexOf(name) < 0) {
                    vctx.addWarning("Undefined attribute " + name, this);
                }
            }
        }
    }
   
View Full Code Here

Examples of org.jibx.schema.validation.ValidationContext.addWarning()

            } else if (!extra) {
               
                // warn on non-schema attribute present where forbidden
                ValidationContext vctx = (ValidationContext)ictx.getUserContext();
                String qname = UnmarshallingContext.buildNameString(ns, name);
                vctx.addWarning("Non-schema attribute not allowed " + qname, ictx.getStackTop());
               
            }
        }
    }
   
View Full Code Here

Examples of org.modeshape.common.collection.SimpleProblems.addWarning()

                switch (problem.getType()) {
                    case ERROR:
                        problems.addError(JcrI18n.configurationError, problem.getPath(), problem.getReason());
                        break;
                    case WARNING:
                        problems.addWarning(JcrI18n.configurationWarning, problem.getPath(), problem.getReason());
                        break;
                }
            }
            // Validate the components ...
            getSecurity().validateCustomProviders(problems);
View Full Code Here

Examples of org.platformlayer.ops.OpsContext.addWarning()

              if (exceptionStack != null && exceptionStack.length > 0) {
                message += "; " + exceptionStack[0];
              }
            }

            opsContext.addWarning(null, message);
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.w3c.jigsaw.http.Reply.addWarning()

      for (int i=0; doit && (i<w.length); i++) {
          doit = (w[i].getStatus() != 113);
      }
        }
        if (doit) {
      reply.addWarning(WARN_HEURISTIC);
        }
    }
      }
  }
  reply.setProxy(true);
View Full Code Here

Examples of org.w3c.jigsaw.http.Reply.addWarning()

      if (hw == null) {
    hw =
      HttpFactory.makeWarning(HttpWarning.TRANSFORMATION_APPLIED);
    hw.setAgent("Jigsaw");
    hw.setText("Body modified for HTML conformance using JTidy");
    reply.addWarning(hw);
      }
  }
  return null;
    }
}
View Full Code Here

Examples of org.w3c.www.http.HttpWarningList.addWarning()

      }
  } else if (hvalue instanceof HttpTokenList) {
      ((HttpTokenList) hvalue).addToken(value, true);
  } else if (hvalue instanceof HttpWarningList) {
      HttpWarningList wl = (HttpWarningList) hvalue;
      wl.addWarning(HttpFactory.parseWarning(value));
  } else if (hvalue instanceof HttpString) {
      // this is the default type for unkown header
      // we don't know what it is, so just append
      HttpString s = (HttpString) hvalue;
      String string = (String) s.getValue();
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.