public class MavenProfileContainer extends Object
maven profiles.| Constructor and Description |
|---|
MavenProfileContainer(BuildItemResolver buildItemResolver)
Create an instance with the
BuildItemResolver to use. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
has(String id)
Specify if this container has a profile with the specified
id. |
MavenProfile |
id(String id)
Return the profile with the specified
id. |
Stream<String> |
ids()
Return a
Stream of registered profile identifiers. |
boolean |
isEmpty()
Specify if this container is empty.
|
boolean |
remove(String id)
Remove the profile with the specified
id. |
Stream<MavenProfile> |
values()
Returns a
Stream of registered MavenProfiles. |
public MavenProfileContainer(BuildItemResolver buildItemResolver)
BuildItemResolver to use.buildItemResolver - the build item resolver to usepublic boolean isEmpty()
true if no MavenProfile is addedpublic boolean has(String id)
id.id - the id of the profiletrue if a profile with the specified id existspublic Stream<String> ids()
Stream of registered profile identifiers.public Stream<MavenProfile> values()
Stream of registered MavenProfiles.MavenProfilespublic MavenProfile id(String id)
id. If no such profile exists a new
profile is created.id - the id of the profileMavenProfile for that idpublic boolean remove(String id)
id.id - the id of the profiletrue if such a profile was registered, false otherwiseCopyright © 2021 Pivotal Software, Inc.. All rights reserved.