@Metadata(root=ENVIRONMENTS, description="A Dictionary contains key-value pairs that can be replaced") public class Dictionary extends BaseConfigurationItem
Environment
-specific entries for placeholder resolution.
A dictionary value can refer to another dictionary entry. This is accomplished by using the {{..}} placeholder syntax.
For example:
MESSAGE Welcome to {{APP_NAME}}!
id, syntheticProperties, type
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD
Constructor and Description |
---|
Dictionary() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getEntries() |
java.util.Set<Application> |
getRestrictToApplications() |
java.util.Set<Container> |
getRestrictToContainers() |
java.lang.String |
getValue(java.lang.String key) |
boolean |
hasValue(java.lang.String key) |
void |
setEntries(java.util.Map<java.lang.String,java.lang.String> dict) |
compareTo, equals, get$ciAttributes, get$token, getId, getName, getProperty, getPropertyDescriptor, getSyntheticProperties, getSyntheticProperty, getType, hashCode, hasProperty, hasSyntheticProperty, putSyntheticProperties, putSyntheticProperty, set$ciAttributes, set$token, setId, setProperty, setSyntheticProperties, setType, toString
public void setEntries(java.util.Map<java.lang.String,java.lang.String> dict)
dict
- The dictionary entries.public java.util.Map<java.lang.String,java.lang.String> getEntries()
public java.lang.String getValue(java.lang.String key)
key
- The key of a dictionary entry.public boolean hasValue(java.lang.String key)
key
- The key of a dictionary entry.public java.util.Set<Container> getRestrictToContainers()
Container
s only for which the dictionary is applied.public java.util.Set<Application> getRestrictToApplications()
Application
s only for which the dictionary is applied.