org.apache.maven.tools.plugin.generator
Class PluginXdocGenerator

java.lang.Object
  extended by org.apache.maven.tools.plugin.generator.PluginXdocGenerator
All Implemented Interfaces:
Generator

public class PluginXdocGenerator
extends java.lang.Object
implements Generator


Constructor Summary
PluginXdocGenerator()
           
 
Method Summary
 void execute(java.io.File destinationDirectory, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
private  java.util.List filterParameters(java.util.List parameterList)
           
private  java.lang.String getMojoFilename(org.apache.maven.plugin.descriptor.MojoDescriptor mojo, java.lang.String ext)
           
private  java.util.List getParametersByRequired(boolean required, java.util.List parameterList)
           
protected  void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, java.io.File destinationDirectory)
           
private  void writeBody(java.io.FileWriter writer, org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor)
           
private  void writeDetail(java.lang.String param, java.lang.String value, org.codehaus.plexus.util.xml.XMLWriter w)
           
private  void writeGoalAttributes(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w)
           
private  void writeGoalParameterTable(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w)
           
private  void writeParameterDetails(java.util.List parameterList, org.codehaus.plexus.util.xml.XMLWriter w)
           
private  void writeParameterList(java.lang.String title, java.util.List parameterList, org.codehaus.plexus.util.xml.XMLWriter w)
           
private  void writeParameterSummary(java.util.List parameterList, org.codehaus.plexus.util.xml.XMLWriter w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginXdocGenerator

public PluginXdocGenerator()
Method Detail

execute

public void execute(java.io.File destinationDirectory,
                    org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
             throws java.io.IOException
Specified by:
execute in interface Generator
Throws:
java.io.IOException

processMojoDescriptor

protected void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                     java.io.File destinationDirectory)
                              throws java.io.IOException
Throws:
java.io.IOException

getMojoFilename

private java.lang.String getMojoFilename(org.apache.maven.plugin.descriptor.MojoDescriptor mojo,
                                         java.lang.String ext)

writeBody

private void writeBody(java.io.FileWriter writer,
                       org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor)

writeGoalAttributes

private void writeGoalAttributes(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                 org.codehaus.plexus.util.xml.XMLWriter w)

writeGoalParameterTable

private void writeGoalParameterTable(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                     org.codehaus.plexus.util.xml.XMLWriter w)

filterParameters

private java.util.List filterParameters(java.util.List parameterList)

writeParameterDetails

private void writeParameterDetails(java.util.List parameterList,
                                   org.codehaus.plexus.util.xml.XMLWriter w)

writeDetail

private void writeDetail(java.lang.String param,
                         java.lang.String value,
                         org.codehaus.plexus.util.xml.XMLWriter w)

writeParameterSummary

private void writeParameterSummary(java.util.List parameterList,
                                   org.codehaus.plexus.util.xml.XMLWriter w)

writeParameterList

private void writeParameterList(java.lang.String title,
                                java.util.List parameterList,
                                org.codehaus.plexus.util.xml.XMLWriter w)

getParametersByRequired

private java.util.List getParametersByRequired(boolean required,
                                               java.util.List parameterList)