|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.beancontext.BeanContextChildSupport | +--java.beans.beancontext.BeanContextSupport | +--xdoclet.beans.BeanContextSupportEx | +--xdoclet.Plugin | +--xdoclet.plugins.ScriptPlugin
Base class for plugins based on scripting.
Field Summary |
Fields inherited from class java.beans.beancontext.BeanContextSupport |
bcmListeners, children, designTime, locale, okToUseGui |
Fields inherited from class java.beans.beancontext.BeanContextChildSupport |
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
Fields inherited from interface java.beans.beancontext.BeanContext |
globalHierarchyLock |
Fields inherited from interface java.beans.DesignMode |
PROPERTYNAME |
Constructor Summary | |
ScriptPlugin()
|
Method Summary | |
Property |
createProperty()
|
void |
execute()
Generates the content. |
protected void |
generate(File destinationFile,
Collection metaData)
Generates a file. |
protected void |
generate(File destinationFile,
Object metaData)
Generates a file. |
protected Map |
getContextObjects()
Subclasses can call this method prior to generation to put additional objects on the context. |
String |
getTemplatePath()
Gets the template name. |
protected void |
setContextObject(String name,
Object obj)
Allows subclasses to set an additional object in the context. |
void |
setTemplatePath(String templateName)
Sets the path to the template. |
protected void |
validate()
|
Methods inherited from class xdoclet.beans.BeanContextSupportEx |
add, createInvocations, getInvocations, getParent, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.beans.beancontext.BeanContextChild |
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Constructor Detail |
public ScriptPlugin()
Method Detail |
public final String getTemplatePath()
public void setTemplatePath(String templateName)
templateName
- relative path to the template to use.protected void validate() throws XDocletException
validate
in class Plugin
XDocletException
public void execute() throws IOException, XDocletException
Plugin
execute
in class Plugin
XDocletException
IOException
public final Property createProperty()
protected void generate(File destinationFile, Collection metaData) throws IOException, XDocletException
Plugin
generate
in class Plugin
destinationFile
- file to be generated.metaData
- metadata used during generation.
IOException
- if an IO error occurs.
XDocletException
- if generation fails.protected void generate(File destinationFile, Object metaData) throws IOException, XDocletException
Plugin
generate
in class Plugin
destinationFile
- file to be generated.metaData
- metadata used during generation.
XDocletException
- if generation fails.
IOException
- if an IO error occurs.protected final Map getContextObjects()
protected final void setContextObject(String name, Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |