| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.RuntimeProjectUtil |
A collection of utility methods to navigate and act on JEB projects.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RuntimeProjectUtil() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static boolean |
destroyLiveArtifact(ILiveArtifact liveArtifact)
Destroy a live Artifact and all its children.
| ||||||||||
| static List<IUnit> |
filterUnits(IRuntimeProject prj, IUnitFilter filter)
Find the units in the project that pass a test provided by the user-defined filter object.
| ||||||||||
| static <T extends IUnit> T |
findFirstUnitByType(IRuntimeProject prj, Class<T> c, boolean strict)
Find a units of a project that are of the specified type.
| ||||||||||
| static IRuntimeProject |
findProject(IUnitCreator object)
Retrieve a JEB project object given any unit or artifact belonging to the project.
| ||||||||||
| static List<IUnitContribution> |
findUnitContributions(IRuntimeProject prj, IUnit target)
Retrieve a list of contributions (defined within a given project) for a target unit.
| ||||||||||
| static <T extends IUnit> List<T> |
findUnits(IRuntimeProject prj, Class<T> c)
Find all units of a project that are of the specified type.
| ||||||||||
| static <T extends IUnit> List<T> |
findUnitsByType(IRuntimeProject prj, Class<T> c, boolean strict)
Find all units of a project that are of the specified type.
| ||||||||||
| static List<IUnit> |
getAllUnits(IRuntimeProject prj)
Retrieve a list of all units in the provided project.
| ||||||||||
| static boolean |
hasNotification(IRuntimeProject prj)
Determine if a project has at least one unit with at least one notification.
| ||||||||||
| static boolean |
hasNotification(IRuntimeProject prj, int minLevel)
Determine if a project has at least one unit with at least one notification whose level is
greater than or equal than the requested one.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Destroy a live Artifact and all its children.
IUnit children may have been deleted)
Find the units in the project that pass a test provided by the user-defined filter object.
| prj | a project |
|---|---|
| filter | a filter, null means no filter (ie, all units will be returned) |
Find a units of a project that are of the specified type.
| prj | a project |
|---|---|
| c | a type of unit, or null to indicate all units |
| strict | if true, only units of class `c` will be returned; else, units of type `c` or any type derived from `c` will be returned |
Retrieve a JEB project object given any unit or artifact belonging to the project.
| object | a unit or an artifact |
|---|
Retrieve a list of contributions (defined within a given project) for a target unit.
| prj | a project |
|---|---|
| target | the target unit |
Find all units of a project that are of the specified type.
Same as findUnitsByType(prj, c,
false).
| prj | JEB project |
|---|---|
| c | unit type |
Find all units of a project that are of the specified type.
| prj | a project |
|---|---|
| c | a type of unit, or null to indicate all units |
| strict | if true, only units of class `c` will be returned; else, units of type `c` or any type derived from `c` will be returned |
Retrieve a list of all units in the provided project.
Determine if a project has at least one unit with at least one notification.
Determine if a project has at least one unit with at least one notification whose level is greater than or equal than the requested one.