@Metadata(root=ENVIRONMENTS, description="A Dictionary contains key-value pairs that can be replaced") @TypeIcon(value="icons/types/udm.Dictionary.svg") public class Dictionary extends AbstractDictionary implements IEncryptedDictionary
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}}!
IDictionary.DictionaryContext
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> |
getRestrictToDistributions() |
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) |
applyTo, getRestrictToApplications, getRestrictToContainers
compareTo, equals, get$ciAttributes, get$externalProperties, get$internalId, get$securedCi, get$token, get$validationMessages, getId, getName, getProperty, getPropertyDescriptor, getType, hashCode, hasProperty, set$ciAttributes, set$externalProperties, set$internalId, set$securedCi, set$token, set$validationMessages, setId, setProperty, setType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
applyTo
get$internalId, get$securedCi, get$validationMessages, getId, getName, getProperty, getType, hasProperty, setId, setProperty
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()
getEntries
in interface IDictionary
public java.util.Map<java.lang.String,java.lang.String> getEncryptedEntries()
getEncryptedEntries
in interface IEncryptedDictionary
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)
getValue
in interface IDictionary
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<Application> getRestrictToDistributions()
Application
s only for which the dictionary is applied.