Package org.apache.xerces.dom

Examples of org.apache.xerces.dom.DOMErrorImpl


            is.getBaseURI ());
        }
        else {
            // all inputs are null
            if (fErrorHandler != null) {
                DOMErrorImpl error = new DOMErrorImpl();
                error.fType = "no-input-specified";
                error.fMessage = "no-input-specified";
                error.fSeverity = DOMError.SEVERITY_FATAL_ERROR;
                fErrorHandler.getErrorHandler().handleError(error);
            }
View Full Code Here


            }
            else if (nodeType == Node.PROCESSING_INSTRUCTION_NODE) {

                baseURI = ((EntityReferenceImpl)fCurrentNode).getBaseURI ();
                if (baseURI !=null && fErrorHandler != null) {
                    DOMErrorImpl error = new DOMErrorImpl ();
                    error.fType = "pi-base-uri-not-preserved";
                    error.fRelatedData = baseURI;
                    error.fSeverity = DOMError.SEVERITY_WARNING;
                    fErrorHandler.getErrorHandler ().handleError (error);
                }
View Full Code Here

                // try baseURI of the entity declaration
                baseURI = fDeferredDocumentImpl.getDeferredEntityBaseURI (fDeferredEntityDecl);
            }

            if (baseURI != null && fErrorHandler != null) {
                DOMErrorImpl error = new DOMErrorImpl ();
                error.fType = "pi-base-uri-not-preserved";
                error.fRelatedData = baseURI;
                error.fSeverity = DOMError.SEVERITY_WARNING;
                fErrorHandler.getErrorHandler ().handleError (error);
            }
View Full Code Here

            parse(source);
            fBusy = false;
        } catch (Exception e){
            fBusy = false;
            if (fErrorHandler != null) {
                DOMErrorImpl error = new DOMErrorImpl();
                error.fException = e;
                error.fMessage = e.getMessage();
                error.fSeverity = error.SEVERITY_FATAL_ERROR;
                fErrorHandler.getErrorHandler().handleError(error);
            }
View Full Code Here

            parse(xmlInputSource);
            fBusy = false;
        } catch (Exception e) {
             fBusy = false;
            if (fErrorHandler != null) {
                DOMErrorImpl error = new DOMErrorImpl();
                error.fException = e;
                error.fMessage = e.getMessage();
                error.fSeverity = error.SEVERITY_FATAL_ERROR;
                fErrorHandler.getErrorHandler().handleError(error);
            }
View Full Code Here

            }
      else if (nodeType == Node.PROCESSING_INSTRUCTION_NODE) {
                           
                baseURI = ((EntityReferenceImpl)fCurrentNode).getBaseURI();
        if (baseURI !=null && fErrorHandler != null) {
          DOMErrorImpl error = new DOMErrorImpl();
                    error.fType = "infoset-baseURI";
                    error.fRelatedData = baseURI;
          error.fSeverity = error.SEVERITY_WARNING;
          fErrorHandler.getErrorHandler().handleError(error);
        }
View Full Code Here

        // try baseURI of the entity declaration
        baseURI = fDeferredDocumentImpl.getDeferredEntityBaseURI(fDeferredEntityDecl);
      }

      if (baseURI != null && fErrorHandler != null) {
        DOMErrorImpl error = new DOMErrorImpl();
        error.fType = "infoset-baseURI";
        error.fRelatedData = baseURI;
                error.fSeverity = error.SEVERITY_WARNING;
        fErrorHandler.getErrorHandler().handleError(error);
      }
View Full Code Here

    *                      parsing the document.
    */

   public void warning(String domain, String key,
      XMLParseException exception) throws XNIException {
  DOMError error = new DOMErrorImpl(DOMError.SEVERITY_WARNING, exception);
  fDomErrorHandler.handleError(error);
   } // warning(String,String,XMLParseException)
View Full Code Here

    * @throws XNIException Thrown to signal that the parser should stop
    *                      parsing the document.
    */
   public void error(String domain, String key,
      XMLParseException exception) throws XNIException {
  DOMError error = new DOMErrorImpl(DOMError.SEVERITY_ERROR, exception);
  fDomErrorHandler.handleError(error);                       
   } // error(String,String,XMLParseException)
View Full Code Here

    * @throws XNIException Thrown to signal that the parser should stop
    *                      parsing the document.
    */
   public void fatalError(String domain, String key,
      XMLParseException exception) throws XNIException {
  DOMError error = new DOMErrorImpl(DOMError.SEVERITY_FATAL_ERROR, exception);
  fDomErrorHandler.handleError(error);                            
   } // fatalError(String,String,XMLParseException)
View Full Code Here

TOP

Related Classes of org.apache.xerces.dom.DOMErrorImpl

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.