Package org.apache.xmlbeans.impl.tool
Class SchemaResourceManager
java.lang.Object
org.apache.xmlbeans.impl.tool.SchemaImportResolver
org.apache.xmlbeans.impl.tool.BaseSchemaResourceManager
org.apache.xmlbeans.impl.tool.SchemaResourceManager
public class SchemaResourceManager extends BaseSchemaResourceManager
- 
Constructor Summary
Constructors Constructor Description SchemaResourceManager(File directory) - 
Method Summary
Modifier and Type Method Description protected voiddeleteFile(String filename)Deletes a file.protected booleanfileExists(String filename)Returns true if the given filename exists.protected String[]getAllXSDFilenames()Returns a list of all the XSD filesnames in the project.protected InputStreaminputStreamForFile(String filename)Gets the data in the given filename as an InputStream.static voidmain(String[] args)static voidprintUsage()protected voidwarning(String msg)Sends messages to System.out.protected voidwriteInputStreamToFile(InputStream input, String filename)Writes an entire file in one step.Methods inherited from class org.apache.xmlbeans.impl.tool.BaseSchemaResourceManager
getDefaultSchemaDir, getIndexFilename, init, lookupResource, process, processAll, reportActualNamespace, syncCacheWithLocalXsdFiles, writeCache 
- 
Constructor Details
 - 
Method Details
- 
printUsage
public static void printUsage() - 
main
- Throws:
 IOException
 - 
warning
Sends messages to System.out.- Specified by:
 warningin classBaseSchemaResourceManager
 - 
fileExists
Returns true if the given filename exists. The filenames are of the form "/foo/bar/zee.xsd" and should be construed as rooted at the root of the project.- Specified by:
 fileExistsin classBaseSchemaResourceManager
 - 
inputStreamForFile
Gets the data in the given filename as an InputStream.- Specified by:
 inputStreamForFilein classBaseSchemaResourceManager- Throws:
 IOException
 - 
writeInputStreamToFile
Writes an entire file in one step. An InputStream is passed and copied to the file.- Specified by:
 writeInputStreamToFilein classBaseSchemaResourceManager- Throws:
 IOException
 - 
deleteFile
Deletes a file. Sometimes immediately after writing a new file we notice that it's exactly the same as an existing file and we delete it. We never delete a file that was given to us by the user.- Specified by:
 deleteFilein classBaseSchemaResourceManager
 - 
getAllXSDFilenames
Returns a list of all the XSD filesnames in the project.- Specified by:
 getAllXSDFilenamesin classBaseSchemaResourceManager
 
 -