org.eclipse.dirigible.components.project.ProjectAction Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors SPDX-License-Identifier: EPL-2.0
*/
package org.eclipse.dirigible.components.project;
import java.util.List;
import org.eclipse.dirigible.components.command.CommandDescriptor;
/**
* The Class ProjectAction.
*/
public class ProjectAction {
/** The name. */
private final String name;
/** The commands. */
private final List commands;
/** The publish. */
private final boolean publish;
/** The publish. */
private final boolean registry;
/**
* Instantiates a new project action.
*
* @param name the name
* @param commands the commands
* @param publish the publish
* @param afterPublish the after publish
*/
public ProjectAction(String name, List commands, boolean publish, boolean afterPublish) {
this.name = name;
this.commands = commands;
this.publish = publish;
this.registry = afterPublish;
}
/**
* Gets the name.
*
* @return the name
*/
public String getName() {
return name;
}
/**
* Gets the commands.
*
* @return the commands
*/
public List getCommands() {
return commands;
}
/**
* Checks if is publish.
*
* @return true, if is publish
*/
public boolean isPublish() {
return publish;
}
/**
* Checks if is registry.
*
* @return true, if is registry
*/
public boolean isRegistry() {
return registry;
}
/**
* To string.
*
* @return the string
*/
@Override
public String toString() {
return "ProjectAction{" + "name='" + name + '\'' + ", commands=" + commands + ", publish=" + publish + ", registry=" + registry
+ '}';
}
}