com.ibm.xml.xapi
Interface XCompilationParameters
- public interface XCompilationParameters
XCompilationFactory
compile
and load
methods. New compilation
parameters objects can be created through the XCompilationFactory
newOutputParameters
method.
See Also:
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getClassLoader()
Get the class loader.
|
|
getClassName()
Get the base class name for the generated classes.
|
|
getDirectoryName()
Get the directory name.
|
|
getPackageName()
Get the package name for the generated classes.
|
|
setClassLoader(java.lang.ClassLoader classLoader)
Specify the class loader to use when loading the classes.
|
|
setClassName(java.lang.String className)
Specify the base class name to use for the
generated class files at compile time or
the base class name to search
for at load time.
|
|
setDirectoryName(java.lang.String directoryName)
Specify the directory to write the
class files to at compile time.
|
|
setPackageName(java.lang.String packageName)
Specify the package name to use for the
class files at compile time or the package name to search
for at load time.
|
Method Detail
setClassName
- void setClassName(java.lang.String className)
Parameters:
className
- The class name. Throws:
java.lang.NullPointerException
- if className
is null
. See Also:
getClassName
- java.lang.String getClassName()
Get the base class name for the generated classes.
Returns:
The class name.
setPackageName
- void setPackageName(java.lang.String packageName)
Specify the package name to use for the
class files at compile time or the package name to search
for at load time. Must be a valid Java package name.
If not specified the Java default package is used.
Use
setClassName
to set the class name.
Parameters:
packageName
- The package name or null
to use
the Java default package. See Also:
getPackageName
- java.lang.String getPackageName( )
Get the package name for the generated classes.
Returns:
The package name or
null
if not specified. setDirectoryName
- void setDirectoryName(java.lang.String directoryName)
Specify the directory to write the
class files to at compile time.
If not specified, the generated classes will be written to the current
working directory.
This is a compile time parameter only, at load time the classpath
is used to locate the class files.
Parameters:
directoryName
- The directory name or null
to restore the default. getDirectoryName
- java.lang.String getDirectoryName( )
Get the directory name.
Returns:
The directory name or
null
if not specified. setClassLoader
- void setClassLoader(java.lang.ClassLoader classLoader)
Specify the class loader to use when loading the classes.
The default is to use the class loader that was used to load
the processor.
This is a load time parameter only.
Parameters:
classLoader
- The class loader or null
to
restore the default. getClassLoader
- java.lang.ClassLoader getClassLoader( )
Get the class loader.
Returns:
The class loader or
null
if not specified.
setPackageName
to set the package name.