/** * Constructs a {@link Orphanable} being enabled. * * @return an enabled {@link Orphanable} */ public static Orphanable enabled() { return new Orphanable(true); }
/** * Obtains a {@link Executable} of a specified name. * * @param name the name of the {@link Executable} * * @return a {@link Executable} of the specified name */ public static Executable named(String name) { return new Executable(name); }
/** * Obtains a {@link DisplayName} for a specified name. * * @param name the name of the {@link DisplayName} * * @return a {@link DisplayName} for the specified name */ public static DisplayName of(String name) { return new DisplayName(name); }
/** * Constructs a {@link EnvironmentVariable} based on another {@link EnvironmentVariable}. * * @param property the {@link EnvironmentVariable} from which to construct * (copy) the new {@link EnvironmentVariable} */ private EnvironmentVariable(EnvironmentVariable property) { this.name = property.getName(); this.value = property.getValue(); }
/** * Obtains suitable {@link PlatformSeparators} for typical Unix-based platforms. * * @return the {@link PlatformSeparators} for Unix */ public static PlatformSeparators forUnix() { return new PlatformSeparators("/", ":", "\n"); }
/** * Constructs a {@link EnvironmentVariable} with no value. * * @param name the name of the {@link EnvironmentVariable} * * @return a new {@link EnvironmentVariable} */ public static EnvironmentVariable of(String name) { return new EnvironmentVariable(name, ""); }
/** * Obtains a {@link Discriminator} for a specified value. * * @param value the value of the {@link Discriminator} * * @return a {@link Discriminator} for the specified value */ public static Discriminator of(String value) { return new Discriminator(value); }
/** * Constructs a {@link TemporaryDirectory} given a {@link Path}. * * @param location the location of the {@link TemporaryDirectory} * * @return the {@link TemporaryDirectory} */ public static TemporaryDirectory at(Path location) { return new TemporaryDirectory(location); } }
/** * Constructs a {@link ErrorStreamRedirection} being enabled. * * @return an enabled {@link ErrorStreamRedirection} */ public static ErrorStreamRedirection enabled() { return new ErrorStreamRedirection(true); }
/** * Constructs a custom set of {@link EnvironmentVariables}, starting * initially with a cleared environment. * * @return an {@link EnvironmentVariables} */ public static EnvironmentVariables custom() { return new EnvironmentVariables(Source.Custom); }
/** * Constructs an {@link ApplicationConsoleBuilder} for the specified {@link ApplicationConsole}. * * @param console the {@link ApplicationConsole} * * @return a {@link Console} */ public static Console of(ApplicationConsole console) { return new Console(console); }
/** * Create an {@link Arguments} instance with the specified * arguments. * * @param arguments the argument values * * @return an {@link Arguments} instance */ public static Arguments of(Argument... arguments) { return EMPTY.with(arguments); }
/** * Constructs a {@link EnvironmentVariable} based on another {@link EnvironmentVariable}. * * @param property the {@link EnvironmentVariable} from which to construct * (copy) the new {@link EnvironmentVariable} */ private EnvironmentVariable(EnvironmentVariable property) { this.name = property.getName(); this.value = property.getValue(); }
/** * Obtains suitable {@link PlatformSeparators} for the Microsoft Windows Platform. * * @return the {@link PlatformSeparators} for Windows */ public static PlatformSeparators forWindows() { return new PlatformSeparators("\\", ";", "\r\n"); }
/** * Constructs a {@link Orphanable}. * * @param enabled is an {@link Application} orphanable? * * @return a {@link Orphanable} */ public static Orphanable enabled(boolean enabled) { return new Orphanable(enabled); } }
/** * Constructs a {@link EnvironmentVariable} with no value. * * @param name the name of the {@link EnvironmentVariable} * * @return a new {@link EnvironmentVariable} */ public static EnvironmentVariable of(String name) { return new EnvironmentVariable(name, ""); }
/** * Obtains a {@link Discriminator} for a specified value. * * @param value the value of the {@link Discriminator} * * @return a {@link Discriminator} for the specified value */ public static Discriminator of(String value) { return new Discriminator(value); }
/** * Constructs a {@link TemporaryDirectory} given a specified string. * * @param location the location of the {@link TemporaryDirectory} * * @return the {@link TemporaryDirectory} */ public static TemporaryDirectory at(String location) { return new TemporaryDirectory(location); }
/** * Obtains suitable {@link PlatformSeparators} for typical Unix-based platforms. * * @return the {@link PlatformSeparators} for Unix */ public static PlatformSeparators forUnix() { return new PlatformSeparators("/", ":", "\n"); }
/** * Obtains suitable {@link PlatformSeparators} for typical Cygwin-based platforms. * * @return the {@link PlatformSeparators} for Cygwin */ public static PlatformSeparators forCygwin() { return new PlatformSeparators("/", ":", "\n"); } }