|
|||||||||
| Home >> All >> org >> greenstone >> gatherer >> [ cdm overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.greenstone.gatherer.cdm
Class CollectionMetaManager

java.lang.Objectjavax.swing.AbstractListModel
org.greenstone.gatherer.cdm.DOMProxyListModel
org.greenstone.gatherer.cdm.CollectionMetaManager
- All Implemented Interfaces:
- javax.swing.ListModel, java.io.Serializable
- public class CollectionMetaManager
- extends DOMProxyListModel
This class is responsible for maintaining a list of assigned collection level metadata, and for allows manipulations on the aforementioned data.
- Version:
- 2.3d
| Field Summary |
| Fields inherited from class org.greenstone.gatherer.cdm.DOMProxyListModel |
root |
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
CollectionMetaManager()
Constructor. |
|
| Method Summary | |
void |
addMetadatum(CollectionMeta metadata)
Method to add a new piece of metadata. |
CollectionMeta |
get(int i)
|
java.util.TreeSet |
getLanguages()
Retrieve the languages in use for the metadata assigned to this collection |
java.util.ArrayList |
getMetadata()
Retrieve all of the general metadata. |
java.util.ArrayList |
getMetadata(java.lang.String name)
Retrieve all of the metadata for the given feature, regardless of language. |
CollectionMeta |
getMetadata(java.lang.String name,
java.lang.String language,
boolean partial)
Method to retrieve a certain piece of metadata based on its name and language. |
CollectionMeta |
getMetadatum(java.lang.String name)
Retrieve the named piece of metadata, in the default language, if available. |
CollectionMeta |
getMetadatum(java.lang.String name,
boolean add_if_not_found)
|
void |
removeMetadata(CollectionMeta metadata)
Method to remove a piece of metadata. |
void |
removeMetadata(java.lang.String name)
Removes all of the metadata with a certain name, regardless of language or value. |
int |
size()
|
| Methods inherited from class org.greenstone.gatherer.cdm.DOMProxyListModel |
add, add, add, addAfter, addBefore, append, children, contains, getElementAt, getSize, indexOf, refresh, refresh, remove, remove, setRoot |
| Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
CollectionMetaManager
public CollectionMetaManager()
- Constructor.
| Method Detail |
addMetadatum
public void addMetadatum(CollectionMeta metadata)
- Method to add a new piece of metadata.
get
public CollectionMeta get(int i)
getLanguages
public java.util.TreeSet getLanguages()
- Retrieve the languages in use for the metadata assigned to this collection
getMetadata
public java.util.ArrayList getMetadata()
- Retrieve all of the general metadata.
getMetadata
public java.util.ArrayList getMetadata(java.lang.String name)
- Retrieve all of the metadata for the given feature, regardless of language.
getMetadatum
public CollectionMeta getMetadatum(java.lang.String name)
- Retrieve the named piece of metadata, in the default language, if available. If no such metadata is available then it is created.
getMetadatum
public CollectionMeta getMetadatum(java.lang.String name, boolean add_if_not_found)
getMetadata
public CollectionMeta getMetadata(java.lang.String name, java.lang.String language, boolean partial)
- Method to retrieve a certain piece of metadata based on its name and language.
removeMetadata
public void removeMetadata(CollectionMeta metadata)
- Method to remove a piece of metadata.
removeMetadata
public void removeMetadata(java.lang.String name)
- Removes all of the metadata with a certain name, regardless of language or value.
size
public int size()
|
|||||||||
| Home >> All >> org >> greenstone >> gatherer >> [ cdm overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC