Class BwLongString

All Implemented Interfaces:
Serializable, Comparable<BwLongString>, SizedEntity, org.bedework.util.logging.Logged

public class BwLongString extends BwStringBase<BwLongString>
A String value in bedework. This class is for strings that can be long usually over 4k. This is mostly because db systems tend to handle long strings in a different manner. (clobs, no searches etc)

Internally there is no difference, this just provides essentially a label for the schema.

Version:
1.0
See Also:
  • Constructor Details

    • BwLongString

      public BwLongString()
      Constructor
    • BwLongString

      public BwLongString(String lang, String value)
      Create a string by specifying all its fields
      Parameters:
      lang - String language code
      value - String value
  • Method Details

    • findLang

      public static BwLongString findLang(String lang, Collection<BwLongString> c)
      Search the collection for a string that matches the given language code.

      A supplied lang of null implies the default language code.

      If the supplied language equals any language in the collection we return with that.

      Otherwise if if matches the first part of a qualified code we take that, e.g lan="en" could match "en_US"

      Otherwise we return the first one we found.

      Parameters:
      lang - language code
      c - collection of strings
      Returns:
      BwString or null if no strings.
    • clone

      public Object clone()
      Description copied from class: BwUnversionedDbentity
      Make visible
      Overrides:
      clone in class BwStringBase<BwLongString>
      Returns:
      Object of class T