public class PropertyBuilderImpl extends Object implements PropertyBuilder
toSystemProperty
Constructor and Description |
---|
PropertyBuilderImpl() |
Modifier and Type | Method and 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, wait
getEnvironmentVariable, getSystemProperty, toEnvironmentVariable, toPath, toSystemProperty
public 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 PropertyBuilder
aKey
- The key to be converted.public String toSystemProperty(String aKey)
toSystemProperty
in interface PropertyBuilder
aKey
- The key to be converted.public String toEnvironmentVariable(String aKey)
toEnvironmentVariable
in interface PropertyBuilder
aKey
- The key to be converted.public String getSystemProperty(String aKey)
getSystemProperty
in interface PropertyBuilder
aKey
- The value of the key to be converted.public String getEnvironmentVariable(String aKey)
getEnvironmentVariable
in interface PropertyBuilder
aKey
- The value of the key to be converted.Copyright © 2018. All rights reserved.