com.penguinwerks.jodene.managers
Class DataStorageTag

java.lang.Object
  extended bycom.penguinwerks.jodene.managers.DataStorageTag
All Implemented Interfaces:
java.io.Serializable

public class DataStorageTag
extends java.lang.Object
implements java.io.Serializable

The data storage tags stores the meta data that belongs to an item in the vault. By default the data storage tag includes only the create date and a standard Description getter/setter.

Author:
Paul Hoehne
See Also:
Serialized Form

Constructor Summary
DataStorageTag()
          Creates a new instance of DataStorageTag
 
Method Summary
 void addFeature(java.lang.String name, java.io.Serializable feature)
          Adds a feature to the meta-data.
 java.util.Calendar getCreateDate()
          Returns the date this vault item was created.
 java.lang.String getDescription()
          Returns the description
 java.io.Serializable getFeature(java.lang.String name)
          Returns a feature for a given name.
 void setDescription(java.lang.String descr)
          Set the description for this data storage tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataStorageTag

public DataStorageTag()
Creates a new instance of DataStorageTag

Method Detail

getDescription

public java.lang.String getDescription()
Returns the description

Returns:
Description

setDescription

public void setDescription(java.lang.String descr)
Set the description for this data storage tag.

Parameters:
descr - The description.

getCreateDate

public java.util.Calendar getCreateDate()
Returns the date this vault item was created.

Returns:
Created date

addFeature

public void addFeature(java.lang.String name,
                       java.io.Serializable feature)
Adds a feature to the meta-data. Note this is any kind of serializable object.

Parameters:
name - The name of the feature.
feature - The feature.

getFeature

public java.io.Serializable getFeature(java.lang.String name)
Returns a feature for a given name.

Parameters:
name - The name of the feature.
Returns:
The feature.