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 Details

    • setDescriptions

      void setDescriptions(Set<T> val)
      Set the descriptions Set
      Parameters:
      val - Set of (BwString)descriptions
    • getDescriptions

      Set<T> getDescriptions()
      Get the descriptions
      Returns:
      Set descriptions set
    • getNumDescriptions

      int getNumDescriptions()
      Returns:
      int number of descriptions.
    • addDescription

      void addDescription(String lang, String val)
      Parameters:
      lang -
      val -
    • updateDescriptions

      void updateDescriptions(String lang, String val)
      If description with given lang is present updates the value, otherwise adds it.
      Parameters:
      lang -
      val -
    • findDescription

      T findDescription(String lang)
      Parameters:
      lang -
      Returns:
      BwString with language code or default
    • setDescription

      void setDescription(String val)
      Deprecated.
      Parameters:
      val - String default
    • getDescription

      String getDescription()
      Deprecated.
      Returns:
      String default
    • addDescription

      void addDescription(T val)
      Parameters:
      val -
    • removeDescription

      boolean removeDescription(T val)
      Parameters:
      val -
      Returns:
      boolean true if removed.