/******************************************************************************* * Copyright (c) 2012-2017 Codenvy, S.A. * 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: * Codenvy, S.A. - initial API and implementation *******************************************************************************/ package org.eclipse.che.maven.server; import org.eclipse.che.maven.data.MavenExplicitProfiles; import org.eclipse.che.maven.data.MavenModel; import java.io.Serializable; /** * Describes an information after applying profiles. * Contains a maven model and a list of applied profiles. */ public class ProfileApplicationResult implements Serializable { private final MavenModel myModel; private final MavenExplicitProfiles myActivatedProfiles; public ProfileApplicationResult(MavenModel model, MavenExplicitProfiles activatedProfiles) { myModel = model; myActivatedProfiles = activatedProfiles; } /** * Returns a maven model which was modified after applying maven profiles. */ public MavenModel getModel() { return myModel; } /** * Returns a list of activated profiles. */ public MavenExplicitProfiles getActivatedProfiles() { return myActivatedProfiles; } }