public class PropertyBuilderImpl extends Object implements PropertyBuilder
| Type | Property and Description |
|---|---|
String |
toSystem
Converts the key as of
KeyAccessor.getKey() to a system property. |
| Constructor and Description |
|---|
PropertyBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEnvironmentVariable()
Returns the according environment variable after having converted the key
as of
KeyAccessor.getKey() to an environment variable. |
String |
getEnvironmentVariable(String aKey)
Returns the according environment variable after having converted the
provided key to an environment variable.
|
String |
getKey() |
String |
getSystemProperty()
Returns the according system's property after having converted the key as
of
KeyAccessor.getKey() to a system property. |
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()
Converts the key as of
KeyAccessor.getKey() to an environment variable. |
String |
toEnvironmentVariable(String aKey)
Converts the provided key to an environment variable.
|
protected static String |
toNormalized(String aText,
char aSeparator)
To normalized.
|
String |
toSystemProperty()
Converts the key as of
KeyAccessor.getKey() to a system property. |
String |
toSystemProperty(String aKey)
Converts the provided key to a system property.
|
PropertyBuilder |
withKey(String aKey) |
public String toSystemProperty
toSystemProperty in interface PropertyBuilderpublic 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 toSystemProperty()
PropertyBuilderKeyAccessor.getKey() to a system property. A system
property is the camel-case version of the according key.toSystemProperty in interface PropertyBuilderpublic String toEnvironmentVariable()
PropertyBuilderKeyAccessor.getKey() to an environment variable. An
environment variable is the upper-case snake-case version of the
according key.toEnvironmentVariable in interface PropertyBuilderpublic String toSystemProperty(String aKey)
PropertyBuildertoSystemProperty in interface PropertyBuilderaKey - The key to be converted.public String toEnvironmentVariable(String aKey)
PropertyBuildertoEnvironmentVariable in interface PropertyBuilderaKey - The key to be converted.public String getSystemProperty()
PropertyBuilderKeyAccessor.getKey() to a system property. A system property is the
camel-case version of the according key.getSystemProperty in interface PropertyBuilderpublic String getEnvironmentVariable()
PropertyBuilderKeyAccessor.getKey() to an environment variable. An environment
variable is the upper-case snake-case version of the according key.getEnvironmentVariable in interface PropertyBuilderpublic String getSystemProperty(String aKey)
PropertyBuildergetSystemProperty in interface PropertyBuilderaKey - The value of the key to be converted.public String getEnvironmentVariable(String aKey)
PropertyBuildergetEnvironmentVariable in interface PropertyBuilderaKey - The value of the key to be converted.Copyright © 2017. All rights reserved.