Class ProfilesRoot

java.lang.Object
org.apache.maven.profiles.ProfilesRoot
All Implemented Interfaces:
Serializable

public class ProfilesRoot extends Object implements Serializable
Root element of the profiles.xml file.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • ProfilesRoot

      public ProfilesRoot()
  • Method Details

    • addActiveProfile

      public void addActiveProfile(String string)
      Method addActiveProfile.
      Parameters:
      string - a string object.
    • addProfile

      public void addProfile(Profile profile)
      Method addProfile.
      Parameters:
      profile - a profile object.
    • getActiveProfiles

      public List<String> getActiveProfiles()
      Method getActiveProfiles.
      Returns:
      List
    • getModelEncoding

      public String getModelEncoding()
      Get the modelEncoding field.
      Returns:
      String
    • getProfiles

      public List<Profile> getProfiles()
      Method getProfiles.
      Returns:
      List
    • removeActiveProfile

      public void removeActiveProfile(String string)
      Method removeActiveProfile.
      Parameters:
      string - a string object.
    • removeProfile

      public void removeProfile(Profile profile)
      Method removeProfile.
      Parameters:
      profile - a profile object.
    • setActiveProfiles

      public void setActiveProfiles(List<String> activeProfiles)
      Set list of manually-activated build profiles, specified in the order in which they should be applied.
      Parameters:
      activeProfiles - a activeProfiles object.
    • setModelEncoding

      public void setModelEncoding(String modelEncoding)
      Set the modelEncoding field.
      Parameters:
      modelEncoding - a modelEncoding object.
    • setProfiles

      public void setProfiles(List<Profile> profiles)
      Set configuration of build profiles for adjusting the build according to environmental parameters.
      Parameters:
      profiles - a profiles object.