|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--com.ashridgetech.jamda.config.ModelTransformerSpec
The transformer
element within the Jamda Ant Task .
Field Summary |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
ModelTransformerSpec()
|
Method Summary | |
protected void |
configureTransformer(ModelTransformer transformer)
Configure the ModelTransformer specified by this class. |
TransformerConfig |
createConfig()
Add a config element to this task. |
ModelTransformer |
getConfiguredTransformer()
|
protected ModelTransformer |
getTransformer()
|
protected java.lang.Class |
loadClass(java.lang.String classname)
Load named class either via the system classloader or a given custom classloader. |
void |
setClassName(java.lang.String className)
Set the name of the ModelTransformer class. |
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the optional classpath to the Model Transformer |
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Set the reference to an optional classpath to the Model Transformer |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModelTransformerSpec()
Method Detail |
public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath
- the classpath to use when loading the Model Transformerpublic void setClasspathRef(org.apache.tools.ant.types.Reference r)
r
- the id of the Ant path instance to act as the classpath
for loading the Model Transformerpublic void setClassName(java.lang.String className)
ModelTransformer
class.
className
- the name of the classpublic TransformerConfig createConfig()
config
element to this task. This will be of
the type supplied by the ModelTransformer
class
specified to setClassName(java.lang.String)
.
ModelTransformer
requiredprotected void configureTransformer(ModelTransformer transformer)
ModelTransformer
specified by this class.
If overridden by subclass, subclass method should call super
method.
transformer
- the transformer to be configured - must not be nullprotected ModelTransformer getTransformer()
public ModelTransformer getConfiguredTransformer()
protected java.lang.Class loadClass(java.lang.String classname) throws org.apache.tools.ant.BuildException
loadClass
in the Ant XSLTProcess task.
classname
- the name of the class to load.
org.apache.tools.ant.BuildException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |