|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.DescriptorDataSource
public class DescriptorDataSource
This simply holds a list of DerivedDataDescriptors It is used, for example, to represent a collection of end-user defined formulas (i.e., DerivedDataDescriptor)
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.data.DataSourceImpl |
|---|
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES |
| Fields inherited from interface ucar.unidata.data.DataSource |
|---|
DATAPATH_DATE_FORMAT, DATAPATH_DATE_PATTERN, MOST_RECENT, ordinalNames, PROP_AUTOCREATEDISPLAY, PROP_BASEDIRECTORY, PROP_CACHEABLE, PROP_DATACHOICENAME, PROP_DISPLAYPROPERTIES, PROP_DOCUMENTLINKS, PROP_FILEPATTERN, PROP_GEOLOCATION, PROP_ICON, PROP_NAME, PROP_POLLINFO, PROP_RESOLVERURL, PROP_SERVICE_HTTP, PROP_SUBPROPERTIES, PROP_TIMELABELS, PROP_TITLE |
| Constructor Summary | |
|---|---|
DescriptorDataSource()
Default constructor. |
|
DescriptorDataSource(String name,
String description)
Construct a DatasourceDescriptor with the given name and description. |
|
DescriptorDataSource(String name,
String description,
List descriptors)
Construct a DatasourceDescriptor with the given name and description and populate it with the initial list of descriptors. |
|
| Method Summary | |
|---|---|
void |
addDescriptor(DerivedDataDescriptor descriptor)
Add a new descriptor to the list. |
boolean |
contains(DerivedDataDescriptor descriptor)
See if the descriptor is already in the list. |
List |
getDataChoices()
Get the list of DataChoice-s held by the descriptors
of this object. |
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Override the superclass method to return null, since this does not have any data. |
List |
getDescriptors()
Get the descriptors held by this object. |
void |
removeDescriptor(DerivedDataDescriptor descriptor)
Remove a new descriptor to the list. |
void |
setDescriptors(List d)
Set the list of descriptors that this object holds. |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.data.DataSource |
|---|
getUniqueId |
| Constructor Detail |
|---|
public DescriptorDataSource()
public DescriptorDataSource(String name,
String description)
name - name of thisdescription - description of what this is.
public DescriptorDataSource(String name,
String description,
List descriptors)
name - name of thisdescription - description of what this is.descriptors - initial list of DerivedDataDescriptors.| Method Detail |
|---|
public void addDescriptor(DerivedDataDescriptor descriptor)
descriptor - object to add to the listpublic void removeDescriptor(DerivedDataDescriptor descriptor)
descriptor - object to remove from the listpublic List getDescriptors()
public void setDescriptors(List d)
d - list of descriptors. No check is made on whether this
is a list of descriptors or not.
protected Data getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
getDataInner in class DataSourceImpldataChoice - The data choice that identifies the requested
data.category - The data category of the request.dataSelection - Identifies any subsetting of the data.requestProperties - Hashtable that holds any detailed request
properties.
RemoteException - Java RMI problem
VisADException - VisAD problempublic List getDataChoices()
DataChoice-s held by the descriptors
of this object.
getDataChoices in interface DataSourcegetDataChoices in class DataSourceImplDataChoice-spublic boolean contains(DerivedDataDescriptor descriptor)
descriptor - descriptor in question.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||