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) |
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 PropertyBuilder
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 toSystemProperty()
PropertyBuilder
KeyAccessor.getKey()
to a system property. A system
property is the camel-case version of the according key.toSystemProperty
in interface PropertyBuilder
public String toEnvironmentVariable()
PropertyBuilder
KeyAccessor.getKey()
to an environment variable. An
environment variable is the upper-case snake-case version of the
according key.toEnvironmentVariable
in interface PropertyBuilder
public String toSystemProperty(String aKey)
PropertyBuilder
toSystemProperty
in interface PropertyBuilder
aKey
- The key to be converted.public String toEnvironmentVariable(String aKey)
PropertyBuilder
toEnvironmentVariable
in interface PropertyBuilder
aKey
- The key to be converted.public String getSystemProperty()
PropertyBuilder
KeyAccessor.getKey()
to a system property. A system property is the
camel-case version of the according key.getSystemProperty
in interface PropertyBuilder
public String getEnvironmentVariable()
PropertyBuilder
KeyAccessor.getKey()
to an environment variable. An environment
variable is the upper-case snake-case version of the according key.getEnvironmentVariable
in interface PropertyBuilder
public String getSystemProperty(String aKey)
PropertyBuilder
getSystemProperty
in interface PropertyBuilder
aKey
- The value of the key to be converted.public String getEnvironmentVariable(String aKey)
PropertyBuilder
getEnvironmentVariable
in interface PropertyBuilder
aKey
- The value of the key to be converted.Copyright © 2017. All rights reserved.