public class DataSourceDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
doesMultiples
flag for accepting multiple data references
|
protected java.lang.Class |
factoryClass
The factory class
|
protected boolean |
fileSelection
flag for fileseletion
|
protected java.lang.String |
id
Id for this DataSourceDescriptor
|
protected java.lang.String |
label
label to display
|
protected DataManager |
manager
The data manager
|
protected java.lang.String |
patterns
pattern string
|
protected java.util.Hashtable |
properties
Properties table
|
Constructor and Description |
---|
DataSourceDescriptor()
Default constructor; does nothing
|
DataSourceDescriptor(java.lang.String id,
java.lang.String label,
DataManager manager,
java.lang.Class factory,
java.lang.String patterns,
boolean fileSelection,
boolean doesMultiples,
java.util.Hashtable props)
Create a DataSourceDescriptor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
See if the object in question is equal to this DataSourceDescriptor
|
DataContext |
getDataContext()
Get the context for this data.
|
DataManager |
getDataManager()
Get the DataManager for this DataSourceDescriptor
|
boolean |
getDoesMultiples()
Set the does multiples property
|
java.lang.Class |
getFactoryClass()
Get the factory class for this DatSourceDescriptor
|
javax.swing.filechooser.FileFilter |
getFilePatternFilter()
Get the file pattern filter for this Descriptor
|
boolean |
getFileSelection()
Get the file selection property
|
java.lang.String |
getId()
Get the id for this DataSourceDescriptor.
|
java.lang.String |
getLabel()
Get the label for this DataSourceDescriptor
|
java.lang.String |
getNcmlTemplate()
Get the NcmlTemplate property.
|
PatternFileFilter |
getPatternFileFilter()
Get the file pattern filter for this Descriptor
|
java.lang.String |
getPatterns()
Get the Patterns property.
|
java.util.Hashtable |
getProperties()
Get any properties associated with this
|
java.lang.String |
getProperty(java.lang.String property)
Get the property.
|
boolean |
getStandalone()
Get the Standalone property.
|
int |
hashCode()
Return the hashcode for this DataSourceDescription
8
|
void |
setDataManager(DataManager m)
Set the DataManager for this DataSourceDescriptor
|
void |
setDoesMultiples(boolean value)
Set the does multiples property
|
void |
setFileSelection(boolean fileSelection)
Set the file selection property
|
void |
setId(java.lang.String id)
Set the id for this DataSourceDescriptor.
|
void |
setLabel(java.lang.String label)
Get the label for this DataSourceDescriptor
|
void |
setNcmlTemplate(java.lang.String value)
Set the NcmlTemplate property.
|
void |
setPatterns(java.lang.String value)
Set the Patterns property.
|
void |
setProperties(java.util.Hashtable p)
Set the properties.
|
void |
setStandalone(boolean value)
Set the Standalone property.
|
java.lang.String |
toString()
Return a string representation of this DataSourceDescriptor
8
|
protected java.lang.String id
protected DataManager manager
protected java.lang.Class factoryClass
protected java.util.Hashtable properties
protected java.lang.String label
protected boolean fileSelection
protected boolean doesMultiples
protected java.lang.String patterns
public DataSourceDescriptor()
public DataSourceDescriptor(java.lang.String id, java.lang.String label, DataManager manager, java.lang.Class factory, java.lang.String patterns, boolean fileSelection, boolean doesMultiples, java.util.Hashtable props)
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 propertiespublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object in question
8public DataContext getDataContext()
public java.lang.String getId()
public void setId(java.lang.String id)
id
- new idpublic void setDoesMultiples(boolean value)
value
- true to handle, false to notpublic boolean getDoesMultiples()
public DataManager getDataManager()
public void setDataManager(DataManager m)
m
- The DataManagerpublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- The labelpublic boolean getFileSelection()
public void setFileSelection(boolean fileSelection)
fileSelection
- true to set up for file selectionpublic java.lang.Class getFactoryClass()
public java.util.Hashtable getProperties()
null
public void setProperties(java.util.Hashtable p)
p
- new propertiespublic java.lang.String getProperty(java.lang.String property)
property
- key for propertypublic java.lang.String toString()
toString
in class java.lang.Object
public javax.swing.filechooser.FileFilter getFilePatternFilter()
public PatternFileFilter getPatternFileFilter()
public void setPatterns(java.lang.String value)
value
- The new value for Patternspublic java.lang.String getPatterns()
public void setNcmlTemplate(java.lang.String value)
value
- The new value for NcmlTemplatepublic java.lang.String getNcmlTemplate()
public void setStandalone(boolean value)
value
- The new value for Standalonepublic boolean getStandalone()