@Immutable public class ProjectModel extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectModel.Builder
The builder of
ProjectModel instances. |
| Modifier and Type | Method and Description |
|---|---|
static ProjectModel.Builder |
builder()
Instantiates a
ProjectModel.Builder for creating ProjectModel instances. |
BuildCommands |
getBuild()
Returns the build commands.
|
List<String> |
getBuildFor(ExecutionEnvironment environment)
Gets the matching build command.
|
List<String> |
getBuildFor(String... labels)
Helper version of
getBuildFor(ExecutionEnvironment). |
List<ExecutionEnvironment> |
getEnvironments()
Returns the (possibly empty) list of build environments.
|
TaskCommands |
getTask(String taskId)
Returns the task command for the specified task id.
|
Set<String> |
getTaskIds()
Returns the task ids of all the tasks defined in the model.
|
@NonNull public static ProjectModel.Builder builder()
ProjectModel.Builder for creating ProjectModel instances.ProjectModel.Builder for creating ProjectModel instances.@CheckForNull public List<String> getBuildFor(String... labels)
getBuildFor(ExecutionEnvironment).labels - the labels.null if no build command matches the supplied labels.@CheckForNull public List<String> getBuildFor(@CheckForNull ExecutionEnvironment environment)
environment - the environment.null if no build command matches the supplied environment.@NonNull public BuildCommands getBuild()
@NonNull public Set<String> getTaskIds()
@CheckForNull public TaskCommands getTask(@CheckForNull String taskId)
taskId - the task id.null.@NonNull public List<ExecutionEnvironment> getEnvironments()
Copyright © 2004-2014. All Rights Reserved.