Properties
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.TypeAccessor<String>
, org.refcodes.structure.CanonicalMap
, org.refcodes.structure.Containable
, org.refcodes.structure.Dictionary<String,String>
, org.refcodes.structure.Keys<String,String>
, org.refcodes.structure.PathMap<String>
, org.refcodes.structure.PropertiesAccessorMixin
public class EnvironmentProperties extends Object 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 Properties.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".org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
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.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>
org.refcodes.structure.Keys.MutableKeys<K extends Object,V extends Object>, org.refcodes.structure.Keys.MutableValues<K extends Object,V extends Object>
org.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>
Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
DEFAULT_COMMENT
Constructor | Description |
---|---|
EnvironmentProperties() |
Modifier and Type | Method | Description |
---|---|---|
Properties |
childrenOf(String aParentPath) |
|
boolean |
containsKey(Object aKey) |
The key is transformed to an environment variable by removing a prefixed
"/" path delimiter (as of
Properties.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
Properties.getDelimiter() and converting all
other path delimiters "/" to the environment variable's (de facto
standard) separator "_". |
boolean |
isEmpty() |
|
Set<String> |
keySet() |
The keys are transformed to a path by prefixing a "/" path delimiter (as
of
Properties.getDelimiter() and converting all other environment
variable's (de facto standard) separators "_" to the path delimiter "/". |
Properties |
retrieveFrom(String aFromPath) |
|
Properties |
retrieveTo(String aToPath) |
|
int |
size() |
|
Object |
toDataStructure(String aFromPath) |
|
Collection<String> |
values() |
toInstance, toInstance, toType, toType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
directories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath
containsValue, getDelimiter, getType, retrieve, toMap, toProperties, toPropertyPath
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)
Properties.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.
public boolean containsKey(Object aKey)
Properties.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.
public Set<String> keySet()
Properties.getDelimiter()
and converting all other environment
variable's (de facto standard) separators "_" to the path delimiter "/".
public Collection<String> values()
public int size()
size
in interface org.refcodes.structure.Containable
public Object toDataStructure(String aFromPath)
toDataStructure
in interface org.refcodes.structure.PathMap<String>
public boolean isEmpty()
isEmpty
in interface org.refcodes.structure.Containable
public Properties retrieveFrom(String aFromPath)
retrieveFrom
in interface org.refcodes.structure.CanonicalMap
retrieveFrom
in interface org.refcodes.structure.PathMap<String>
retrieveFrom
in interface Properties
public Properties retrieveTo(String aToPath)
retrieveTo
in interface org.refcodes.structure.CanonicalMap
retrieveTo
in interface org.refcodes.structure.PathMap<String>
retrieveTo
in interface Properties
public Properties childrenOf(String aParentPath)
childrenOf
in interface org.refcodes.structure.CanonicalMap
childrenOf
in interface org.refcodes.structure.PathMap<String>
childrenOf
in interface Properties
Copyright © 2018. All rights reserved.