| Package | Description |
|---|---|
| org.apache.tamaya.spi |
This package contains the Apache Tamaya SPI artifacts.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
ListValue |
Class modelling the result of a request for a property createValue.
|
class |
ObjectValue |
Class modelling the result of a request for a property value.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T extends PropertyValue> |
ObjectValue.getOrSetValue(String name,
Supplier<T> valueSupplier) |
Get a single child getValue with the given name, creates it if not existing.
|
| Modifier and Type | Method | Description |
|---|---|---|
static PropertyValue |
PropertyValue.createValue(String key,
String value) |
Creates a new createValue of type
PropertyValue.ValueType.VALUE. |
protected PropertyValue |
PropertyValue.deepClone() |
Creates a deep clone of this intance.
|
PropertyValue |
PropertyFilter.filterProperty(PropertyValue value,
FilterContext context) |
Maps the current
value to a new value. |
PropertyValue |
PropertySource.get(String key) |
Access a property.
|
PropertyValue |
PropertyValue.getParent() |
Get the value's parent.
|
PropertyValue |
FilterContext.getProperty() |
Get the property createValue under evaluation.
|
PropertyValue |
ListValue.getPropertyValue(int n) |
Get the n-th element of the children.
|
PropertyValue |
ObjectValue.getPropertyValue(String name) |
Get a single child getValue by name.
|
PropertyValue |
PropertyValue.immutable() |
Sets this instance and also all its direct an indirect children to immutable.
|
PropertyValue |
PropertyValue.mutable() |
Clones this instance and all it's children, marking as mutable createValue.
|
PropertyValue |
PropertyValue.removeMeta(String key) |
Removes a getMeta entry.
|
PropertyValue |
PropertyValue.setKey(String key) |
Changes the entry's key, mapping also corresponding context entries.
|
PropertyValue |
PropertyValue.setMeta(String key,
Object value) |
Add an additional context data information.
|
PropertyValue |
PropertyValue.setMeta(Map<String,String> metaEntries) |
Replaces/sets the context data.
|
protected PropertyValue |
PropertyValue.setParent(PropertyValue parent) |
Sets the new parent, used iternally when converting between value types.
|
PropertyValue |
ListValue.setValue(String value) |
|
PropertyValue |
ObjectValue.setValue(String value) |
|
PropertyValue |
PropertyValue.setValue(String value) |
Sets the createValue.
|
PropertyValue |
ObjectValue.setValueWithCompositeKey(String key,
String value) |
Adds a new child getValue, where the getValue is given in '.'
|
| Modifier and Type | Method | Description |
|---|---|---|
List<PropertyValue> |
FilterContext.getAllValues() |
Get the property createValue under evaluation.
|
Map<String,PropertyValue> |
FilterContext.getConfigEntries() |
This mapProperties contains the following keys:
the original createValue before any filters were applied on it.
all values starting with an
_<key>., for example a.createValue
may have a mapProperties setCurrent with a.createValue (oringinal createValue), _a.createValue.origin,
_a.createValue.type, etc. |
Map<String,PropertyValue> |
PropertySource.getProperties() |
Access the current properties as Set.
|
List<PropertyValue> |
ListValue.getPropertyValues(String name) |
Get the text elements, filtered by the given name.
|
List<PropertyValue> |
ConversionContext.getValues() |
Get the correspnoding underlying property values matching the given key, in order of significance
(most significant last).
|
Collection<PropertyValue> |
ObjectValue.getValues() |
Get the fields of this instance.
|
Iterator<PropertyValue> |
ListValue.iterator() |
|
Iterator<PropertyValue> |
ObjectValue.iterator() |
|
Iterator<PropertyValue> |
PropertyValue.iterator() |
|
static Map<String,PropertyValue> |
PropertyValue.mapProperties(Map<String,String> config,
String source) |
Maps a mapProperties of
Map<String,String> to a Map<String,PropertyValue>. |
static Map<String,PropertyValue> |
PropertyValue.mapProperties(Map<String,String> config,
String source,
Map<String,String> metaData) |
Maps a mapProperties of
Map<String,String> to a Map<String,PropertyValue>. |
static Map<String,PropertyValue> |
PropertyValue.mapProperties(Map<String,String> config,
String source,
Map<String,String> metaData,
String prefix) |
Maps a mapProperties of
Map<String,String> to a Map<String,PropertyValue>. |
Collection<PropertyValue> |
ObjectValue.setValueWithCompositeKey(Map<String,String> values) |
Adds multiple values, where the keys are given in '.'
|
| Modifier and Type | Method | Description |
|---|---|---|
ListValue |
ListValue.addPropertyValue(PropertyValue value) |
Adds a createValue to the array.
|
PropertyValue |
PropertyFilter.filterProperty(PropertyValue value,
FilterContext context) |
Maps the current
value to a new value. |
int |
ListValue.getIndex(PropertyValue member) |
Get the index of the given member value.
|
protected PropertyValue |
PropertyValue.setParent(PropertyValue parent) |
Sets the new parent, used iternally when converting between value types.
|
protected ObjectValue |
ObjectValue.setPropertyValue(PropertyValue value) |
Adds another existing node, hereby setting the corresponding parent node.
|
ConversionContext.Builder |
ConversionContext.Builder.setValues(PropertyValue... values) |
Sets the underlying values evaluated.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ListValue |
ListValue.from(Collection<PropertyValue> values) |
Merges multiple values into one single node.
|
static ObjectValue |
ObjectValue.from(Collection<PropertyValue> values) |
Merges multiple values into one single node.
|
ConversionContext.Builder |
ConversionContext.Builder.setValues(List<PropertyValue> values) |
Sets the underlying values evaluated.
|
| Constructor | Description |
|---|---|
FilterContext(PropertyValue value,
Map<String,PropertyValue> configEntries,
ConfigurationContext configurationContext) |
Creates a new FilterContext, for filtering of a multi createValue access
using
Configuration.getProperties(). |
FilterContext(PropertyValue value,
ConfigurationContext configurationContext) |
Creates a new FilterContext, for filtering of a single createValue access
using
Configuration.getProperties(). |
| Constructor | Description |
|---|---|
FilterContext(List<PropertyValue> values,
ConfigurationContext configurationContext) |
Creates a new FilterContext, for filtering of a single createValue access
using
Configuration.getProperties(). |
FilterContext(PropertyValue value,
Map<String,PropertyValue> configEntries,
ConfigurationContext configurationContext) |
Creates a new FilterContext, for filtering of a multi createValue access
using
Configuration.getProperties(). |
Copyright © 2014–2019 Apache Software Foundation. All rights reserved.