org.apache.maven.model
Class Profile

java.lang.Object
  extended by org.apache.maven.model.ModelBase
      extended by org.apache.maven.model.Profile
All Implemented Interfaces:
Serializable

public class Profile
extends ModelBase
implements Serializable

Modifications to the build process which is activated based on environmental parameters or command line arguments.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Profile()
           
 
Method Summary
 Activation getActivation()
          Get the conditional logic which will automatically trigger the inclusion of this profile.
 BuildBase getBuild()
          Get information required to build the project.
 String getId()
          Get the identifier of this build profile.
 String getModelEncoding()
           
 String getSource()
           
 void setActivation(Activation activation)
          Set the conditional logic which will automatically trigger the inclusion of this profile.
 void setBuild(BuildBase build)
          Set information required to build the project.
 void setId(String id)
          Set the identifier of this build profile.
 void setModelEncoding(String modelEncoding)
          Set an encoding used for reading/writing the model.
 void setSource(String source)
           
 String toString()
           
 
Methods inherited from class org.apache.maven.model.ModelBase
addDependency, addModule, addPluginRepository, addProperty, addRepository, getDependencies, getDependencyManagement, getDistributionManagement, getModules, getPluginRepositories, getProperties, getReporting, getReports, getRepositories, removeDependency, removeModule, removePluginRepository, removeRepository, setDependencies, setDependencyManagement, setDistributionManagement, setModules, setPluginRepositories, setProperties, setReporting, setReports, setRepositories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Profile

public Profile()
Method Detail

getActivation

public Activation getActivation()
Get the conditional logic which will automatically trigger the inclusion of this profile.

Returns:
Activation

getBuild

public BuildBase getBuild()
Get information required to build the project.

Returns:
BuildBase

getId

public String getId()
Get the identifier of this build profile. This used both for command line activation, and identifies identical profiles to merge with during inheritance.

Returns:
String

setActivation

public void setActivation(Activation activation)
Set the conditional logic which will automatically trigger the inclusion of this profile.

Parameters:
activation -

setBuild

public void setBuild(BuildBase build)
Set information required to build the project.

Parameters:
build -

setId

public void setId(String id)
Set the identifier of this build profile. This used both for command line activation, and identifies identical profiles to merge with during inheritance.

Parameters:
id -

setSource

public void setSource(String source)

getSource

public String getSource()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

setModelEncoding

public void setModelEncoding(String modelEncoding)
Set an encoding used for reading/writing the model.

Overrides:
setModelEncoding in class ModelBase
Parameters:
modelEncoding - the encoding used when reading/writing the model.

getModelEncoding

public String getModelEncoding()
Overrides:
getModelEncoding in class ModelBase
Returns:
the current encoding used when reading/writing this model.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.