Enum Class EnvironmentVariable

java.lang.Object
java.lang.Enum<EnvironmentVariable>
org.refcodes.data.EnvironmentVariable
All Implemented Interfaces:
Serializable, Comparable<EnvironmentVariable>, Constable, 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.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor

    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>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor

    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 Summary

    Enum Constants
    Enum Constant
    Description
    The virtual and the physical console width height and environment variable.
    The environment variable (on windows) holding the computer's name.
    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.
    ConEmu's environment variable regarding ANSI support.
    Stands for the lines per column to be taken by REFCODES.ORG artifacts.
    The console's line-break property.
    Stands for the chars per row to be taken by REFCODES.ORG artifacts.
    Environment variable "HOST_SEED" for the Host-Seed for host-related IDs.
    The environment variable (on windows) holding the computer's name.
    HTTP-Proxy setting in URL notation ("http://my.company.org:3128")
    HTTPS-Proxy setting in URL notation ("http://my.company.org:3128")
    Stands for the chosen layout for the REFCODES.ORG logger artifacts.
    Stands for the chosen style for the REFCODES.ORG logger artifacts.
    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.
    Processor architecture on some systems (e.g.
    Processor architecture on some systems (e.g.
    Environment variable holding the current session's terminal.
    The console width environment variable on *ix like shells.
    Environment variable holding the current session's terminal encoding.
    The console height environment variable.
    Environment variable holding the user's current working directory path.
    Environment variable holding the user's home folder path.
    Environment variable holding the user's current working directory path.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.refcodes.mixin.ValueAccessor

    getValueOr

    Methods inherited from interface org.refcodes.mixin.ValueAccessor.ValueProperty

    letValue
  • Enum Constant Details

    • ANSICON

      public static final EnvironmentVariable ANSICON
      The virtual and the physical console width height and environment variable. E.g. ANSICON=80x19999 (80x25)
    • CONSOLE_CONEMU_ANSI

      public static final EnvironmentVariable CONSOLE_CONEMU_ANSI
      ConEmu's environment variable regarding ANSI support.
    • TERMINAL_LINES

      public static final EnvironmentVariable TERMINAL_LINES
      The console height environment variable.
    • TERMINAL_COLUMNS

      public static final EnvironmentVariable TERMINAL_COLUMNS
      The console width environment variable on *ix like shells.
    • CONSOLE_WIDTH

      public static final EnvironmentVariable CONSOLE_WIDTH
      Stands for the chars per row to be taken by REFCODES.ORG artifacts.
    • CONSOLE_HEIGHT

      public static final EnvironmentVariable CONSOLE_HEIGHT
      Stands for the lines per column to be taken by REFCODES.ORG artifacts.
    • CONSOLE_LINE_BREAK

      public static final EnvironmentVariable CONSOLE_LINE_BREAK
      The console's line-break property. Used to override any default line breaks for the REFCODES-ORG artifacts.
    • CONSOLE_ANSI

      public static final EnvironmentVariable 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.
    • LOGGER_LAYOUT

      public static final EnvironmentVariable LOGGER_LAYOUT
      Stands for the chosen layout for the REFCODES.ORG logger artifacts.
    • LOGGER_STYLE

      public static final EnvironmentVariable LOGGER_STYLE
      Stands for the chosen style for the REFCODES.ORG logger artifacts.
    • COMPUTERNAME

      public static final EnvironmentVariable COMPUTERNAME
      The environment variable (on windows) holding the computer's name.
    • HOSTNAME

      public static final EnvironmentVariable HOSTNAME
      The environment variable (on windows) holding the computer's name.
    • USER_HOME

      public static final EnvironmentVariable USER_HOME
      Environment variable holding the user's home folder path.
    • USER_DIR

      public static final EnvironmentVariable USER_DIR
      Environment variable holding the user's current working directory path.
    • USER_NAME

      public static final EnvironmentVariable USER_NAME
      Environment variable holding the user's current working directory path.
    • TERM

      public static final EnvironmentVariable TERM
      Environment variable holding the current session's terminal.
    • TERMINAL_ENCODING

      public static final EnvironmentVariable TERMINAL_ENCODING
      Environment variable holding the current session's terminal encoding.
    • NUMBER_OF_PROCESSORS

      public static final EnvironmentVariable NUMBER_OF_PROCESSORS
      Number of processors.
    • HOST_SEED

      public static final EnvironmentVariable HOST_SEED
      Environment variable "HOST_SEED" for the Host-Seed for host-related IDs.
    • HTTP_PROXY

      public static final EnvironmentVariable HTTP_PROXY
      HTTP-Proxy setting in URL notation ("http://my.company.org:3128")
    • HTTPS_PROXY

      public static final EnvironmentVariable HTTPS_PROXY
      HTTPS-Proxy setting in URL notation ("http://my.company.org:3128")
    • NO_PROXY

      public static final EnvironmentVariable 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*,...")
    • PROCESSOR_ARCHITECTURE

      public static final EnvironmentVariable PROCESSOR_ARCHITECTURE
      Processor architecture on some systems (e.g. "AMD64").
    • PROCESSOR_ARCHITEW6432

      public static final EnvironmentVariable PROCESSOR_ARCHITEW6432
      Processor architecture on some systems (e.g. "AMD64").
  • Method Details

    • values

      public static EnvironmentVariable[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EnvironmentVariable valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getKey

      public String getKey()
      Specified by:
      getKey in interface org.refcodes.mixin.KeyAccessor<String>
    • getValue

      public String getValue()
      Retrieves the value, first the upper-case variant of the environment variable is tried out. If not set or empty, then the lower-case variant is used.
      Specified by:
      getValue in interface org.refcodes.mixin.ValueAccessor<String>
      Returns:
      The value of the environment variable.
    • setValue

      public void setValue(String aValue)
      Sets the value, first the upper-case variant of the environment variable is tried out. If not set or empty, then the lower-case variant is tried.
      Specified by:
      setValue in interface org.refcodes.mixin.ValueAccessor.ValueMutator<String>
      Parameters:
      aValue - the new value