Class ModelToJavaWriter

java.lang.Object
org.sonatype.maven.polyglot.java.writer.ModelToJavaWriter

public class ModelToJavaWriter extends Object
  • Field Details

    • out

      private Writer out
    • model

      private org.apache.maven.model.Model model
    • br

      private String br
  • Constructor Details

    • ModelToJavaWriter

      public ModelToJavaWriter(Writer out, org.apache.maven.model.Model model)
  • Method Details

    • write

      public void write()
    • writeFileStar

      private void writeFileStar() throws IOException
      Throws:
      IOException
    • writeFileEnd

      private void writeFileEnd() throws IOException
      Throws:
      IOException
    • writeHeader

      private void writeHeader() throws IOException
      Throws:
      IOException
    • writeParent

      private void writeParent() throws IOException
      Throws:
      IOException
    • writeProperties

      private void writeProperties() throws IOException
      Throws:
      IOException
    • writeRepositories

      private void writeRepositories() throws IOException
      Throws:
      IOException
    • writeDependencies

      private void writeDependencies() throws IOException
      Throws:
      IOException
    • writeDependencies

      private void writeDependencies(List<org.apache.maven.model.Dependency> dependencies, String methodName) throws IOException
      Throws:
      IOException
    • writeDependency

      private void writeDependency(org.apache.maven.model.Dependency dependency, String indent) throws IOException
      Throws:
      IOException
    • writeBuild

      private void writeBuild() throws IOException
      Throws:
      IOException
    • writeBuildBase

      private void writeBuildBase(org.apache.maven.model.BuildBase build, String indent) throws IOException
      Throws:
      IOException
    • writeResources

      private void writeResources(List<org.apache.maven.model.Resource> resources, String indent, String methodName) throws IOException
      Throws:
      IOException
    • writeResource

      private void writeResource(org.apache.maven.model.Resource resource, String indent) throws IOException
      Throws:
      IOException
    • writePlugins

      private void writePlugins(List<org.apache.maven.model.Plugin> plugins, String indent, String methodName) throws IOException
      Throws:
      IOException
    • writePlugin

      private void writePlugin(org.apache.maven.model.Plugin plugin, String indent) throws IOException
      Throws:
      IOException
    • writeConfiguration

      private void writeConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom configuration, String indent) throws IOException
      Throws:
      IOException
    • generateConfig

      private void generateConfig(org.codehaus.plexus.util.xml.Xpp3Dom node, StringBuilder sb, String indent)
    • calculateXMlHierarchyLevel

      private int calculateXMlHierarchyLevel(org.codehaus.plexus.util.xml.Xpp3Dom node, int level)
    • calculateXMLIndent

      private String calculateXMLIndent(org.codehaus.plexus.util.xml.Xpp3Dom node)
    • writePluginDependency

      private void writePluginDependency(List<org.apache.maven.model.Dependency> dependencies, String indent) throws IOException
      Throws:
      IOException
    • writeProfiles

      private void writeProfiles() throws IOException
      Throws:
      IOException