|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.freeform.writer.ProjectWriter
public class ProjectWriter
This class represents the Writer for a Netbeans Freeform Project descriptor.
| Constructor Summary | |
|---|---|
ProjectWriter(FreeformProject freeformProject,
java.io.File projectFile,
org.apache.maven.project.MavenProject mavenProject,
org.apache.maven.plugin.logging.Log log)
Creates a new instance of ProjectWriter. |
|
| Method Summary | |
|---|---|
void |
write()
This is the main method called on the Class for writing the project descriptor file. |
protected void |
writeCompilationUnit(CompilationUnit compilationUnit,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write an CompilationUnit to the given XMLWriter. |
protected void |
writeCompilationUnits(java.util.List compilationUnits,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a List of CompilationUnits to the given XMLWriter. |
protected void |
writeContextMenuItem(ContextMenuItem contextMenuItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a ContextMenuItem to the given XMLWriter. |
protected void |
writeContextMenuItem(CustomisedContextMenuItem contextMenuItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a CustomisedContextMenuItem to the given XMLWriter. |
protected void |
writeContextMenuItem(IdeContextMenuItem contextMenuItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write an IdeContextMenuItem to the given XMLWriter. |
protected void |
writeContextMenuItems(java.util.List contextMenuItems,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a List of ContextMenuItems to the given XMLWriter. |
protected void |
writeIdeAction(NamedNetbeansAction netbeansAction,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a NamedNetbeansAction to the given XMLWriter. |
protected void |
writeIdeAction(NetbeansAction netbeansAction,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a NetbeansAction to the given XMLWriter. |
protected void |
writeIdeActions(java.util.List netbeansActions,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a List of NamedNetbeansActions to the given XMLWriter. |
protected void |
writeName(java.lang.String name,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write the name of the project to the given XMLWriter. |
protected void |
writeProjectXml(org.codehaus.plexus.util.xml.XMLWriter writer)
This method write the FreeformProject in the XMLWriter. |
protected void |
writeProperties(java.util.List properties,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a List of property to the given XMLWriter. |
protected void |
writeProperty(FileProperty property,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a FileProperty to the given XMLWriter. |
protected void |
writeProperty(NamedProperty property,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a NamedProperty to the given XMLWriter. |
protected void |
writeProperty(Property property,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a Property to the given XMLWriter. |
protected void |
writeSourceFolder(SourceFolder sourceFolder,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a SourceFolder to the given XMLWriter. |
protected void |
writeSourceFolders(java.util.List sourceFolders,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a List of SourceFolders to the given XMLWriter. |
protected void |
writeSubprojects(java.util.List subprojects,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a List of Subproject to the given XMLWriter. |
protected void |
writeViewItem(FileViewItem viewItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a FileViewItem to the given XMLWriter. |
protected void |
writeViewItem(FolderViewItem viewItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a FolderViewItem to the given XMLWriter. |
protected void |
writeViewItem(ViewItem viewItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a ViewItem to the given XMLWriter. |
protected void |
writeViewItems(java.util.List viewItems,
org.codehaus.plexus.util.xml.XMLWriter writer)
This method write a List of ViewItems to the given XMLWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectWriter(FreeformProject freeformProject,
java.io.File projectFile,
org.apache.maven.project.MavenProject mavenProject,
org.apache.maven.plugin.logging.Log log)
freeformProject - the FreeformProject to write in the file.projectFile - the project descriptor file to write the
FreeformProject in.mavenProject - The MavenProjectlog - The maven plugin logger.| Method Detail |
|---|
public void write()
throws FreeformPluginException
FreeformPluginException - if something goes wrong.
protected void writeCompilationUnit(CompilationUnit compilationUnit,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
compilationUnit - The CompilationUnit to write.writer - The XMLWriter to write the CompilationUnit in.
FreeformPluginException - if something goes wrong.
protected void writeCompilationUnits(java.util.List compilationUnits,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
compilationUnits - The List of CompilationUnits to write.writer - The XMLWriter to write the List in.
FreeformPluginException - if something goes wrong.
protected void writeContextMenuItem(ContextMenuItem contextMenuItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
contextMenuItem - The ContextMenuItem to write.writer - The XMLWriter to write the ContextMenuItem in.
FreeformPluginException - if something goes wrong.
protected void writeContextMenuItem(IdeContextMenuItem contextMenuItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
contextMenuItem - The IdeContextMenuItem to write.writer - The XMLWriter to write the IdeContextMenuItem in.
FreeformPluginException - if something goes wrong.
protected void writeContextMenuItem(CustomisedContextMenuItem contextMenuItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
contextMenuItem - The CustomisedContextMenuItem to write.writer - The XMLWriter to write the CustomisedContextMenuItem in.
FreeformPluginException - if something goes wrong.
protected void writeContextMenuItems(java.util.List contextMenuItems,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
contextMenuItems - The List of ContextMenuItems to write.writer - The XMLWriter to write the List in.
FreeformPluginException - if something goes wrong.
protected void writeIdeAction(NetbeansAction netbeansAction,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
netbeansAction - The NetbeansAction to write.writer - The XMLWriter to write the NetbeansAction in.
FreeformPluginException - if something goes wrong.
protected void writeIdeAction(NamedNetbeansAction netbeansAction,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
netbeansAction - The NamedNetbeansAction to write.writer - The XMLWriter to write the NamedNetbeansAction in.
FreeformPluginException - if something goes wrong.
protected void writeIdeActions(java.util.List netbeansActions,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
netbeansActions - The List of NamedNetbeansActions to write.writer - The XMLWriter to write the List of NamedNetbeansActions in.
FreeformPluginException - if something goes wrong.
protected void writeName(java.lang.String name,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
name - The name of the project to write.writer - The XMLWriter to write the name of the project in.
FreeformPluginException - if something goes wrong.
protected void writeProjectXml(org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
writer - The XMLWriter to write the FreeformProject in.
FreeformPluginException - if something goes wrong.
protected void writeProperties(java.util.List properties,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
properties - The List of property to write.writer - The XMLWriter to write the List of property in.
FreeformPluginException - if something goes wrong.
protected void writeProperty(Property property,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
property - The Property to write.writer - The XMLWriter to write the Property in.
FreeformPluginException - if something goes wrong.
protected void writeProperty(NamedProperty property,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
property - The NamedProperty to write.writer - The XMLWriter to write the NamedProperty in.
FreeformPluginException - if something goes wrong.
protected void writeProperty(FileProperty property,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
property - The FileProperty to write.writer - The XMLWriter to write the FileProperty in.
FreeformPluginException - if something goes wrong.
protected void writeSourceFolder(SourceFolder sourceFolder,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
sourceFolder - The SourceFolder to write.writer - The XMLWriter to write the SourceFolder in.
FreeformPluginException - if something goes wrong.
protected void writeSourceFolders(java.util.List sourceFolders,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
sourceFolders - The List of SourceFolders to write.writer - The XMLWriter to write the List of SourceFolders in.
FreeformPluginException - if something goes wrong.
protected void writeSubprojects(java.util.List subprojects,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
subprojects - The List of Subproject to write.writer - The XMLWriter to write the List of SourceFolders in.
FreeformPluginException - if something goes wrong.
protected void writeViewItem(ViewItem viewItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
viewItem - The ViewItem to write.writer - The XMLWriter to write the ViewItem in.
FreeformPluginException - if something goes wrong.
protected void writeViewItem(FileViewItem viewItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
viewItem - The FileViewItem to write.writer - The XMLWriter to write the FileViewItem in.
FreeformPluginException - if something goes wrong.
protected void writeViewItem(FolderViewItem viewItem,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
viewItem - The FolderViewItem to write.writer - The XMLWriter to write the FolderViewItem in.
FreeformPluginException - if something goes wrong.
protected void writeViewItems(java.util.List viewItems,
org.codehaus.plexus.util.xml.XMLWriter writer)
throws FreeformPluginException
viewItems - The List of ViewItems to write.writer - The XMLWriter to write the List of ViewItems in.
FreeformPluginException - if something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||