|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.tool.SchemaImportResolver org.apache.xmlbeans.impl.tool.BaseSchemaResourceManager
public abstract class BaseSchemaResourceManager
Constructor Summary | |
---|---|
protected |
BaseSchemaResourceManager()
|
Method Summary | |
---|---|
protected abstract void |
deleteFile(java.lang.String filename)
Deletes a file. |
protected abstract boolean |
fileExists(java.lang.String filename)
Returns true if the given filename exists. |
protected abstract java.lang.String[] |
getAllXSDFilenames()
Returns a list of all the XSD filesnames in the project. |
protected java.lang.String |
getDefaultSchemaDir()
|
protected java.lang.String |
getIndexFilename()
|
protected void |
init()
|
protected abstract java.io.InputStream |
inputStreamForFile(java.lang.String filename)
Gets the data in the given filename as an InputStream. |
SchemaImportResolver.SchemaResource |
lookupResource(java.lang.String nsURI,
java.lang.String schemaLocation)
Called when the ImportLoader wishes to resolve the given import. |
void |
process(java.lang.String[] uris,
java.lang.String[] filenames,
boolean sync,
boolean refresh,
boolean imports)
|
void |
processAll(boolean sync,
boolean refresh,
boolean imports)
|
void |
reportActualNamespace(SchemaImportResolver.SchemaResource rresource,
java.lang.String actualNamespace)
Updates actual namespace in the table. |
void |
syncCacheWithLocalXsdFiles(java.lang.String[] filenames,
boolean deleteOnlyMentioned)
Adds items to the cache that point to new files that aren't described in the cache, and optionally deletes old entries. |
protected abstract void |
warning(java.lang.String msg)
Produces diagnostic messages such as "downloading X to file Y". |
void |
writeCache()
|
protected abstract void |
writeInputStreamToFile(java.io.InputStream input,
java.lang.String filename)
Writes an entire file in one step. |
Methods inherited from class org.apache.xmlbeans.impl.tool.SchemaImportResolver |
---|
resolveImports |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseSchemaResourceManager()
Method Detail |
---|
protected final void init()
public final void writeCache() throws java.io.IOException
java.io.IOException
public final void processAll(boolean sync, boolean refresh, boolean imports)
public final void process(java.lang.String[] uris, java.lang.String[] filenames, boolean sync, boolean refresh, boolean imports)
public final void syncCacheWithLocalXsdFiles(java.lang.String[] filenames, boolean deleteOnlyMentioned)
public SchemaImportResolver.SchemaResource lookupResource(java.lang.String nsURI, java.lang.String schemaLocation)
lookupResource
in class SchemaImportResolver
public void reportActualNamespace(SchemaImportResolver.SchemaResource rresource, java.lang.String actualNamespace)
reportActualNamespace
in class SchemaImportResolver
protected java.lang.String getIndexFilename()
protected java.lang.String getDefaultSchemaDir()
protected abstract void warning(java.lang.String msg)
protected abstract boolean fileExists(java.lang.String filename)
protected abstract java.io.InputStream inputStreamForFile(java.lang.String filename) throws java.io.IOException
java.io.IOException
protected abstract void writeInputStreamToFile(java.io.InputStream input, java.lang.String filename) throws java.io.IOException
java.io.IOException
protected abstract void deleteFile(java.lang.String filename)
protected abstract java.lang.String[] getAllXSDFilenames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |