Package org.bedework.calfacade.base
Interface DescriptionEntity<T extends BwStringBase>
- Type Parameters:
T-
- All Known Subinterfaces:
EventEntity
- All Known Implementing Classes:
BwAlarm,BwEvent,BwEventAnnotation,BwEventNewWrapper,BwEventObj,BwEventProxy,BwFilterDef
public interface DescriptionEntity<T extends BwStringBase>
An entity that can have one or more descriptions will implement this interface.
- Author:
- douglm
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescription(String lang, String val) voidaddDescription(T val) findDescription(String lang) Deprecated.Get the descriptionsintbooleanremoveDescription(T val) voidsetDescription(String val) Deprecated.voidsetDescriptions(Set<T> val) Set the descriptions SetvoidupdateDescriptions(String lang, String val) If description with given lang is present updates the value, otherwise adds it.
-
Method Details
-
setDescriptions
Set the descriptions Set- Parameters:
val- Set of (BwString)descriptions
-
getDescriptions
Get the descriptions- Returns:
- Set descriptions set
-
getNumDescriptions
int getNumDescriptions()- Returns:
- int number of descriptions.
-
addDescription
- Parameters:
lang-val-
-
updateDescriptions
If description with given lang is present updates the value, otherwise adds it.- Parameters:
lang-val-
-
findDescription
- Parameters:
lang-- Returns:
- BwString with language code or default
-
setDescription
Deprecated.- Parameters:
val- String default
-
getDescription
String getDescription()Deprecated.- Returns:
- String default
-
addDescription
- Parameters:
val-
-
removeDescription
- Parameters:
val-- Returns:
- boolean true if removed.
-