Author: sisbell Date: Wed Apr 1 23:10:00 2009 New Revision: 761106 URL: http://svn.apache.org/viewvc?rev=761106&view=rev Log: Added file.
Added: maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/ProfileContextInfo.java Added: maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/ProfileContextInfo.java URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/ProfileContextInfo.java?rev=761106&view=auto ============================================================================== --- maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/ProfileContextInfo.java (added) +++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/ProfileContextInfo.java Wed Apr 1 23:10:00 2009 @@ -0,0 +1,35 @@ +package org.apache.maven.profiles; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.apache.maven.shared.model.InterpolatorProperty; + +public class ProfileContextInfo +{ + private List<InterpolatorProperty> interpolatorProperties; + + private Collection<String> activeProfileIds; + + private Collection<String> inactiveProfileIds; + + public ProfileContextInfo(List<InterpolatorProperty> interpolatorProperties, Collection<String> activeProfileIds, Collection<String> inactiveProfileIds) + { + this.interpolatorProperties = (interpolatorProperties != null) ? interpolatorProperties : new ArrayList<InterpolatorProperty>(); + this.activeProfileIds = (activeProfileIds != null) ? activeProfileIds : new ArrayList<String>(); + this.inactiveProfileIds = (inactiveProfileIds != null) ? inactiveProfileIds : new ArrayList<String>(); + } + + public List<InterpolatorProperty> getInterpolatorProperties() { + return interpolatorProperties; + } + + public Collection<String> getActiveProfileIds() { + return activeProfileIds; + } + + public Collection<String> getInactiveProfileIds() { + return inactiveProfileIds; + } +}