public interface DescriptionInterface
Important note: Do not provide an implementation of this interface unless you are a DD API provider!
Modifier and Type | Method and Description |
---|---|
Map |
getAllDescriptions()
Returns all description elements in the form of
Map . |
String |
getDefaultDescription()
Returns the description element value for default locale.
|
String |
getDescription(String locale)
Returns the description element value for particular locale.
If locale=null method returns description for default locale. |
void |
removeAllDescriptions()
Removes all description elements from DD element.
|
void |
removeDescription()
Removes description element for default locale.
|
void |
removeDescriptionForLocale(String locale)
Removes the description element for particular locale.
|
void |
setAllDescriptions(Map descriptions)
Sets the multiple description elements.
|
void |
setDescription(String description)
Sets the description element without xml:lang attribute.
|
void |
setDescription(String locale,
String description)
Sets the description element for particular locale.
If locale=null the method sets the description element without xml:lang attribute. If description=null method removes the description element for a specified locale. |
void setDescription(String locale, String description) throws VersionNotSupportedException
locale
- string representing the locale - the value for xml:lang attribute e.g. "fr"description
- value for description elementVersionNotSupportedException
void setDescription(String description)
description
- value for description elementvoid setAllDescriptions(Map descriptions) throws VersionNotSupportedException
descriptions
- Map of descriptions in the form of [locale,description]VersionNotSupportedException
String getDescription(String locale) throws VersionNotSupportedException
locale
- string representing the locale - the value of xml:lang attribute e.g. "fr".VersionNotSupportedException
String getDefaultDescription()
Map getAllDescriptions()
Map
.void removeDescriptionForLocale(String locale) throws VersionNotSupportedException
locale
- string representing the locale - the value of xml:lang attribute e.g. "fr"VersionNotSupportedException
void removeDescription()
void removeAllDescriptions()