blob: a62580e88ea3a5403c0d1322e8d7a5c3f4325841 [file] [log] [blame]
/*************************************************************************************
* Copyright (c) 2011-2014 Red Hat, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Fred Bricon / JBoss by Red Hat - Initial implementation.
************************************************************************************/
package org.eclipse.m2e.profiles.ui.internal.dialog;
import org.eclipse.m2e.profiles.core.internal.ProfileState;
/* Model of a Maven Profile Selection
*
* @author Fred Bricon
* @since 1.5.0
*/
public class ProfileSelection {
private String id;
private Boolean autoActive;
private Boolean selected;
private ProfileState activationState;
private String source;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Boolean getAutoActive() {
return autoActive;
}
public void setAutoActive(Boolean autoActive) {
this.autoActive = autoActive;
}
public Boolean getSelected() {
return selected;
}
public void setSelected(Boolean selected) {
this.selected = selected;
}
public ProfileState getActivationState() {
return activationState;
}
public void setActivationState(ProfileState activationState) {
this.activationState = activationState;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String toMavenString() {
String s = id;
if (ProfileState.Disabled == activationState) {
s = "!"+id;
}
return s;
}
}