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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intvoidCopy this objects values into the parametergetName()Get the nameGet the object's collectionbyte[]getValue()Get the valueinthashCode()voidSet the namevoidsetParent(CarddavColNode val) Set the object's collectionvoidsetValue(byte[] val) Set the valuetoString()
-
Constructor Details
-
CarddavResourceContent
public CarddavResourceContent()Constructor
-
-
Method Details
-
setParent
Set the object's collection- Parameters:
val- CarddavColNode object's collection
-
getParent
Get the object's collection- Returns:
- BwCalendar the object's collection
-
setName
Set the name- Parameters:
val- String name
-
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
Copy this objects values into the parameter- Parameters:
val- target
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<CarddavResourceContent>
-
toString
-
clone
-