All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.uniclog.execution.ExecutionMojo Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package io.github.uniclog.execution;

import org.apache.maven.plugins.annotations.Parameter;

public class ExecutionMojo {
    @Parameter(required = true)
    private String token;
    @Parameter
    private String key;
    @Parameter
    private String value;
    @Parameter
    private String valueFile;
    @Parameter
    private Integer arrayIndex;
    @Parameter
    private String type;
    @Parameter
    private String validation;
    @Parameter(defaultValue = "false")
    private boolean skipIfNotFoundElement;

    public String getToken() {
        return token.replaceAll("(?<=[\\r\\n])\\s+", "")
                .replaceAll("[\\r\\n]", "");
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public String getValueFile() {
        return valueFile;
    }

    public Integer getArrayIndex() {
        return arrayIndex;
    }

    public ExecutionType getType() {
        return ExecutionType.getType(type);
    }

    public String getValidation() {
        return validation;
    }

    public boolean isSkipIfNotFoundElement() {
        return skipIfNotFoundElement;
    }

    @Override
    public String toString() {
        return "ExecutionMojo{" +
                "token='" + getToken() + '\'' +
                ", value='" + getValue() + '\'' +
                ", valueFile='" + getValueFile() + '\'' +
                ", key='" + getKey() + '\'' +
                ", type='" + getType() + '\'' +
                ", validation='" + getValidation() + '\'' +
                ", arrayIndex='" + getArrayIndex() + '\'' +
                ", skipIfNotFoundElement=" + isSkipIfNotFoundElement() +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy