@Experimental @Generated @ThreadSafe @Immutable public class Profile extends ModelBase implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
Profile.Builder
Builder class used to create Profile instances.
|
Modifier and Type | Field and Description |
---|---|
static String |
SOURCE_POM |
static String |
SOURCE_SETTINGS |
Modifier and Type | Method and Description |
---|---|
Activation |
getActivation()
The conditional logic which will automatically trigger the inclusion of this
profile.
|
BuildBase |
getBuild()
Information required to build the project.
|
String |
getId()
The identifier of this build profile.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getSource() |
static Profile.Builder |
newBuilder()
Creates a new
Profile builder instance. |
static Profile.Builder |
newBuilder(boolean withDefaults)
Creates a new
Profile builder instance using default values or not. |
static Profile.Builder |
newBuilder(Profile from)
Creates a new
Profile builder instance using the specified object as a basis. |
static Profile.Builder |
newBuilder(Profile from,
boolean forceCopy)
Creates a new
Profile builder instance using the specified object as a basis. |
static Profile |
newInstance()
Creates a new
Profile instance. |
static Profile |
newInstance(boolean withDefaults)
Creates a new
Profile instance using default values or not. |
void |
setSource(String source) |
String |
toString() |
Profile.Builder |
with()
Creates a new builder with this object as the basis.
|
Profile |
withActivation(Activation activation)
Creates a new
Profile instance using the specified activation. |
Profile |
withBuild(BuildBase build)
Creates a new
Profile instance using the specified build. |
Profile |
withDependencies(Collection<Dependency> dependencies)
Creates a new
Profile instance using the specified dependencies. |
Profile |
withDependencyManagement(DependencyManagement dependencyManagement)
Creates a new
Profile instance using the specified dependencyManagement. |
Profile |
withDistributionManagement(DistributionManagement distributionManagement)
Creates a new
Profile instance using the specified distributionManagement. |
Profile |
withId(String id)
Creates a new
Profile instance using the specified id. |
Profile |
withModules(Collection<String> modules)
Creates a new
Profile instance using the specified modules. |
Profile |
withPluginRepositories(Collection<Repository> pluginRepositories)
Creates a new
Profile instance using the specified pluginRepositories. |
Profile |
withProperties(Map<String,String> properties)
Creates a new
Profile instance using the specified properties. |
Profile |
withReporting(Reporting reporting)
Creates a new
Profile instance using the specified reporting. |
Profile |
withRepositories(Collection<Repository> repositories)
Creates a new
Profile instance using the specified repositories. |
getDependencies, getDependencyManagement, getDistributionManagement, getModules, getPluginRepositories, getProperties, getReporting, getRepositories, newBuilder, newBuilder
public static final String SOURCE_POM
public static final String SOURCE_SETTINGS
public String getId()
String
public Activation getActivation()
Activation
public BuildBase getBuild()
BuildBase
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
getLocation
in class ModelBase
@Nonnull public Profile.Builder with()
@Nonnull public Profile withModules(Collection<String> modules)
Profile
instance using the specified modules.withModules
in class ModelBase
modules
- the new Collection<String>
to useProfile
with the specified modules@Nonnull public Profile withDistributionManagement(DistributionManagement distributionManagement)
Profile
instance using the specified distributionManagement.withDistributionManagement
in class ModelBase
distributionManagement
- the new DistributionManagement
to useProfile
with the specified distributionManagement@Nonnull public Profile withProperties(Map<String,String> properties)
Profile
instance using the specified properties.withProperties
in class ModelBase
properties
- the new Map<String, String>
to useProfile
with the specified properties@Nonnull public Profile withDependencyManagement(DependencyManagement dependencyManagement)
Profile
instance using the specified dependencyManagement.withDependencyManagement
in class ModelBase
dependencyManagement
- the new DependencyManagement
to useProfile
with the specified dependencyManagement@Nonnull public Profile withDependencies(Collection<Dependency> dependencies)
Profile
instance using the specified dependencies.withDependencies
in class ModelBase
dependencies
- the new Collection<Dependency>
to useProfile
with the specified dependencies@Nonnull public Profile withRepositories(Collection<Repository> repositories)
Profile
instance using the specified repositories.withRepositories
in class ModelBase
repositories
- the new Collection<Repository>
to useProfile
with the specified repositories@Nonnull public Profile withPluginRepositories(Collection<Repository> pluginRepositories)
Profile
instance using the specified pluginRepositories.withPluginRepositories
in class ModelBase
pluginRepositories
- the new Collection<Repository>
to useProfile
with the specified pluginRepositories@Nonnull public Profile withReporting(Reporting reporting)
Profile
instance using the specified reporting.withReporting
in class ModelBase
reporting
- the new Reporting
to useProfile
with the specified reporting@Nonnull public Profile withId(String id)
Profile
instance using the specified id.id
- the new String
to useProfile
with the specified id@Nonnull public Profile withActivation(Activation activation)
Profile
instance using the specified activation.activation
- the new Activation
to useProfile
with the specified activation@Nonnull public Profile withBuild(BuildBase build)
Profile
instance using the specified build.build
- the new BuildBase
to useProfile
with the specified build@Nonnull public static Profile newInstance()
Profile
instance.
Equivalent to newInstance( true )
.Profile
newInstance(boolean)
@Nonnull public static Profile newInstance(boolean withDefaults)
Profile
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedProfile
@Nonnull public static Profile.Builder newBuilder()
Profile
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Profile.Builder newBuilder(boolean withDefaults)
Profile
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Profile.Builder newBuilder(Profile from)
Profile
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Profile
instance to use as a basisBuilder
@Nonnull public static Profile.Builder newBuilder(Profile from, boolean forceCopy)
Profile
builder instance using the specified object as a basis.from
- the Profile
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
public void setSource(String source)
public String getSource()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.