org.apache.ivy.plugins.parser.m2

Class PomReader

public class PomReader extends Object

Provides the method to read some data out of the DOM tree of a pom file.
Nested Class Summary
classPomReader.PomDependencyData
classPomReader.PomDependencyMgtElement
classPomReader.PomPluginElement
Constructor Summary
PomReader(URL descriptorURL, Resource res)
Method Summary
StringgetArtifactId()
ListgetDependencies()
ListgetDependencyMgt()
StringgetDescription()
StringgetGroupId()
StringgetHomePage()
License[]getLicenses()
StringgetPackaging()
StringgetParentArtifactId()
StringgetParentGroupId()
StringgetParentVersion()
ListgetPlugins()
MapgetPomProperties()
ModuleRevisionIdgetRelocation()
StringgetVersion()
booleanhasParent()
voidsetProperty(String prop, String val)
Add a property if not yet set and value is not null.

Constructor Detail

PomReader

public PomReader(URL descriptorURL, Resource res)

Method Detail

getArtifactId

public String getArtifactId()

getDependencies

public List getDependencies()

getDependencyMgt

public List getDependencyMgt()

getDescription

public String getDescription()

getGroupId

public String getGroupId()

getHomePage

public String getHomePage()

getLicenses

public License[] getLicenses()

getPackaging

public String getPackaging()

getParentArtifactId

public String getParentArtifactId()

getParentGroupId

public String getParentGroupId()

getParentVersion

public String getParentVersion()

getPlugins

public List getPlugins()

getPomProperties

public Map getPomProperties()

Returns: the content of the properties tag into the pom.

getRelocation

public ModuleRevisionId getRelocation()

getVersion

public String getVersion()

hasParent

public boolean hasParent()

setProperty

public void setProperty(String prop, String val)
Add a property if not yet set and value is not null. This garantee that property keep the first value that is put on it and that the properties are never null.