/** * Loads a new {@link XSDResourceImpl} into the resource set. * @param inputStream the contents of the new resource. * @param options any options to influence loading behavior. */ @Override protected void doLoad(InputStream inputStream, Map<?, ?> options) throws IOException { InputSource inputSource = inputStream instanceof URIConverter.ReadableInputStream ? new InputSource(((URIConverter.ReadableInputStream)inputStream).asReader()) : new InputSource(inputStream); if (getURI() != null) { String id = getURI().toString(); inputSource.setPublicId(id); inputSource.setSystemId(id); } doLoad(inputSource, options); }
/** * Loads a new {@link XSDResourceImpl} into the resource set. * @param inputStream the contents of the new resource. * @param options any options to influence loading behavior. * @return a new XSDResourceImpl. */ @Override protected void doLoad(InputStream inputStream, Map<?, ?> options) throws IOException { InputSource inputSource = inputStream instanceof URIConverter.ReadableInputStream ? new InputSource(((URIConverter.ReadableInputStream)inputStream).asReader()) : new InputSource(inputStream); if (getURI() != null) { String id = getURI().toString(); inputSource.setPublicId(id); inputSource.setSystemId(id); } doLoad(inputSource, options); }
@Override public void attached(EObject eObject) { super.attached(eObject); if (eObject instanceof XSDSchema) { if (attachedSchemas != null) { attachedSchemas.add((XSDSchema)eObject); } else if (!(eObject instanceof XSDSchemaImpl) || ((XSDSchemaImpl)eObject).getPendingSchemaLocation() == null) { ((XSDSchema)eObject).setSchemaLocation(getURI().toString()); } } }
@Override public void attached(EObject eObject) { super.attached(eObject); if (eObject instanceof XSDSchema) { if (attachedSchemas != null) { attachedSchemas.add((XSDSchema)eObject); } else if (!(eObject instanceof XSDSchemaImpl) || ((XSDSchemaImpl)eObject).getPendingSchemaLocation() == null) { ((XSDSchema)eObject).setSchemaLocation(getURI().toString()); } } }
if (xsdSchemaDirective./*{@link XSDSchemaDirective#getResolvedSchema */getResolvedSchema/*}*/() == null) System.out.println("Unresolved schema in " + xsdResource./*{@link Resource#getURI */getURI/*}*/()); /*{@link #printComponent */printComponent/*}*/(System.out, xsdSchemaDirective);
if (xsdSchemaDirective./*{@link XSDSchemaDirective#getResolvedSchema */getResolvedSchema/*}*/() == null) System.out.println("Unresolved schema in " + xsdResource./*{@link Resource#getURI */getURI/*}*/()); /*{@link #printComponent */printComponent/*}*/(System.out, xsdSchemaDirective);
System.out.println("\n<" + "!-- *** " + xsdResource./*{@link Resource#getURI */getURI/*}*/() + " *** -->\n"); /*{@link #printComponent */printComponent/*}*/(System.out, xsdSchema);
System.out.println("\n<" + "!-- *** " + xsdResource./*{@link Resource#getURI */getURI/*}*/() + " *** -->\n"); /*{@link #printComponent */printComponent/*}*/(System.out, xsdSchema);