org.refcodes.mixin.KeyAccessor<String>, org.refcodes.mixin.KeyAccessor.KeyBuilder<String,PropertyBuilder>, org.refcodes.mixin.KeyAccessor.KeyMutator<String>, org.refcodes.mixin.KeyAccessor.KeyProperty<String>, PropertyBuilderpublic class PropertyBuilderImpl extends Object implements PropertyBuilder
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>| Constructor | Description |
|---|---|
PropertyBuilderImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getEnvironmentVariable(String aKey) |
Returns the according environment variable after having converted the
provided key to an environment variable.
|
String |
getKey() |
|
String |
getSystemProperty(String aKey) |
Returns the according system's property after having converted the
provided key to a system property.
|
void |
setKey(String aKey) |
|
String |
toEnvironmentVariable(String aKey) |
Converts the provided key to an environment variable.
|
protected static String |
toNormalized(String aText,
char aSeparator) |
|
String |
toPath(String aKey) |
Converts the provided key as of
KeyAccessor.getKey() to a path (as of
PathMap). |
String |
toSystemProperty(String aKey) |
Converts the provided key to a system property.
|
PropertyBuilder |
withKey(String aKey) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnvironmentVariable, getSystemProperty, toEnvironmentVariable, toPath, toSystemPropertypublic String getKey()
getKey in interface org.refcodes.mixin.KeyAccessor<String>public void setKey(String aKey)
setKey in interface org.refcodes.mixin.KeyAccessor.KeyMutator<String>public PropertyBuilder withKey(String aKey)
withKey in interface org.refcodes.mixin.KeyAccessor.KeyBuilder<String,PropertyBuilder>public String toPath(String aKey)
KeyAccessor.getKey() to a path (as of
PathMap). A path begins with a path delimiter "/" (as of
Delimiter.PATH and with all non alphanumeric digits being
replaced by the path delimiter. Any non alphanumeric sequence is
truncated to a single path delimiter.toPath in interface PropertyBuilderaKey - The key to be converted.public String toSystemProperty(String aKey)
toSystemProperty in interface PropertyBuilderaKey - The key to be converted.public String toEnvironmentVariable(String aKey)
toEnvironmentVariable in interface PropertyBuilderaKey - The key to be converted.public String getSystemProperty(String aKey)
getSystemProperty in interface PropertyBuilderaKey - The value of the key to be converted.public String getEnvironmentVariable(String aKey)
getEnvironmentVariable in interface PropertyBuilderaKey - The value of the key to be converted.Copyright © 2018. All rights reserved.