|
||||||||||
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
public class 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/interfaces inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl |
---|
ResourceImpl.ContentsEList<E extends java.lang.Object & EObject>, ResourceImpl.ModificationTrackingAdapter |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter> |
Field Summary | |
---|---|
protected java.util.Collection<XSDSchema> |
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, unloadingContents, uri, warnings |
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
---|
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG |
Constructor Summary | |
---|---|
XSDResourceImpl()
|
|
XSDResourceImpl(URI uri)
|
Method Summary | |
---|---|
protected static void |
assignDiagnostics(XSDSchema xsdSchema,
java.util.Collection<XSDDiagnostic> 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<java.lang.Object,java.lang.Object> |
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<java.lang.Object,java.lang.Object> |
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 |
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<XSDSchema> 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)
@Deprecated protected static void doSerialize(java.io.OutputStream outputStream, org.w3c.dom.Document document) throws java.io.IOException
outputStream
- document
-
java.io.IOException
doSerialize(OutputStream, Document, Map)
,
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
@Deprecated 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
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
@Deprecated 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
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
XSD_JAXP_POOL
,
XSD_JAXP_CONFIG
@Deprecated 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<XSDDiagnostic> xsdDiagnostics)
xsdSchema
- the schema.xsdDiagnostics
- the XSDDiagnostic
s.protected void doSave(java.io.OutputStream os, java.util.Map<?,?> options) throws java.io.IOException
doSave
in class ResourceImpl
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.
doLoad
in class ResourceImpl
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)
attached
in interface Resource.Internal
attached
in class ResourceImpl
public java.lang.String getURIFragment(EObject eObject)
getURIFragment
in interface Resource
getURIFragment
in class ResourceImpl
public EObject getEObject(java.lang.String uriFragment)
getEObject
in interface Resource
getEObject
in class ResourceImpl
public java.util.Map<java.lang.Object,java.lang.Object> getDefaultSaveOptions()
public java.util.Map<java.lang.Object,java.lang.Object> getLoadSaveOptions()
public void setModified(boolean isModified)
setModified
in interface Resource
setModified
in class ResourceImpl
|
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 |