Package org.bedework.carddav.server
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CarddavResourceContent()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()intcompareTo(CarddavResourceContent that)voidcopyTo(CarddavResourceContent val)Copy this objects values into the parameterStringgetName()Get the nameCarddavColNodegetParent()Get the object's collectionbyte[]getValue()Get the valueinthashCode()voidsetName(String val)Set the namevoidsetParent(CarddavColNode val)Set the object's collectionvoidsetValue(byte[] val)Set the valueStringtoString()
-
-
-
Method Detail
-
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:
- BwCalendar 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-
-
compareTo
public int compareTo(CarddavResourceContent that)
- Specified by:
compareToin interfaceComparable<CarddavResourceContent>
-
-