public class PomXmlParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
NUTS_OS_ARCH_DEPS_PATTERN |
| Constructor and Description |
|---|
PomXmlParser(net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
appendOrReplaceDependency(PomDependency dependency,
Element dependencyElement,
Element dependenciesElement,
Map<String,String> props,
net.thevpc.nuts.NutsSession session) |
static boolean |
appendOrReplaceRepository(PomRepository repository,
Element repositoryElement,
Element repositoriesElement) |
static Element |
createDependencyElement(Document doc,
PomDependency dep) |
static Element |
createExclusionElement(Document doc,
PomId exclusionId) |
static Element |
createNameTextTag(Document doc,
String name,
String value) |
static Element |
createPluginRepositoryElement(Document doc,
PomRepository repo) |
static Element |
createRepositoryElement(Document doc,
PomRepository repo) |
static Element |
createRepositoryElement(Document doc,
PomRepository repo,
String name) |
static Element |
createRepositoryPolicy(Document doc,
PomRepositoryPolicy repo,
String name) |
Pom |
parse(Document doc,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(Document doc,
PomDomVisitor visitor,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(File file,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(File file,
PomDomVisitor visitor,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(InputStream stream,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(InputStream stream,
PomDomVisitor visitor,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(URI uri,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(URI uri,
PomDomVisitor visitor,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(URL url,
net.thevpc.nuts.NutsSession session) |
Pom |
parse(URL url,
PomDomVisitor visitor,
net.thevpc.nuts.NutsSession session) |
static PomDependency |
parseDependency(Element dependency,
net.thevpc.nuts.runtime.standalone.repository.impl.maven.pom.PomXmlParser.OsAndArch props,
net.thevpc.nuts.NutsSession session) |
static PomProfile |
parseProfile(Element profile,
net.thevpc.nuts.NutsSession session) |
static Map<String,String> |
parseProperties(Element properties) |
static PomRepository |
parseRepository(Element repository) |
static PomRepositoryPolicy |
parseRepositoryPolicy(Element dependency) |
static void |
writeDocument(Document doc,
File result,
net.thevpc.nuts.NutsSession session) |
static void |
writeDocument(Document doc,
OutputStream result,
net.thevpc.nuts.NutsSession session) |
static void |
writeDocument(Document doc,
StreamResult result,
net.thevpc.nuts.NutsSession session) |
static void |
writeDocument(Document doc,
Writer result,
net.thevpc.nuts.NutsSession session) |
public static final Pattern NUTS_OS_ARCH_DEPS_PATTERN
public static PomDependency parseDependency(Element dependency, net.thevpc.nuts.runtime.standalone.repository.impl.maven.pom.PomXmlParser.OsAndArch props, net.thevpc.nuts.NutsSession session)
public static PomRepositoryPolicy parseRepositoryPolicy(Element dependency)
public static PomProfile parseProfile(Element profile, net.thevpc.nuts.NutsSession session)
public static PomRepository parseRepository(Element repository)
public static Element createExclusionElement(Document doc, PomId exclusionId)
public static Element createDependencyElement(Document doc, PomDependency dep)
public static Element createRepositoryElement(Document doc, PomRepository repo)
public static Element createPluginRepositoryElement(Document doc, PomRepository repo)
public static Element createRepositoryPolicy(Document doc, PomRepositoryPolicy repo, String name)
public static Element createRepositoryElement(Document doc, PomRepository repo, String name)
public static void writeDocument(Document doc, File result, net.thevpc.nuts.NutsSession session) throws TransformerException
TransformerExceptionpublic static void writeDocument(Document doc, Writer result, net.thevpc.nuts.NutsSession session) throws TransformerException
TransformerExceptionpublic static void writeDocument(Document doc, OutputStream result, net.thevpc.nuts.NutsSession session) throws TransformerException
TransformerExceptionpublic static void writeDocument(Document doc, StreamResult result, net.thevpc.nuts.NutsSession session) throws TransformerException
TransformerExceptionpublic static boolean appendOrReplaceDependency(PomDependency dependency, Element dependencyElement, Element dependenciesElement, Map<String,String> props, net.thevpc.nuts.NutsSession session)
public static boolean appendOrReplaceRepository(PomRepository repository, Element repositoryElement, Element repositoriesElement)
public Pom parse(URL url, net.thevpc.nuts.NutsSession session) throws IOException, SAXException, ParserConfigurationException
public Pom parse(URL url, PomDomVisitor visitor, net.thevpc.nuts.NutsSession session) throws IOException, SAXException, ParserConfigurationException
public Pom parse(URI uri, net.thevpc.nuts.NutsSession session) throws IOException, SAXException, ParserConfigurationException
public Pom parse(URI uri, PomDomVisitor visitor, net.thevpc.nuts.NutsSession session) throws IOException, SAXException, ParserConfigurationException
public Pom parse(File file, net.thevpc.nuts.NutsSession session) throws IOException, SAXException, ParserConfigurationException
public Pom parse(File file, PomDomVisitor visitor, net.thevpc.nuts.NutsSession session) throws IOException, SAXException, ParserConfigurationException
public Pom parse(InputStream stream, net.thevpc.nuts.NutsSession session) throws IOException, SAXException, ParserConfigurationException
public Pom parse(InputStream stream, PomDomVisitor visitor, net.thevpc.nuts.NutsSession session) throws IOException, SAXException, ParserConfigurationException
public Pom parse(Document doc, PomDomVisitor visitor, net.thevpc.nuts.NutsSession session)
Copyright © 2022 vpc open source initiative. All rights reserved.