public final class ConfigurationFunctions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.function.Function<org.apache.tamaya.Configuration,java.lang.Boolean> |
containsArea(java.lang.String areaKey)
Return a query to evaluate to evaluate if an area exists.
|
static java.util.function.Function<org.apache.tamaya.Configuration,java.util.Set<java.lang.String>> |
getAreas()
Return a query to evaluate the set with all fully qualifies area names.
|
static java.util.function.Function<org.apache.tamaya.Configuration,java.util.Set<java.lang.String>> |
getAreas(java.util.function.Predicate<java.lang.String> predicate)
Return a query to evaluate the set with all fully qualified area names, containing only the
areas that match the predicate and have properties attached.
|
static java.util.function.Function<org.apache.tamaya.Configuration,java.util.Set<java.lang.String>> |
getTransitiveAreas()
Return a query to evaluate the set with all fully qualified area names, containing the transitive closure also including all
subarea names, regardless if properties are accessible or not.
|
static java.util.function.Function<org.apache.tamaya.Configuration,java.util.Set<java.lang.String>> |
getTransitiveAreas(java.util.function.Predicate<java.lang.String> predicate)
Return a query to evaluate the set with all fully qualified area names, containing the transitive closure also including all
subarea names, regardless if properties are accessible or not.
|
static boolean |
isKeyInArea(java.lang.String key,
java.lang.String areaKey)
Calculates the current area key and compares it with the given key.
|
static java.util.function.UnaryOperator<org.apache.tamaya.Configuration> |
selectArea(java.lang.String areaKey)
Creates a ConfigOperator that creates a Configuration containing only keys
that are contained in the given area (non recursive).
|
static java.util.function.UnaryOperator<org.apache.tamaya.Configuration> |
selectArea(java.lang.String areaKey,
boolean stripKeys)
Creates a ConfigOperator that creates a Configuration containing only keys
that are contained in the given area (non recursive).
|
static java.util.function.UnaryOperator<org.apache.tamaya.Configuration> |
selectAreaRecursive(java.lang.String areaKey)
Creates a ConfigOperator that creates a Configuration containing only keys
that are contained in the given area (recursive).
|
static java.util.function.UnaryOperator<org.apache.tamaya.Configuration> |
selectAreaRecursive(java.lang.String areaKey,
boolean stripKeys)
Creates a ConfigOperator that creates a Configuration containing only keys
that are contained in the given area (recursive).
|
public static java.util.function.UnaryOperator<org.apache.tamaya.Configuration> selectArea(java.lang.String areaKey)
areaKey
- the area key, not nullpublic static java.util.function.UnaryOperator<org.apache.tamaya.Configuration> selectArea(java.lang.String areaKey, boolean stripKeys)
areaKey
- the area key, not nullstripKeys
- if set to true, the area key is stripped away fromMap the resulting key.public static boolean isKeyInArea(java.lang.String key, java.lang.String areaKey)
key
- the fully qualified entry key, not nullareaKey
- the area key, not nullpublic static java.util.function.Function<org.apache.tamaya.Configuration,java.util.Set<java.lang.String>> getAreas()
null
.public static java.util.function.Function<org.apache.tamaya.Configuration,java.util.Set<java.lang.String>> getTransitiveAreas()
null
.public static java.util.function.Function<org.apache.tamaya.Configuration,java.util.Set<java.lang.String>> getAreas(java.util.function.Predicate<java.lang.String> predicate)
predicate
- A predicate to deternine, which areas should be returned, not null
.null
.public static java.util.function.Function<org.apache.tamaya.Configuration,java.util.Set<java.lang.String>> getTransitiveAreas(java.util.function.Predicate<java.lang.String> predicate)
predicate
- A predicate to deternine, which areas should be returned, not null
.null
.public static java.util.function.Function<org.apache.tamaya.Configuration,java.lang.Boolean> containsArea(java.lang.String areaKey)
false
should be returned.areaKey
- the configuration area (sub)path.true
, if such a node exists.public static java.util.function.UnaryOperator<org.apache.tamaya.Configuration> selectAreaRecursive(java.lang.String areaKey)
areaKey
- the area key, not nullpublic static java.util.function.UnaryOperator<org.apache.tamaya.Configuration> selectAreaRecursive(java.lang.String areaKey, boolean stripKeys)
areaKey
- the area key, not nullstripKeys
- if set to true, the area key is stripped away fromMap the resulting key.