Package org.bedework.calfacade.base
Interface DisplayNameEntity
- All Known Implementing Classes:
BwFilterDef
public interface DisplayNameEntity
An entity that can have one or more display names will implement this interface.
- Author:
- douglm
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDisplayName(String lang, String val) voidaddDisplayName(BwString val) findDisplayName(String lang) Deprecated.Get the display namesintbooleanvoidsetDisplayName(String val) Deprecated.voidSet the display names collectionvoidupdateDisplayNames(String lang, String val) If display name with given lang is present updates the value, otherwise adds it.
-
Method Details
-
setDisplayNames
Set the display names collection- Parameters:
val- Collection of (BwString)display names
-
getDisplayNames
Collection<BwString> getDisplayNames()Get the display names- Returns:
- Collection display names set
-
getNumDisplayNames
int getNumDisplayNames()- Returns:
- int number of display names.
-
addDisplayName
- Parameters:
lang-val-
-
updateDisplayNames
If display name with given lang is present updates the value, otherwise adds it.- Parameters:
lang-val-
-
findDisplayName
- Parameters:
lang-- Returns:
- BwString with language code or default
-
setDisplayName
Deprecated.- Parameters:
val- String default
-
getDisplayName
String getDisplayName()Deprecated.- Returns:
- String default
-
addDisplayName
- Parameters:
val-
-
removeDisplayName
- Parameters:
val-- Returns:
- boolean true if removed.
-