org.guvnor.common.services.project.backend.server
Class POMContentHandler
java.lang.Object
org.guvnor.common.services.project.backend.server.POMContentHandler
@Dependent
public class POMContentHandler
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POMContentHandler
public POMContentHandler()
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 savedoriginalPomAsText - 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
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.