@Override protected void unexpectedX(String token) throws SAXException { SAXParseException e = new SAXParseException(MessageFormat.format( "Unexpected {0} appears at line {1} column {2}", token, getLocator().getLineNumber(), getLocator().getColumnNumber()), getLocator()); parser.errorHandler.fatalError(e); throw e; // we will abort anyway }
@Override protected void unexpectedX(String token) throws SAXException { SAXParseException e = new SAXParseException(MessageFormat.format( "Unexpected {0} appears at line {1} column {2}", token, getLocator().getLineNumber(), getLocator().getColumnNumber()), getLocator()); parser.errorHandler.fatalError(e); throw e; // we will abort anyway }
@Override protected void unexpectedX(String token) throws SAXException { SAXParseException e = new SAXParseException(MessageFormat.format( "Unexpected {0} appears at line {1} column {2}", token, getLocator().getLineNumber(), getLocator().getColumnNumber()), getLocator()); parser.errorHandler.fatalError(e); throw e; // we will abort anyway }
protected void unexpectedX(String token) throws SAXException { SAXParseException e = new SAXParseException(MessageFormat.format( "Unexpected {0} appears at line {1} column {2}", token, getLocator().getLineNumber(), getLocator().getColumnNumber()), getLocator()); parser.errorHandler.fatalError(e); throw e; // we will abort anyway }
@Override protected void unexpectedX(String token) throws SAXException { SAXParseException e = new SAXParseException(MessageFormat.format( "Unexpected {0} appears at line {1} column {2}", token, getLocator().getLineNumber(), getLocator().getColumnNumber()), getLocator()); parser.errorHandler.fatalError(e); throw e; // we will abort anyway }
/** * Creates a copy of the current locator object. * * @return Locator copy */ public Locator copyLocator() { return new LocatorImpl(getLocator()); }
/** * Creates a copy of the current locator object. * * @return Locator copy */ public Locator copyLocator() { return new LocatorImpl(getLocator()); }
public void reportError( String msg ) throws SAXException { reportError(msg,getLocator()); }
/** Creates a copy of the current locator object. */ public Locator copyLocator() { return new LocatorImpl(getLocator()); }
public void reportError( String msg ) throws SAXException { reportError(msg,getLocator()); }
public void reportError( String msg ) throws SAXException { reportError(msg,getLocator()); }
/** Creates a copy of the current locator object. */ public Locator copyLocator() { return new LocatorImpl(getLocator()); }
/** Creates a copy of the current locator object. */ public Locator copyLocator() { return new LocatorImpl(getLocator()); }
public void reportError( String msg ) throws SAXException { reportError(msg,getLocator()); }
public void reportError( String msg ) throws SAXException { reportError(msg,getLocator()); }
/** Includes the specified schema. */ public void includeSchema( String schemaLocation ) throws SAXException { NGCCRuntimeEx runtime = new NGCCRuntimeEx(parser,chameleonMode,this); runtime.currentSchema = this.currentSchema; runtime.blockDefault = this.blockDefault; runtime.finalDefault = this.finalDefault; if( schemaLocation==null ) { SAXParseException e = new SAXParseException( Messages.format( Messages.ERR_MISSING_SCHEMALOCATION ), getLocator() ); parser.errorHandler.fatalError(e); throw e; } runtime.parseEntity( resolveRelativeURL(null,schemaLocation), true, currentSchema.getTargetNamespace(), getLocator() ); }
/** Includes the specified schema. */ public void includeSchema( String schemaLocation ) throws SAXException { NGCCRuntimeEx runtime = new NGCCRuntimeEx(parser,chameleonMode,this); runtime.currentSchema = this.currentSchema; runtime.blockDefault = this.blockDefault; runtime.finalDefault = this.finalDefault; if( schemaLocation==null ) { SAXParseException e = new SAXParseException( Messages.format( Messages.ERR_MISSING_SCHEMALOCATION ), getLocator() ); parser.errorHandler.fatalError(e); throw e; } runtime.parseEntity( resolveRelativeURL(null,schemaLocation), true, currentSchema.getTargetNamespace(), getLocator() ); }
/** Imports the specified schema. */ public void importSchema( String ns, String schemaLocation ) throws SAXException { NGCCRuntimeEx newRuntime = new NGCCRuntimeEx(parser,false,this); InputSource source = resolveRelativeURL(ns,schemaLocation); if(source!=null) newRuntime.parseEntity( source, false, ns, getLocator() ); // if source == null, // we can't locate this document. Let's just hope that // we already have the schema components for this schema // or we will receive them in the future. }
/** Imports the specified schema. */ public void importSchema( String ns, String schemaLocation ) throws SAXException { NGCCRuntimeEx newRuntime = new NGCCRuntimeEx(parser,false,this); InputSource source = resolveRelativeURL(ns,schemaLocation); if(source!=null) newRuntime.parseEntity( source, false, ns, getLocator() ); // if source == null, // we can't locate this document. Let's just hope that // we already have the schema components for this schema // or we will receive them in the future. }
/** Imports the specified schema. */ public void importSchema( String ns, String schemaLocation ) throws SAXException { NGCCRuntimeEx newRuntime = new NGCCRuntimeEx(parser,false,this); InputSource source = resolveRelativeURL(ns,schemaLocation); if(source!=null) newRuntime.parseEntity( source, false, ns, getLocator() ); // if source == null, // we can't locate this document. Let's just hope that // we already have the schema components for this schema // or we will receive them in the future. }