Examples of LocatorImpl


Examples of org.xml.sax.helpers.LocatorImpl

            value = pValue;
            Locator l = DTDParser.this.getLocator();
            if (l == null) {
              loc = null;
            } else {
              loc = new LocatorImpl(l);
            }
        }
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

        public void setModel(String pModel) {
            Locator l = DTDParser.this.getLocator();
          if (l == null) {
            loc = null;
            } else {
              loc = new LocatorImpl(l);
            }
            model = pModel;
        }
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

   /** Returns a locator implementation. */
   private LocatorImpl getLocatorImpl(LocatorImpl fillin) {

      Locator here = fErrorReporter.getLocator();
      if (fillin == null)
         return new LocatorImpl(here);
      fillin.setPublicId(here.getPublicId());
      fillin.setSystemId(here.getSystemId());
      fillin.setLineNumber(here.getLineNumber());
      fillin.setColumnNumber(here.getColumnNumber());
      return fillin;
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

        catch (XMLParseException e) {
            Exception ex = e.getException();
            if (ex == null) {
                // must be a parser exception; mine it for locator info and throw
                // a SAXParseException
                LocatorImpl locatorImpl = new LocatorImpl(){
                    public String getXMLVersion() {
                        return fVersion;
                    }
                    // since XMLParseExceptions know nothing about encoding,
                    // we cannot return anything meaningful in this context.
                    // We *could* consult the LocatorProxy, but the
                    // application can do this itself if it wishes to possibly
                    // be mislead.
                    public String getEncoding() {
                        return null;
                    }
                };
                locatorImpl.setPublicId(e.getPublicId());
                locatorImpl.setSystemId(e.getExpandedSystemId());
                locatorImpl.setLineNumber(e.getLineNumber());
                locatorImpl.setColumnNumber(e.getColumnNumber());
                throw new SAXParseException(e.getMessage(), locatorImpl);
            }
            if (ex instanceof SAXException) {
                // why did we create an XMLParseException?
                throw (SAXException)ex;
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

        catch (XMLParseException e) {
            Exception ex = e.getException();
            if (ex == null) {
                // must be a parser exception; mine it for locator info and throw
                // a SAXParseException
                LocatorImpl locatorImpl = new LocatorImpl() {
                    public String getXMLVersion() {
                        return fVersion;
                    }
                    // since XMLParseExceptions know nothing about encoding,
                    // we cannot return anything meaningful in this context.
                    // We *could* consult the LocatorProxy, but the
                    // application can do this itself if it wishes to possibly
                    // be mislead.
                    public String getEncoding() {
                        return null;
                    }
                };
                locatorImpl.setPublicId(e.getPublicId());
                locatorImpl.setSystemId(e.getExpandedSystemId());
                locatorImpl.setLineNumber(e.getLineNumber());
                locatorImpl.setColumnNumber(e.getColumnNumber());
                throw new SAXParseException(e.getMessage(), locatorImpl);
            }
            if (ex instanceof SAXException) {
                // why did we create an XMLParseException?
                throw (SAXException)ex;
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

        return fNotationName[chunk][index];
    }
    class RequiredNotation {
        RequiredNotation(int notationName, Locator locator, int majorCode, int minorCode, Object[] args) {
            fNotationName = notationName;
            fLocator = new LocatorImpl(locator); // snapshot of the current location
            fMajorCode = majorCode;
            fMinorCode = minorCode;
            fArgs = args;
        }
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

        return fNotationName[chunk][index];
    }
    class RequiredNotation {
        RequiredNotation(int notationName, Locator locator, int majorCode, int minorCode, Object[] args) {
            fNotationName = notationName;
            fLocator = new LocatorImpl(locator); // snapshot of the current location
            fMajorCode = majorCode;
            fMinorCode = minorCode;
            fArgs = args;
        }
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

   /** Returns a locator implementation. */
   private LocatorImpl getLocatorImpl(LocatorImpl fillin) {

      Locator here = fErrorReporter.getLocator();
      if (fillin == null)
         return new LocatorImpl(here);
      fillin.setPublicId(here.getPublicId());
      fillin.setSystemId(here.getSystemId());
      fillin.setLineNumber(here.getLineNumber());
      fillin.setColumnNumber(here.getColumnNumber());
      return fillin;
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

    if (null == webXml) {
      throw new ServletException(Messages.getMessage(
          Messages.GET_RESOURCE_AS_STREAM_ERROR, WEB_XML));
    }
    Digester dig = new Digester();
    dig.setDocumentLocator(new LocatorImpl());
    // Disable xml validations at all - web.xml already validated by
    // container
    dig.setValidating(false);
    dig.setEntityResolver(new EntityResolver() {
      // Dummi resolver - alvays do nothing
View Full Code Here

Examples of org.xml.sax.helpers.LocatorImpl

  public HtmlCompiler(){
    WithDefaultsRulesWrapper rules = new WithDefaultsRulesWrapper(new RulesBase());
    // Add default rules to process plain tags.
      rules.addDefault(new PlainElementCreateRule());
      rules.addDefault(new SetNextRule(CHILD_METHOD));
      digestr.setDocumentLocator(new LocatorImpl());
      digestr.setRules(rules);
      digestr.setValidating(false);
      digestr.setNamespaceAware(false);
      digestr.setUseContextClassLoader(true);
      // Concrete renderer method call rules.
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.