public class PomReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
PomReader.PomDependencyData |
class |
PomReader.PomDependencyMgtElement |
class |
PomReader.PomPluginElement |
class |
PomReader.PomProfileElement |
Constructor and Description |
---|
PomReader(java.net.URL descriptorURL,
Resource res) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArtifactId() |
java.util.List<PomReader.PomDependencyData> |
getDependencies() |
java.util.List<PomDependencyMgt> |
getDependencyMgt() |
java.lang.String |
getDescription() |
java.lang.String |
getGroupId() |
java.lang.String |
getHomePage() |
License[] |
getLicenses() |
java.lang.String |
getPackaging() |
java.lang.String |
getParentArtifactId() |
java.lang.String |
getParentGroupId() |
java.lang.String |
getParentVersion() |
java.util.List<PomReader.PomPluginElement> |
getPlugins() |
java.util.Map<java.lang.String,java.lang.String> |
getPomProperties() |
java.util.List<PomReader.PomProfileElement> |
getProfiles() |
ModuleRevisionId |
getRelocation() |
java.lang.String |
getVersion() |
boolean |
hasParent() |
void |
setProperty(java.lang.String prop,
java.lang.String val)
Add a property if not yet set and value is not null.
|
public PomReader(java.net.URL descriptorURL, Resource res) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public boolean hasParent()
public void setProperty(java.lang.String prop, java.lang.String val)
prop
- Stringval
- Stringpublic java.lang.String getGroupId()
public java.lang.String getParentGroupId()
public java.lang.String getArtifactId()
public java.lang.String getParentArtifactId()
public java.lang.String getVersion()
public java.lang.String getParentVersion()
public java.lang.String getPackaging()
public java.lang.String getHomePage()
public java.lang.String getDescription()
public License[] getLicenses()
public ModuleRevisionId getRelocation()
public java.util.List<PomReader.PomDependencyData> getDependencies()
public java.util.List<PomDependencyMgt> getDependencyMgt()
public java.util.List<PomReader.PomProfileElement> getProfiles()
public java.util.List<PomReader.PomPluginElement> getPlugins()
public java.util.Map<java.lang.String,java.lang.String> getPomProperties()
Copyright ©2007-2022 The Apache Software Foundation, Licensed under Apache License, Version 2.0.