|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.greenstone.gs3client.data.CollectionData
public class CollectionData
CollectionData represents a Greenstone 3 collection and contains the data stored in a <collection></collection> element returned from a MessageRouter's desribe response XML and a Collection describe response XML. A CollectionData object can therefore contain services (represented by ServiceData), a list of collection-level metadata (represented by MetaData) and a list of plugins (represented by PluginData). ServiceData and PluginData are static inner classes of CollectionData. To declare variables of these inner class types in other java files/classes, import each one: e.g. "import gs3client.CollectionData.ServiceData". Then they can be used without the outerclass' name for qualification: i.e. can then use Servicedata sv = new ServiceData(...) instead of CollectionData.ServiceData sv = new CollectionData.ServiceData(...).
Nested Class Summary | |
---|---|
static class |
CollectionData.MetaData
Static inner class MetaData: can import it into other files as "import gs3client.CollectionData.MetaData;" In this way, can use it as if it were a regular class (a.o.t. |
static class |
CollectionData.PluginData
PluginData inner class of CollectionData, represents the data stored in a <plugin></plugin> element. |
static class |
CollectionData.ServiceData
Only the name and type of a <service></service> element is stored, since this is all the service data available inside a collection's response message to a describe request. |
Field Summary | |
---|---|
protected java.lang.String |
description
Description of the Greenstone collection represented by this CollectionData |
protected java.lang.String |
displayName
Display name for the Greenstone collection represented by this CollectionData |
protected java.lang.String |
icon
|
protected CollectionData.MetaData[] |
metadataList
Collection level metadata |
java.lang.String |
name
The basic field of a collection: the name of the collection. |
protected CollectionData.PluginData[] |
pluginList
Greenstone plugins used to build this collection with |
protected CollectionData.ServiceData[] |
serviceList
List of services supported by this collection |
protected java.lang.String |
smallIcon
|
protected java.lang.String |
url
Stores the location of images and stuff. |
Constructor Summary | |
---|---|
CollectionData(org.w3c.dom.Element mrCollectionTag)
Gets a <collection></collection> element as returned by the MessageRouter's describe response, with only the name field set. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getIcon()
|
CollectionData.MetaData[] |
getMetadataList()
|
java.lang.String |
getName()
|
CollectionData.PluginData[] |
getPluginList()
|
CollectionData.ServiceData[] |
getServiceList(boolean executableServicesOnly)
|
java.lang.String |
getSmallIcon()
|
java.lang.String |
getUrl()
|
java.lang.String |
info()
|
void |
setFields(org.w3c.dom.Element collectionTag)
Gets a <collection></collection> element - as returned by a describe response from a Collection - and sets the member vars using the data in there. |
java.lang.String |
show()
|
java.lang.String |
toString()
Useful when adding CollectionData objects to a JList or JCombobox. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String url
public final java.lang.String name
protected java.lang.String displayName
protected java.lang.String description
protected java.lang.String smallIcon
protected java.lang.String icon
protected CollectionData.ServiceData[] serviceList
protected CollectionData.MetaData[] metadataList
protected CollectionData.PluginData[] pluginList
Constructor Detail |
---|
public CollectionData(org.w3c.dom.Element mrCollectionTag)
mrCollectionTag
- the <collection></collection> element
as returned by a describe response from the MessageRouter.Method Detail |
---|
public void setFields(org.w3c.dom.Element collectionTag)
collectionTag
- is the <collection></collection> element
as returned by a describe response from a Collection.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String show()
public java.lang.String info()
public java.lang.String getName()
public java.lang.String getDisplayName()
public java.lang.String getDescription()
public java.lang.String getSmallIcon()
public java.lang.String getIcon()
public java.lang.String getUrl()
public CollectionData.MetaData[] getMetadataList()
public CollectionData.PluginData[] getPluginList()
public CollectionData.ServiceData[] getServiceList(boolean executableServicesOnly)
executableServicesOnly
- - if true, only the list of supported query
and browse services are returned. Otherwise, all the services in the
collection are returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |