Package aQute.bnd.maven.support
Class Pom
- java.lang.Object
-
- aQute.bnd.maven.support.Pom
-
- Direct Known Subclasses:
CachedPom
,ProjectPom
public abstract class Pom extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Pom.Dependency
(package private) static class
Pom.Rover
static class
Pom.Scope
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
artifactId
(package private) static javax.xml.parsers.DocumentBuilderFactory
dbf
(package private) java.util.List<Pom.Dependency>
dependencies
(package private) java.lang.String
description
(package private) java.lang.String
groupId
(package private) java.net.URI
home
(package private) Maven
maven
(package private) java.lang.String
name
(package private) java.io.File
pomFile
(package private) java.lang.String
version
(package private) static javax.xml.xpath.XPathFactory
xpf
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private void
doEntry(java.io.Writer writer, Pom dep)
abstract java.io.File
getArtifact()
java.lang.String
getArtifactId()
java.util.List<Pom.Dependency>
getDependencies()
java.util.Set<Pom>
getDependencies(Pom.Scope scope, java.net.URI... urls)
java.lang.String
getDescription()
java.lang.String
getGroupId()
java.io.File
getLibrary(Pom.Scope action, java.net.URI... repositories)
java.lang.String
getName()
java.io.File
getPomFile()
java.lang.String
getVersion()
(package private) void
parse()
protected void
parse(org.w3c.dom.Document doc, javax.xml.xpath.XPath xp)
protected java.lang.String
replace(java.lang.String in)
private java.lang.String
replace(java.lang.String key, java.lang.String dflt)
java.lang.String
toString()
-
-
-
Field Detail
-
dbf
static javax.xml.parsers.DocumentBuilderFactory dbf
-
xpf
static javax.xml.xpath.XPathFactory xpf
-
maven
final Maven maven
-
home
final java.net.URI home
-
groupId
java.lang.String groupId
-
artifactId
java.lang.String artifactId
-
version
java.lang.String version
-
dependencies
java.util.List<Pom.Dependency> dependencies
-
pomFile
java.io.File pomFile
-
description
java.lang.String description
-
name
java.lang.String name
-
-
Constructor Detail
-
Pom
public Pom(Maven maven, java.io.File pomFile, java.net.URI home) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
-
parse
void parse() throws java.lang.Exception
- Throws:
java.lang.Exception
-
parse
protected void parse(org.w3c.dom.Document doc, javax.xml.xpath.XPath xp) throws javax.xml.xpath.XPathExpressionException, java.lang.Exception
- Throws:
javax.xml.xpath.XPathExpressionException
java.lang.Exception
-
replace
private java.lang.String replace(java.lang.String key, java.lang.String dflt)
-
getArtifactId
public java.lang.String getArtifactId() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getGroupId
public java.lang.String getGroupId() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getVersion
public java.lang.String getVersion() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDependencies
public java.util.List<Pom.Dependency> getDependencies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDependencies
public java.util.Set<Pom> getDependencies(Pom.Scope scope, java.net.URI... urls) throws java.lang.Exception
- Throws:
java.lang.Exception
-
replace
protected java.lang.String replace(java.lang.String in)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getLibrary
public java.io.File getLibrary(Pom.Scope action, java.net.URI... repositories) throws java.lang.Exception
- Throws:
java.lang.Exception
-
doEntry
private void doEntry(java.io.Writer writer, Pom dep) throws java.io.IOException, java.lang.Exception
- Parameters:
writer
-dep
-- Throws:
java.io.IOException
java.lang.Exception
-
getPomFile
public java.io.File getPomFile()
-
getName
public java.lang.String getName()
-
getArtifact
public abstract java.io.File getArtifact() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-