JavaSource | getJavaSource(JavaQName pName)- Returns the generated class with the given name or null, if
no such class has been generated.
|
Iterator | getJavaSources()- Returns an iterator to the generated classes.
|
File | getLocation(File pBaseDir, String pPackage)- Returns a location the given package, relative to the given
base directory.
|
File | getLocation(File pBaseDir, JavaSource pJs)- Returns a location for storing the JavaSource class, relative
to the given base directory.
|
File | getLocation(File pBaseDir, TextFile pTextFile)- Returns a location for storing the TextFile, relative
to the given base directory.
|
Logger | getLogger()- Returns the
Logger.
|
File | getPackageDirectory(File pBaseDir, String pPackageName)- Given a package name and a base directory, returns the package
directory.
|
File | getSourceFile(File pBaseDir, JavaQName pQName)- Given a fully qualified name, returns the name of the
corresponding Java file.
|
TextFile | getTextFile(String pPackageName, String pFileName)- Returns the text file with the given name or null, if no such
text file has been generated.
|
Iterator | getTextFiles()- Returns an iterator to the generated text files.
|
boolean | isOverwriteForced()- By default the JavaSourceFactory will only overwrite existing
files, if they have different content.
|
protected boolean | isSameFile(String pContents, File pFile)- Verifies whether the given string and the contents of the given
file are identical.
|
protected boolean | isSameFile(String pContents1, String pContents2)- Verifies whether the given strings are identical.
|
protected boolean | isSameFile(JavaSource pJs, File pFile)- Verifies whether the given Java source and the contents of the
given file are identical.
|
boolean | isSettingReadOnly()- Returns whether the generated files are created in read-only mode.
|
JavaSource | newJavaSource(JavaQName pName)- Creates a new instance of JavaSource with the given
name and default protection.
|
JavaSource | newJavaSource(JavaQName pName, String pProtection)- Creates a new instance of JavaSource with the given
name and protection.
|
JavaSource | newJavaSource(JavaQName pName, JavaSource.Protection pProtection)- Creates a new instance of JavaSource with the given
name and protection.
|
TextFile | newTextFile(String pPackageName, String pFileName)- Creates a new text file.
|
void | setLogger(Logger pLogger)- Sets the
Logger to use.
|
void | setOverwriteForced(boolean pOverwriteForced)- By default the JavaSourceFactory will only overwrite existing
files only, if they have different content.
|
void | setSettingReadOnly(boolean pSettingReadOnly)- Sets whether the generated files are created in read-only mode.
|
void | write(File pBaseDir)- Writes all Source files to the FileSystem, relative to the
given base directory.
|
void | write(File pJavaSourceDir, File pResourceDir)- Writes all Source files to the file system, relative to the
respective base directory.
|
void | write(File pBaseDir, JavaSource pJs)- Writes the given JavaSource class to the file system,
relative to the given base directory.
|
void | write(File pBaseDir, TextFile pFile)- Writes the given text file to the file system, relative to the
given base directory.
|
protected void | writeFile(File pFile, String pContents)- Actually creates a file with the given name.
|
protected void | writeFile(File pFile, JavaSource pJs)- Actually creates a file with the given name.
|