org.davesag.generica.core
Interface Extensible

All Known Implementing Classes:
AbstractExtensibleContent, Category, Merchant

public interface Extensible

Objects that impliment the Extensible interface are saying they have meta-data attached in the form of key, value object pairs. By application specific use of meta data you can achieve a lot without having to further extend the object.

Since:
Generica 1.0
Version:
CVS Revision $Id: Extensible.java,v 1.4 2004/03/30 10:12:56 norm Exp $
Author:
Dave Sag http://www.davesag.com

Method Summary
 void addMetaData(String key, String metadata)
          Add a piece of MetaData to this object.
 Map getMetaData()
          Get the Map of MetaData about this text.
 Object getMetaData(Object key)
          returns the metadata for the particular key.
 void removeMetaData(String key)
          Remove a piece of MetaData from this object.
 void setMetaData(Map metadata)
          Set this objects's MetaData Map.
 

Method Detail

getMetaData

public Map getMetaData()
Get the Map of MetaData about this text.

Returns:
The Map of MetaData about this Extensible object.

getMetaData

public Object getMetaData(Object key)
returns the metadata for the particular key.

Parameters:
key - The key to the bit of meta data you want.
Returns:
The Value corresponding to the key.

setMetaData

public void setMetaData(Map metadata)
Set this objects's MetaData Map.

Parameters:
metadata - The Map of meta data for this object.

addMetaData

public void addMetaData(String key,
                        String metadata)
Add a piece of MetaData to this object.

Parameters:
key - The key under which to file the meta data.
metadata - The meta data to add.

removeMetaData

public void removeMetaData(String key)
Remove a piece of MetaData from this object.

Parameters:
key - The MetaData key to remove.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.