public class ValueContainer extends Object implements Serializable
Constructor and Description |
---|
ValueContainer()
Construct an empty value container.
|
ValueContainer(Map<String,com.sdl.delivery.configuration.Value> valueMap)
Construct the container and populate it with a map of values.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
com.sdl.delivery.configuration.Value value)
Add a value to the container.
|
com.sdl.delivery.configuration.Value |
get(String valueKey)
Returns a Value for the specified key, this never returns a null.
|
Set<String> |
getAllPropertyKeys()
Returns the keys of the all property values held within the container.
|
Set<String> |
getChildConfigKeys()
Returns the keys of the "top level" ChildConfigValues within this
container (i.e.
|
Set<String> |
getChildKeys()
Returns the keys of the "top level" property values and ChildConfigValues.
|
Set<String> |
getChildPropertyKeys()
Returns the keys of the "top level" property values (that aren't "owned" by a child
ChildConfigValue).
|
boolean |
hasValues() |
boolean |
isEmpty() |
public void add(String key, com.sdl.delivery.configuration.Value value)
key
- the property name of the valuevalue
- the valuepublic Set<String> getAllPropertyKeys()
public Set<String> getChildConfigKeys()
public Set<String> getChildPropertyKeys()
public Set<String> getChildKeys()
public com.sdl.delivery.configuration.Value get(String valueKey)
valueKey
- the value keypublic boolean hasValues()
public boolean isEmpty()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries