Serializable
, Comparable<String>
, org.refcodes.mixin.KeyAccessor<String>
, org.refcodes.mixin.ValueAccessor<String>
, org.refcodes.mixin.ValueAccessor.ValueMutator<String>
, org.refcodes.mixin.ValueAccessor.ValueProperty<String>
public enum EnvironmentVariable extends Enum<EnvironmentVariable> implements org.refcodes.mixin.KeyAccessor<String>, org.refcodes.mixin.ValueAccessor.ValueProperty<String>
EnvironmentVariable
for retrieving some common environment variables
with ease.org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object>
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object>
Enum Constant | Description |
---|---|
ANSICON |
The virtual and the physical console width height and environment
variable.
|
COMPUTERNAME |
The environment variable (on windows) holding the computer's name.
|
CONSOLE_ANSI |
Set to "true" or "false", forces ANSI to be used / not used by
REFCODES.ORG artifacts, no matter what capabilities were detected for the
hosting terminal.
|
CONSOLE_CONEMU_ANSI |
ConEmu's environment variable regarding ANSI support.
|
CONSOLE_HEIGHT |
Stands for the lines per column to be taken by REFCODES.ORG artifacts.
|
CONSOLE_LINE_BREAK |
The console's line-break property.
|
CONSOLE_WIDTH |
Stands for the chars per row to be taken by REFCODES.ORG artifacts.
|
HOST_SEED |
Environment variable "HOST_SEED" for the Host-Seed for host-related IDs.
|
HOSTNAME |
The environment variable (on windows) holding the computer's name.
|
HTTP_PROXY |
HTTP-Proxy setting in URL notation ("http://my.company.org:3128")
|
HTTPS_PROXY |
HTTPS-Proxy setting in URL notation ("http://my.company.org:3128")
|
LOGGER_LAYOUT |
Stands for the chosen layout for the REFCODES.ORG logger artifacts.
|
LOGGER_STYLE |
Stands for the chosen style for the REFCODES.ORG logger artifacts.
|
NO_PROXY |
No-Proxy settings for the
HTTP_PROXY (HTTPS_PROXY )
settings in a comma separated list
("localhost,127.0.0.0/8,127.0.1.1,127.0.1.1*,...") |
NUMBER_OF_PROCESSORS |
Number of processors.
|
PROCESSOR_ARCHITECTURE |
Processor architecture on some systems (e.g.
|
PROCESSOR_ARCHITEW6432 |
Processor architecture on some systems (e.g.
|
TERM |
Environment variable holding the current session's terminal.
|
TERMINAL_COLUMNS |
The console width environment variable on *ix like shells.
|
TERMINAL_ENCODING |
Environment variable holding the current session's terminal encoding.
|
TERMINAL_LINES |
The console height environment variable.
|
USER_DIR |
Environment variable holding the user's current working directory path.
|
USER_HOME |
Environment variable holding the user's home folder path.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getKey() |
|
String |
getValue() |
Retrieves the value, first the upper-case variant of the environment
variable is tried out.
|
void |
setValue(String aValue) |
Sets the value, first the upper-case variant of the environment variable
is tried out.
|
static EnvironmentVariable |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static EnvironmentVariable[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnvironmentVariable ANSICON
public static final EnvironmentVariable CONSOLE_CONEMU_ANSI
public static final EnvironmentVariable TERMINAL_LINES
public static final EnvironmentVariable TERMINAL_COLUMNS
public static final EnvironmentVariable CONSOLE_WIDTH
public static final EnvironmentVariable CONSOLE_HEIGHT
public static final EnvironmentVariable CONSOLE_LINE_BREAK
public static final EnvironmentVariable CONSOLE_ANSI
public static final EnvironmentVariable LOGGER_LAYOUT
public static final EnvironmentVariable LOGGER_STYLE
public static final EnvironmentVariable COMPUTERNAME
public static final EnvironmentVariable HOSTNAME
public static final EnvironmentVariable USER_HOME
public static final EnvironmentVariable USER_DIR
public static final EnvironmentVariable TERM
public static final EnvironmentVariable TERMINAL_ENCODING
public static final EnvironmentVariable NUMBER_OF_PROCESSORS
public static final EnvironmentVariable HOST_SEED
public static final EnvironmentVariable HTTP_PROXY
public static final EnvironmentVariable HTTPS_PROXY
public static final EnvironmentVariable NO_PROXY
HTTP_PROXY
(HTTPS_PROXY
)
settings in a comma separated list
("localhost,127.0.0.0/8,127.0.1.1,127.0.1.1*,...")public static final EnvironmentVariable PROCESSOR_ARCHITECTURE
public static final EnvironmentVariable PROCESSOR_ARCHITEW6432
public static EnvironmentVariable[] values()
for (EnvironmentVariable c : EnvironmentVariable.values()) System.out.println(c);
public static EnvironmentVariable valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getKey()
getKey
in interface org.refcodes.mixin.KeyAccessor<String>
public String getValue()
getValue
in interface org.refcodes.mixin.ValueAccessor<String>
public void setValue(String aValue)
setValue
in interface org.refcodes.mixin.ValueAccessor.ValueMutator<String>
aValue
- the new valueCopyright © 2021. All rights reserved.