Package ucar.unidata.data
Class DataSourceDescriptor
java.lang.Object
ucar.unidata.data.DataSourceDescriptor
A class to hold the descriptive metadata about a DataSource
- Version:
- $Revision: 1.18 $
- Author:
- IDV development team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
flag for accepting multiple data referencesprotected Class
The factory classprotected boolean
flag for fileseletionprotected String
Id for this DataSourceDescriptorprotected String
label to displayprotected DataManager
The data managerprotected String
pattern stringprotected Hashtable
Properties table -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor; does nothingDataSourceDescriptor
(String id, String label, DataManager manager, Class factory, String patterns, boolean fileSelection, boolean doesMultiples, Hashtable props) Create a DataSourceDescriptor -
Method Summary
Modifier and TypeMethodDescriptionboolean
See if the object in question is equal to this DataSourceDescriptorGet the context for this data.Get the DataManager for this DataSourceDescriptorboolean
Set the does multiples propertyGet the factory class for this DatSourceDescriptorGet the file pattern filter for this Descriptorboolean
Get the file selection propertygetId()
Get the id for this DataSourceDescriptor.getLabel()
Get the label for this DataSourceDescriptorGet the NcmlTemplate property.Get the file pattern filter for this DescriptorGet the Patterns property.Get any properties associated with thisgetProperty
(String property) Get the property.boolean
Get the Standalone property.int
hashCode()
Return the hashcode for this DataSourceDescription 8void
Set the DataManager for this DataSourceDescriptorvoid
setDoesMultiples
(boolean value) Set the does multiples propertyvoid
setFileSelection
(boolean fileSelection) Set the file selection propertyvoid
Set the id for this DataSourceDescriptor.void
Get the label for this DataSourceDescriptorvoid
setNcmlTemplate
(String value) Set the NcmlTemplate property.void
setPatterns
(String value) Set the Patterns property.void
Set the properties.void
setStandalone
(boolean value) Set the Standalone property.toString()
Return a string representation of this DataSourceDescriptor 8
-
Field Details
-
id
Id for this DataSourceDescriptor -
manager
The data manager -
factoryClass
The factory class -
properties
Properties table -
label
label to display -
fileSelection
protected boolean fileSelectionflag for fileseletion -
doesMultiples
protected boolean doesMultiplesflag for accepting multiple data references -
patterns
pattern string
-
-
Constructor Details
-
DataSourceDescriptor
public DataSourceDescriptor()Default constructor; does nothing -
DataSourceDescriptor
public DataSourceDescriptor(String id, String label, DataManager manager, Class factory, String patterns, boolean fileSelection, boolean doesMultiples, Hashtable props) Create a DataSourceDescriptor- Parameters:
id
- id for thislabel
- text for a labelmanager
- Associated DataManagerfactory
- the factory classpatterns
- set of patternsfileSelection
- true if this supports file selectiondoesMultiples
- true if this handles multiple idsprops
- extra properties
-
-
Method Details
-
hashCode
public int hashCode()Return the hashcode for this DataSourceDescription 8 -
equals
See if the object in question is equal to this DataSourceDescriptor -
getDataContext
Get the context for this data.- Returns:
- the data context
-
getId
Get the id for this DataSourceDescriptor.- Returns:
- the ID
-
setId
Set the id for this DataSourceDescriptor.- Parameters:
id
- new id
-
setDoesMultiples
public void setDoesMultiples(boolean value) Set the does multiples property- Parameters:
value
- true to handle, false to not
-
getDoesMultiples
public boolean getDoesMultiples()Set the does multiples property- Returns:
- true if does multiples
-
getDataManager
Get the DataManager for this DataSourceDescriptor- Returns:
- the DataManager
-
setDataManager
Set the DataManager for this DataSourceDescriptor- Parameters:
m
- The DataManager
-
getLabel
Get the label for this DataSourceDescriptor- Returns:
- the label
-
setLabel
Get the label for this DataSourceDescriptor- Parameters:
label
- The label
-
getFileSelection
public boolean getFileSelection()Get the file selection property- Returns:
- true if this is a source for file data
-
setFileSelection
public void setFileSelection(boolean fileSelection) Set the file selection property- Parameters:
fileSelection
- true to set up for file selection
-
getFactoryClass
Get the factory class for this DatSourceDescriptor- Returns:
- the class
-
getProperties
Get any properties associated with this- Returns:
- the properties or
null
-
setProperties
Set the properties.- Parameters:
p
- new properties
-
getProperty
Get the property.- Parameters:
property
- key for property- Returns:
- property value
-
toString
Return a string representation of this DataSourceDescriptor 8 -
getFilePatternFilter
Get the file pattern filter for this Descriptor- Returns:
- the FileFilter
-
getPatternFileFilter
Get the file pattern filter for this Descriptor- Returns:
- the FileFilter
-
setPatterns
Set the Patterns property.- Parameters:
value
- The new value for Patterns
-
getPatterns
Get the Patterns property.- Returns:
- The Patterns
-
setNcmlTemplate
Set the NcmlTemplate property.- Parameters:
value
- The new value for NcmlTemplate
-
getNcmlTemplate
Get the NcmlTemplate property.- Returns:
- The NcmlTemplate
-
setStandalone
public void setStandalone(boolean value) Set the Standalone property.- Parameters:
value
- The new value for Standalone
-
getStandalone
public boolean getStandalone()Get the Standalone property.- Returns:
- The Standalone
-