Class DbCardProperty

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

public class DbCardProperty extends UnversionedDbentity<DbCardProperty>
A representation of a vcard property for database persistance in cardDAV. Allows us to index the values for searching
Author:
douglm
See Also:
  • Constructor Details

    • DbCardProperty

      public DbCardProperty()
      Null constructor
    • DbCardProperty

      public DbCardProperty(String name, String value, DbCardParam... params)
      Create DbCardProperty
      Parameters:
      name - of property
      value - of property
      params - for property
  • Method Details

    • setName

      public void setName(String val)
      Set the name
      Parameters:
      val - String name
    • getName

      public String getName()
      Get the name
      Returns:
      String name
    • setValue

      public void setValue(String val)
      Set the value
      Parameters:
      val - String value
    • getValue

      public String getValue()
      Get the value
      Returns:
      String value
    • setParams

      public void setParams(List<DbCardParam> val)
      Parameters:
      val - list of params
    • getParams

      public List<DbCardParam> getParams()
      Returns:
      parameters or null
    • setCard

      public void setCard(DbCard val)
      Parameters:
      val - the card
    • getCard

      public DbCard getCard()
      Returns:
      card.
    • addParam

      public void addParam(DbCardParam val)
      Parameters:
      val - a param
    • findParam

      public DbCardParam findParam(String name)
      Parameters:
      name - of param
      Returns:
      param or null
    • findParams

      public List<DbCardParam> findParams(String name)
      Parameters:
      name - of param
      Returns:
      params or null
    • compareTo

      public int compareTo(DbCardProperty that)
      Specified by:
      compareTo in interface Comparable<DbCardProperty>
      Overrides:
      compareTo in class UnversionedDbentity<DbCardProperty>
    • toString

      public String toString()
      Overrides:
      toString in class Object