|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.NotifierImpl
org.eclipse.emf.ecore.resource.impl.ResourceImpl
org.eclipse.xsd.util.XSDResourceImpl
The Resource implementation for the model. This specialized resource implementation supports it's own way of making keys and hrefs, and it's own serialization. This class is not intended for subclassing outside of the model implementation; it is intended to be used as is with the Resource framework.
Nested Class Summary | |
---|---|
static class |
XSDResourceImpl.SchemaLocator
|
Nested classes inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl |
---|
ResourceImpl.ContentsEList, ResourceImpl.ModificationTrackingAdapter |
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList |
Nested classes inherited from class org.eclipse.emf.ecore.resource.Resource |
---|
Resource.Diagnostic, Resource.Factory, Resource.Internal, Resource.IOWrappedException |
Field Summary | |
---|---|
protected java.util.Collection |
attachedSchemas
|
protected static XSDResourceImpl.SchemaLocator |
SCHEMA_LOCATOR
|
static java.lang.String |
XSD_ENCODING
|
static java.lang.String |
XSD_JAXP_CONFIG
This option can be used as an option on Resource#load methods to specify JAXP configuration that creates and configures SAX, DOM parsers and Transformer. |
static java.lang.String |
XSD_JAXP_POOL
This option can be used as an option on Resource#load methods to specify JAXP pool to be used for loading and serializing XML Schemas. |
static java.lang.String |
XSD_PROGRESS_MONITOR
|
static java.lang.String |
XSD_TRACK_LOCATION
|
Fields inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl |
---|
contents, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, uri, warnings |
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
---|
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG |
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource |
---|
OPTION_CIPHER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__URI, RESOURCE__WARNINGS |
Constructor Summary | |
---|---|
XSDResourceImpl()
|
|
XSDResourceImpl(URI uri)
|
Method Summary | |
---|---|
protected static void |
assignDiagnostics(XSDSchema xsdSchema,
java.util.Collection xsdDiagnostics)
Assigns diagnostics to a schema. |
void |
attached(EObject eObject)
|
protected static org.xml.sax.EntityResolver |
createEntityResolver()
Creates an EntityResovler that can be used to help with parsing schema documents. |
protected void |
doLoad(org.xml.sax.InputSource inputSource,
java.util.Map options)
|
protected void |
doLoad(java.io.InputStream inputStream,
java.util.Map options)
Loads a new XSDResourceImpl into the resource set. |
protected void |
doSave(java.io.OutputStream os,
java.util.Map options)
|
protected void |
doSave(java.io.Writer writer,
java.util.Map options)
|
protected static void |
doSerialize(java.io.OutputStream outputStream,
org.w3c.dom.Document document)
Deprecated. since 2.2 |
protected static void |
doSerialize(java.io.OutputStream outputStream,
org.w3c.dom.Document document,
java.util.Map options)
|
protected static void |
doSerialize(java.io.OutputStream outputStream,
org.w3c.dom.Document document,
java.lang.String encoding)
Deprecated. since 2.2 |
protected static void |
doSerialize(java.io.OutputStream outputStream,
org.w3c.dom.Element element)
|
protected static void |
doSerialize(java.io.OutputStream outputStream,
org.w3c.dom.Element element,
java.lang.String encoding)
|
protected static void |
doSerialize(java.io.Writer writer,
org.w3c.dom.Document document,
java.util.Map options)
|
protected boolean |
findSchemas(org.w3c.dom.Element element)
|
java.util.Map |
getDefaultSaveOptions()
|
protected static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource inputSource,
org.xml.sax.ErrorHandler errorHandler)
Deprecated. since 2.2 |
protected static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource inputSource,
org.xml.sax.ErrorHandler errorHandler,
java.util.Map options)
Builds DOM document using JAXP DocumentBuilder |
protected static org.w3c.dom.Document |
getDocument(java.io.InputStream inputStream,
org.xml.sax.ErrorHandler errorHandler)
Deprecated. since 2.2 |
EObject |
getEObject(java.lang.String uriFragment)
|
java.util.Map |
getLoadSaveOptions()
|
XSDSchema |
getSchema()
This gets the resource's schema. |
java.lang.String |
getURIFragment(EObject eObject)
|
protected void |
handleSchemaElement(org.w3c.dom.Element element,
boolean isMeta)
|
void |
load(org.xml.sax.InputSource inputSource,
java.util.Map options)
|
void |
save(java.io.Writer writer,
java.util.Map options)
Saves the resource to the writer using the specified options. |
static void |
serialize(java.io.OutputStream outputStream,
org.w3c.dom.Document document)
|
static void |
serialize(java.io.OutputStream outputStream,
org.w3c.dom.Document document,
java.lang.String encoding)
|
static void |
serialize(java.io.OutputStream outputStream,
org.w3c.dom.Element element)
|
static void |
serialize(java.io.OutputStream outputStream,
org.w3c.dom.Element element,
java.lang.String encoding)
|
void |
setModified(boolean isModified)
|
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
---|
eAdapters, eBasicAdapters, eDeliver, eSetDeliver |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
public static java.lang.String XSD_TRACK_LOCATION
public static java.lang.String XSD_PROGRESS_MONITOR
public static java.lang.String XSD_ENCODING
public static java.lang.String XSD_JAXP_POOL
Resource.load(InputStream, Map)
,
Resource.load(Map)
public static java.lang.String XSD_JAXP_CONFIG
Resource.load(InputStream, Map)
,
Resource.load(Map)
protected static final XSDResourceImpl.SchemaLocator SCHEMA_LOCATOR
protected java.util.Collection attachedSchemas
Constructor Detail |
public XSDResourceImpl()
public XSDResourceImpl(URI uri)
Method Detail |
public static void serialize(java.io.OutputStream outputStream, org.w3c.dom.Element element)
public static void serialize(java.io.OutputStream outputStream, org.w3c.dom.Element element, java.lang.String encoding)
protected static void doSerialize(java.io.OutputStream outputStream, org.w3c.dom.Element element) throws java.io.IOException
java.io.IOException
protected static void doSerialize(java.io.OutputStream outputStream, org.w3c.dom.Element element, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public static void serialize(java.io.OutputStream outputStream, org.w3c.dom.Document document)
public static void serialize(java.io.OutputStream outputStream, org.w3c.dom.Document document, java.lang.String encoding)
protected static void doSerialize(java.io.OutputStream outputStream, org.w3c.dom.Document document) throws java.io.IOException
outputStream
- document
-
java.io.IOException
XSDResourceImpl.doSerialize(OutputStream, Document, Map)
,
XSDResourceImpl.doSerialize(OutputStream, Document, Map)
protected static void doSerialize(java.io.OutputStream outputStream, org.w3c.dom.Document document, java.util.Map options) throws java.io.IOException
java.io.IOException
protected static void doSerialize(java.io.OutputStream outputStream, org.w3c.dom.Document document, java.lang.String encoding) throws java.io.IOException
outputStream
- document
- encoding
-
java.io.IOException
XSDResourceImpl.doSerialize(OutputStream, Document, Map)
protected static void doSerialize(java.io.Writer writer, org.w3c.dom.Document document, java.util.Map options) throws java.io.IOException
java.io.IOException
protected static org.w3c.dom.Document getDocument(org.xml.sax.InputSource inputSource, org.xml.sax.ErrorHandler errorHandler) throws java.io.IOException
inputSource
- the contents to parse.errorHandler
- the handled used by the parser.
java.io.IOException
XSDResourceImpl.getDocument(InputSource, ErrorHandler, Map)
protected static org.w3c.dom.Document getDocument(org.xml.sax.InputSource inputSource, org.xml.sax.ErrorHandler errorHandler, java.util.Map options) throws java.io.IOException
inputSource
- the content to parsererrorHandler
- error handler for recording any loading errorsoptions
- loading options
java.io.IOException
XSDResourceImpl.XSD_JAXP_POOL
,
XSDResourceImpl.XSD_JAXP_CONFIG
protected static org.w3c.dom.Document getDocument(java.io.InputStream inputStream, org.xml.sax.ErrorHandler errorHandler) throws java.io.IOException
inputStream
- the contents to parse.errorHandler
- the handled used by the parser.
java.io.IOException
Builds a document using default JAXP implementation.
protected static org.xml.sax.EntityResolver createEntityResolver()
protected static void assignDiagnostics(XSDSchema xsdSchema, java.util.Collection xsdDiagnostics)
xsdSchema
- the schema.xsdDiagnostics
- the XSDDiagnostic
s.protected void doSave(java.io.OutputStream os, java.util.Map options) throws java.io.IOException
java.io.IOException
public final void save(java.io.Writer writer, java.util.Map options) throws java.io.IOException
writer
- the writeroptions
- the save options.
java.io.IOException
protected void doSave(java.io.Writer writer, java.util.Map options) throws java.io.IOException
java.io.IOException
public XSDSchema getSchema()
public final void load(org.xml.sax.InputSource inputSource, java.util.Map options) throws java.io.IOException
java.io.IOException
protected void doLoad(org.xml.sax.InputSource inputSource, java.util.Map options) throws java.io.IOException
java.io.IOException
protected void doLoad(java.io.InputStream inputStream, java.util.Map options) throws java.io.IOException
XSDResourceImpl
into the resource set.
inputStream
- the contents of the new resource.options
- any options to influence loading behavior.
java.io.IOException
protected boolean findSchemas(org.w3c.dom.Element element)
protected void handleSchemaElement(org.w3c.dom.Element element, boolean isMeta)
public void attached(EObject eObject)
public java.lang.String getURIFragment(EObject eObject)
public EObject getEObject(java.lang.String uriFragment)
public java.util.Map getDefaultSaveOptions()
public java.util.Map getLoadSaveOptions()
public void setModified(boolean isModified)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |