|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectResourceImpl
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
|
Field Summary | |
protected Collection |
attachedSchemas
|
protected static XSDResourceImpl.SchemaLocator |
SCHEMA_LOCATOR
|
static String |
XSD_ENCODING
|
static String |
XSD_PROGRESS_MONITOR
|
static String |
XSD_TRACK_LOCATION
|
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(InputStream inputStream,
Map options)
Loads a new XSDResourceImpl into the resource set. |
protected void |
doSave(OutputStream os,
Map options)
|
protected static void |
doSerialize(OutputStream outputStream,
Document document)
|
protected static void |
doSerialize(OutputStream outputStream,
Document document,
String encoding)
|
protected static void |
doSerialize(OutputStream outputStream,
Element element)
|
protected static void |
doSerialize(OutputStream outputStream,
Element element,
String encoding)
|
protected boolean |
findSchemas(Element element)
|
Map |
getDefaultSaveOptions()
|
protected static Document |
getDocument(InputSource inputSource,
ErrorHandler errorHandler)
Builds a document using JAXP. |
protected static Document |
getDocument(InputStream inputStream,
ErrorHandler errorHandler)
Builds a document using JAXP. |
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)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String XSD_TRACK_LOCATION
public static String XSD_PROGRESS_MONITOR
public static String XSD_ENCODING
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
IOException
protected static void doSerialize(OutputStream outputStream, Document document, String encoding) 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
protected static Document getDocument(InputStream inputStream, ErrorHandler errorHandler) throws IOException
inputStream
- the contents to parse.errorHandler
- the handled used by the parser.
IOException
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 XSDSchema getSchema()
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-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |