public URL getURL() { try { return this.getFile().toURI().toURL(); } catch (Exception e) { throw XMLMarshalException.errorResolvingXMLSchema(e); } } }
public URL getURL() { try { return new URL(this.getURLString()); } catch (MalformedURLException e) { throw XMLMarshalException.errorResolvingXMLSchema(e); } }
public URL getURL() { try { return new URL(this.getURLString()); } catch (MalformedURLException e) { throw XMLMarshalException.errorResolvingXMLSchema(e); } }
public URL getURL() { try { return this.getFile().toURI().toURL(); } catch (Exception e) { throw XMLMarshalException.errorResolvingXMLSchema(e); } } }
public URL getURL() { try { return new URL(this.getURLString()); } catch (MalformedURLException e) { throw XMLMarshalException.errorResolvingXMLSchema(e); } }
public URL getURL() { try { return this.getFile().toURI().toURL(); } catch (Exception e) { throw XMLMarshalException.errorResolvingXMLSchema(e); } } }
public URL getURL() { try { // The URL must be passed to the resource, not just the input stream, as it is // required to resolve the relative URL for imports and includes. if(null == loader) { return Thread.currentThread().getContextClassLoader().getResource(this.getResource()); } return loader.getResource(this.getResource()); } catch(Exception e) { throw XMLMarshalException.errorResolvingXMLSchema(e); } } }
public URL getURL() { try { // The URL must be passed to the resource, not just the input stream, as it is // required to resolve the relative URL for imports and includes. if(null == loader) { return Thread.currentThread().getContextClassLoader().getResource(this.getResource()); } return loader.getResource(this.getResource()); } catch(Exception e) { throw XMLMarshalException.errorResolvingXMLSchema(e); } } }
public boolean isValid(Document document, ErrorHandler errorHandler) { try { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.validateDocument(document, getURL(), errorHandler); } catch (XMLPlatformException e) { if (e.getErrorCode() == XMLPlatformException.XML_PLATFORM_PARSER_ERROR_RESOLVING_XML_SCHEMA) { throw XMLMarshalException.errorResolvingXMLSchema(e); } else { return false; } } }
public boolean isValid(Document document, ErrorHandler errorHandler) { try { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.validateDocument(document, getURL(), errorHandler); } catch (XMLPlatformException e) { if (e.getErrorCode() == XMLPlatformException.XML_PLATFORM_PARSER_ERROR_RESOLVING_XML_SCHEMA) { throw XMLMarshalException.errorResolvingXMLSchema(e); } else { return false; } } }
public boolean isValid(Document document, ErrorHandler errorHandler) { try { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.validateDocument(document, getURL(), errorHandler); } catch (XMLPlatformException e) { if (e.getErrorCode() == XMLPlatformException.XML_PLATFORM_PARSER_ERROR_RESOLVING_XML_SCHEMA) { throw XMLMarshalException.errorResolvingXMLSchema(e); } else { return false; } } }