Class ProblemGroup
java.lang.Object
org.gradle.api.problems.ProblemGroup
- Direct Known Subclasses:
GradleProblemGroup, GradleSecondLevelProblemGroup, RootProblemGroup, SecondLevelProblemGroup, ThirdLevelProblemGroup, UndefinedProblemGroup
Represents a group of problems.
Groups are organized in hierarchy where the parent group should represent the more broad problem group.
Two problem groups are considered equal if their getName() and their parents are equal.
Gradle provides a predefined hierarchy of groups, see ProblemGroups.
- Since:
- 8.8
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProblemGroupCreates a new root problem group i.e.static ProblemGroupcreate(String name, String displayName, @Nullable ProblemGroup parent) Creates a new problem group.abstract StringReturns a human-readable label describing the group.abstract StringgetName()The name of the problem group.abstract @Nullable ProblemGroupReturns the parent group ornullfor root groups.
-
Constructor Details
-
ProblemGroup
protected ProblemGroup()Constructor.- Since:
- 8.13
-
-
Method Details
-
getName
-
getDisplayName
Returns a human-readable label describing the group.- Since:
- 8.8
-
getParent
Returns the parent group ornullfor root groups.- Since:
- 8.8
-
create
Creates a new root problem group i.e. a group with no parent.- Parameters:
name- the name of the group. Cannot be blank (i.e.,null, empty string, or only whitespaces).displayName- the user-friendly display name of the group. Cannot be blank (i.e.,null, empty string, or only whitespaces).- Returns:
- the new group
- Since:
- 8.13
-
create
Creates a new problem group.- Parameters:
name- the name of the group. Cannot be blank (i.e.,null, empty string, or only whitespaces).displayName- the user-friendly display name of the group. Cannot be blank (i.e.,null, empty string, or only whitespaces).parent- the parent group. May benullfor root groups.- Returns:
- the new group
- Since:
- 8.13
-