|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.core.AbstractDateStamped
org.davesag.generica.core.AbstractContent
org.davesag.generica.core.AbstractExtensibleContent
The AbstractExtensibleContent bean provides a handy abstract
root for all extensible core classes.
| Field Summary | |
protected Map |
theMetaData
a map of application definable meta-data |
| Fields inherited from class org.davesag.generica.core.AbstractContent |
theCountryCode, theLanguageCode |
| Fields inherited from class org.davesag.generica.core.AbstractDateStamped |
theCreated, theId, theLastModified |
| Constructor Summary | |
AbstractExtensibleContent()
default constructor |
|
AbstractExtensibleContent(Locale loc)
constructor takes a locale. |
|
AbstractExtensibleContent(String lang)
constructor takes a language code. |
|
| Method Summary | |
void |
addMetaData(String key,
String metadata)
Add a piece of MetaData to this AbstractExtensibleContent. |
boolean |
equals(Object o)
Tests if the supplied object is equal to this AbstractExtensibleContent, ie do they have the same Id? |
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 AbstractExtensibleContent. |
void |
setMetaData(Map metadata)
Set this AbstractExtensibleContent's MetaData Map. |
| Methods inherited from class org.davesag.generica.core.AbstractContent |
getCountryCode, getLanguageCode, getLocale, hashcode, setCountryCode, setLanguageCode, setLocale, toString |
| Methods inherited from class org.davesag.generica.core.AbstractDateStamped |
getCreated, getId, getLastModified, setCreated, setId, setLastModified, setTemplateId |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.davesag.generica.core.DateStamped |
getCreated, getLastModified, setCreated, setLastModified |
| Field Detail |
protected Map theMetaData
| Constructor Detail |
public AbstractExtensibleContent()
public AbstractExtensibleContent(String lang)
lang - The ISO Language Code.public AbstractExtensibleContent(Locale loc)
loc - The Locale.| Method Detail |
public Map getMetaData()
getMetaData in interface Extensiblepublic Object getMetaData(Object key)
getMetaData in interface Extensiblekey - The key to the bit of meta data you want.
public void setMetaData(Map metadata)
setMetaData in interface Extensiblemetadata - The Map of meta data for this
AbstractExtensibleContent.
public void addMetaData(String key,
String metadata)
addMetaData in interface Extensiblekey - The key under which to file the meta data. If the key
is already there the value will replace the existing
value.metadata - The meta data to add.public void removeMetaData(String key)
removeMetaData in interface Extensiblekey - The MetaData key to remove.public boolean equals(Object o)
equals in class AbstractContento - The object to test against this AbstractExtensibleContent.
Must also be a AbstractExtensibleContent to make sense.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||