Class PomEditor.Profiles
java.lang.Object
eu.maveniverse.domtrip.maven.PomEditor.Profiles
- Enclosing class:
PomEditor
Helper for inspecting Maven profiles within a POM.
Provides methods to find and check the existence of <profile> elements
by their <id>. The returned elements can be passed to
PomEditor.Dependencies.forProfile(Element) for profile-scoped dependency operations.
- Since:
- 1.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.maveniverse.domtrip.ElementfindProfile(String id) Finds a profile element by its<id>.booleanhasProfile(String id) Checks whether a profile with the given<id>exists.
-
Constructor Details
-
Profiles
public Profiles()
-
-
Method Details
-
findProfile
Finds a profile element by its<id>.- Parameters:
id- the profile id to look for- Returns:
- the
<profile>element, ornullif not found - Since:
- 1.1.0
-
hasProfile
Checks whether a profile with the given<id>exists.- Parameters:
id- the profile id to check- Returns:
trueif a matching profile exists,falseotherwise- Since:
- 1.1.0
-