Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a6443126e5505a6e8e8378ca2c6c890aa14396d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*************************************************************************************
 * 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 v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * 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;
	}
}

Back to the top