Package com.sun.msv.verifier

Examples of com.sun.msv.verifier.ValidityViolation


                        schematronValid = true;

                        try {
                                testNode(super.dom);
                        } catch( TransformerException e ) {
                                getErrorHandler().error( new ValidityViolation(
                                        null, "XPath error:"+e.getMessage(), null ) );
                                schematronValid = false;
                        }
                }
View Full Code Here


            }
                        src.setSystemId(getLocator().getSystemId());
                        src.setPublicId(getLocator().getPublicId());
                       
                        schematronValid = false;
                        getErrorHandler().error( new ValidityViolation(
                                src, action.document, null ));
                }
View Full Code Here

                // diagnose error, if possible
                StringRef err = new StringRef();
                current.onText2( txt, this, err, null );
                   
                // report an error
                errorHandler.error( new ValidityViolation(locator,
                    localizeMessage( ERR_UNEXPECTED_TEXT, null ),
                    new ErrorInfo.BadText(txt) ) );
            }
           
            // characters are validated. report to the handler.
View Full Code Here

        reportError( getLocator(), ei, propKey, args );
    }
   
    protected void reportError( Locator loc, ErrorInfo ei, String propKey, Object[] args ) throws SAXException {
        hadError = true;
        errorHandler.error( new ValidityViolation( loc,
                localizeMessage(propKey,args), ei ) );
    }
View Full Code Here

      schematronValid = true;

      try {
        testNode(super.dom);
      } catch( TransformerException e ) {
        getErrorHandler().error( new ValidityViolation(
          null, "XPath error:"+e.getMessage(), null ) );
        schematronValid = false;
      }
    }
View Full Code Here

            }
      src.setSystemId(getLocator().getSystemId());
      src.setPublicId(getLocator().getPublicId());
     
      schematronValid = false;
      getErrorHandler().error( new ValidityViolation(
        src, action.document, null ));
    }
View Full Code Here

                // diagnose error, if possible
                StringRef err = new StringRef();
                current.onText2( txt, this, err, null );
                   
                // report an error
                errorHandler.error( new ValidityViolation(locator,
                    localizeMessage( ERR_UNEXPECTED_TEXT, null ),
                    new ErrorInfo.BadText(txt) ) );
            }
           
            // characters are validated. report to the handler.
View Full Code Here

        reportError( getLocator(), ei, propKey, args );
    }
   
    protected void reportError( Locator loc, ErrorInfo ei, String propKey, Object[] args ) throws SAXException {
        hadError = true;
        errorHandler.error( new ValidityViolation( loc,
                localizeMessage(propKey,args), ei ) );
    }
View Full Code Here

TOP

Related Classes of com.sun.msv.verifier.ValidityViolation

Copyright © 2018 www.massapicom. 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.