Guvnor - Project Backend 6.2.0.Final

org.guvnor.common.services.project.backend.server
Class POMContentHandler

java.lang.Object
  extended by org.guvnor.common.services.project.backend.server.POMContentHandler

@Dependent
public class POMContentHandler
extends Object


Constructor Summary
POMContentHandler()
           
 
Method Summary
static String getKiePluginVersion()
           
 POM toModel(String pomAsString)
           
 String toString(POM pomModel)
           
 String toString(POM gavModel, String originalPomAsText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POMContentHandler

public POMContentHandler()
Method Detail

toString

public String toString(POM pomModel)
                throws IOException
Throws:
IOException

toString

public String toString(POM gavModel,
                       String originalPomAsText)
                throws IOException,
                       org.codehaus.plexus.util.xml.pull.XmlPullParserException
Parameters:
gavModel - The model that is saved
originalPomAsText - The original pom in text form, since the guvnor POM model does not cover all the pom.xml features.
Returns:
pom.xml for saving, The original pom.xml with the fields edited in gavModel replaced.
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

toModel

public POM toModel(String pomAsString)
            throws IOException,
                   org.codehaus.plexus.util.xml.pull.XmlPullParserException
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getKiePluginVersion

public static String getKiePluginVersion()

Guvnor - Project Backend 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.