Package eu.maveniverse.domtrip.maven
Class PomEditor.Profiles
- java.lang.Object
-
- eu.maveniverse.domtrip.maven.PomEditor.Profiles
-
- Enclosing class:
- PomEditor
public class PomEditor.Profiles extends java.lang.ObjectHelper 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 toPomEditor.Dependencies.forProfile(Element)for profile-scoped dependency operations.- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description Profiles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description eu.maveniverse.domtrip.ElementfindProfile(java.lang.String id)Finds a profile element by its<id>.booleanhasProfile(java.lang.String id)Checks whether a profile with the given<id>exists.
-
-
-
Method Detail
-
findProfile
public eu.maveniverse.domtrip.Element findProfile(java.lang.String id)
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
public boolean hasProfile(java.lang.String id)
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
-
-