public class EnvironmentProperties extends PropertiesImpl implements Properties
Properties
type overwriting methods in order to
access the operating system's environment variables as of env
on
Linux or Unix shells or set
on Windows machines (e.g."set
JAVA_HOME=/opt/java9").
The keys are transformed to an environment variable by removing a prefixed
"/" path delimiter (as of PropertiesImpl.getDelimiter()
and converting all other
path delimiters "/" to the environment variable's (de facto standard)
separator "_". If accessing failed, then the upper case version of the so
transformed key is probed.
Accessing an environment variable "JAVA_HOME" would be done with the path
"/java/home".Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.structure.PathMap.MutablePathMap<T>, org.refcodes.structure.PathMap.PathMapBuilder<T>
org.refcodes.structure.Dictionary.MutableDictionary<K,V>
org.refcodes.structure.Keys.MutableKeys<K,V>, org.refcodes.structure.Keys.MutableValues<K,V>
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T>
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
_properties
DEFAULT_COMMENT
Constructor and Description |
---|
EnvironmentProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object aKey)
The key is transformed to an environment variable by removing a prefixed
"/" path delimiter (as of
PropertiesImpl.getDelimiter() and converting all
other path delimiters "/" to the environment variable's (de facto
standard) separator "_". |
String |
get(Object aKey)
The key is transformed to an environment variable by removing a prefixed
"/" path delimiter (as of
PropertiesImpl.getDelimiter() and converting all
other path delimiters "/" to the environment variable's (de facto
standard) separator "_". |
Set<String> |
keySet()
The keys are transformed to a path by prefixing a "/" path delimiter (as
of
PropertiesImpl.getDelimiter() and converting all other environment
variable's (de facto standard) separators "_" to the path delimiter "/". |
int |
size() |
Collection<String> |
values() |
getDelimiter, getType, isEmpty, retrieveFrom, retrieveTo, toDataStructure
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsValue, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPath
toInstance, toInstance, toType, toType
directories, directories, entries, entries, fromExternalKey, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toRootPath
containsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
public String get(Object aKey)
PropertiesImpl.getDelimiter()
and converting all
other path delimiters "/" to the environment variable's (de facto
standard) separator "_". If accessing failed, then the upper case version
of the so transformed key is probed.
get
in interface org.refcodes.structure.Keys<String,String>
get
in class PropertiesImpl
public boolean containsKey(Object aKey)
PropertiesImpl.getDelimiter()
and converting all
other path delimiters "/" to the environment variable's (de facto
standard) separator "_". If accessing failed, then the upper case version
of the so transformed key is probed.
containsKey
in interface org.refcodes.structure.Keys<String,String>
containsKey
in class PropertiesImpl
public Set<String> keySet()
PropertiesImpl.getDelimiter()
and converting all other environment
variable's (de facto standard) separators "_" to the path delimiter "/".
keySet
in interface org.refcodes.structure.Keys<String,String>
keySet
in class PropertiesImpl
public Collection<String> values()
values
in interface org.refcodes.structure.Keys<String,String>
values
in class PropertiesImpl
public int size()
size
in interface org.refcodes.structure.Containable
size
in class PropertiesImpl
Copyright © 2018. All rights reserved.