Class CarddavResourceContent

java.lang.Object
org.bedework.carddav.server.CarddavResourceContent
All Implemented Interfaces:
Serializable, Comparable<CarddavResourceContent>

public class CarddavResourceContent extends Object implements Comparable<CarddavResourceContent>, Serializable
Represent the content for a resource stored within the system, e.g an attachment or an image. The actual content is stored in a BwResourceContent object to allow us to put off retrieval of content - or maybe even store outside of the db.
Author:
Mike Douglass douglm - rpi.edu
See Also:
  • Constructor Details

    • CarddavResourceContent

      public CarddavResourceContent()
      Constructor
  • Method Details

    • setParent

      public void setParent(CarddavColNode val)
      Set the object's collection
      Parameters:
      val - CarddavColNode object's collection
    • getParent

      public CarddavColNode getParent()
      Get the object's collection
      Returns:
      the object's collection
    • 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(byte[] val)
      Set the value
      Parameters:
      val - byte[]
    • getValue

      public byte[] getValue()
      Get the value
      Returns:
      byte[] length
    • copyTo

      public void copyTo(CarddavResourceContent val)
      Copy this objects values into the parameter
      Parameters:
      val - target
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(CarddavResourceContent that)
      Specified by:
      compareTo in interface Comparable<CarddavResourceContent>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object