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

com.rationaleemotions.pojo.EnvVariable Maven / Gradle / Ivy

Go to download

A simple way of interacting with a remote host for executing commands, scp (upload and download)

The newest version!
package com.rationaleemotions.pojo;

/**
 * This POJO represents the name value pair of an environment variable.
 */
public class EnvVariable {
    private String name;
    private String value;

    public EnvVariable(String name, String value) {
        this.name = name;
        this.value = value;
    }

    /**
     * @return - The name of the environment variable.
     */
    public String getName() {
        return name;
    }

    /**
     * @return - The value of the environment variable.
     */
    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "EnvNameValuePair{name='" + getName() + "\', value='" + getValue() + "\'}";
    }

    public String prettyPrintedForShell(Shells shell) {
        return String.format("%s %s%s%s", shell.envKeyword(),name, shell.envSeparator(), value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy