|
|||||||||||
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 Collection |
attachedSchemas
|
protected static XSDResourceImpl.SchemaLocator |
SCHEMA_LOCATOR
|
static String |
XSD_ENCODING
|
static 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 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 String |
XSD_PROGRESS_MONITOR
|
static 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,
Collection xsdDiagnostics)
Assigns diagnostics to a schema. |
void |
attached(EObject eObject)
|
protected static EntityResolver |
createEntityResolver()
Creates an EntityResovler that can be used to help with parsing schema documents. |
protected void |
doLoad(InputSource inputSource,
Map options)
|
protected void |
doLoad(InputStream inputStream,
Map options)
Loads a new XSDResourceImpl into the resource set. |
protected void |
doSave(OutputStream os,
Map options)
|
protected void |
doSave(Writer writer,
Map options)
|
protected static void |
doSerialize(OutputStream outputStream,
Document document)
Deprecated. since 2.2 |
protected static void |
doSerialize(OutputStream outputStream,
Document document,
Map options)
|
protected static void |
doSerialize(OutputStream outputStream,
Document document,
String encoding)
Deprecated. since 2.2 |
protected static void |
doSerialize(OutputStream outputStream,
Element element)
|
protected static void |
doSerialize(OutputStream outputStream,
Element element,
String encoding)
|
protected static void |
doSerialize(Writer writer,
Document document,
Map options)
|
protected boolean |
findSchemas(Element element)
|
Map |
getDefaultSaveOptions()
|
protected static Document |
getDocument(InputSource inputSource,
ErrorHandler errorHandler)
Deprecated. since 2.2 |
protected static Document |
getDocument(InputSource inputSource,
ErrorHandler errorHandler,
Map options)
Builds DOM document using JAXP DocumentBuilder |
protected static Document |
getDocument(InputStream inputStream,
ErrorHandler errorHandler)
Deprecated. since 2.2 |
EObject |
getEObject(String uriFragment)
|
Map |
getLoadSaveOptions()
|
XSDSchema |
getSchema()
This gets the resource's schema. |
String |
getURIFragment(EObject eObject)
|
protected void |
handleSchemaElement(Element element,
boolean isMeta)
|
void |
load(InputSource inputSource,
Map options)
|
void |
save(Writer writer,
Map options)
Saves the resource to the writer using the specified options. |
static void |
serialize(OutputStream outputStream,
Document document)
|
static void |
serialize(OutputStream outputStream,
Document document,
String encoding)
|
static void |
serialize(OutputStream outputStream,
Element element)
|
static void |
serialize(OutputStream outputStream,
Element element,
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 String XSD_TRACK_LOCATION
public static String XSD_PROGRESS_MONITOR
public static String XSD_ENCODING
public static String XSD_JAXP_POOL
Resource.load(InputStream, Map)
,
Resource.load(Map)
public static String XSD_JAXP_CONFIG
Resource.load(InputStream, Map)
,
Resource.load(Map)
protected static final XSDResourceImpl.SchemaLocator SCHEMA_LOCATOR
protected Collection attachedSchemas
Constructor Detail |
public XSDResourceImpl()
public XSDResourceImpl(URI uri)
Method Detail |
public static void serialize(OutputStream outputStream, Element element)
public static void serialize(OutputStream outputStream, Element element, String encoding)
protected static void doSerialize(OutputStream outputStream, Element element) throws IOException
IOException
protected static void doSerialize(OutputStream outputStream, Element element, String encoding) throws IOException
IOException
public static void serialize(OutputStream outputStream, Document document)
public static void serialize(OutputStream outputStream, Document document, String encoding)
protected static void doSerialize(OutputStream outputStream, Document document) throws IOException
outputStream
- document
-
IOException
doSerialize(OutputStream, Document, Map)
,
doSerialize(OutputStream, Document, Map)
protected static void doSerialize(OutputStream outputStream, Document document, Map options) throws IOException
IOException
protected static void doSerialize(OutputStream outputStream, Document document, String encoding) throws IOException
outputStream
- document
- encoding
-
IOException
doSerialize(OutputStream, Document, Map)
protected static void doSerialize(Writer writer, Document document, Map options) throws IOException
IOException
protected static Document getDocument(InputSource inputSource, ErrorHandler errorHandler) throws IOException
inputSource
- the contents to parse.errorHandler
- the handled used by the parser.
IOException
getDocument(InputSource, ErrorHandler, Map)
protected static Document getDocument(InputSource inputSource, ErrorHandler errorHandler, Map options) throws IOException
inputSource
- the content to parsererrorHandler
- error handler for recording any loading errorsoptions
- loading options
IOException
XSD_JAXP_POOL
,
XSD_JAXP_CONFIG
protected static Document getDocument(InputStream inputStream, ErrorHandler errorHandler) throws IOException
inputStream
- the contents to parse.errorHandler
- the handled used by the parser.
IOException
Builds a document using default JAXP implementation.
protected static EntityResolver createEntityResolver()
protected static void assignDiagnostics(XSDSchema xsdSchema, Collection xsdDiagnostics)
xsdSchema
- the schema.xsdDiagnostics
- the XSDDiagnostic
s.protected void doSave(OutputStream os, Map options) throws IOException
IOException
public final void save(Writer writer, Map options) throws IOException
writer
- the writeroptions
- the save options.
IOException
protected void doSave(Writer writer, Map options) throws IOException
IOException
public XSDSchema getSchema()
public final void load(InputSource inputSource, Map options) throws IOException
IOException
protected void doLoad(InputSource inputSource, Map options) throws IOException
IOException
protected void doLoad(InputStream inputStream, Map options) throws IOException
XSDResourceImpl
into the resource set.
inputStream
- the contents of the new resource.options
- any options to influence loading behavior.
IOException
protected boolean findSchemas(Element element)
protected void handleSchemaElement(Element element, boolean isMeta)
public void attached(EObject eObject)
public String getURIFragment(EObject eObject)
public EObject getEObject(String uriFragment)
public Map getDefaultSaveOptions()
public 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 |