@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> |
getEncryptedEntries() |
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 |
setEncryptedEntries(java.util.Map<java.lang.String,java.lang.String> encryptedEntries) |
void |
setEntries(java.util.Map<java.lang.String,java.lang.String> dict) |
compareTo, equals, get$ciAttributes, get$token, get$validationMessages, getId, getName, getProperty, getPropertyDescriptor, getType, hashCode, hasProperty, set$ciAttributes, set$token, set$validationMessages, setId, setProperty, 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.util.Map<java.lang.String,java.lang.String> getEncryptedEntries()
public void setEncryptedEntries(java.util.Map<java.lang.String,java.lang.String> encryptedEntries)
encryptedEntries
- The encrypted dictionary entriespublic 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.