gov.nih.nlm.mms
Interface Configurable

All Known Subinterfaces:
ConceptContentSelector, ConceptManipulator, ConceptSelector, ConceptView, Filter, Finder, GUIConfigurable, MetamorphoSysInputStream, MetamorphoSysOutputStream
All Known Implementing Classes:
AbstractConceptView, AbstractFilter, AbstractFinder, AttributeTypesToRemoveFilter, ContentViewFilter, LanguagesToRemoveFilter, OriginalMRMetamorphoSysInputStream, OriginalMRMetamorphoSysOutputStream, PrecedenceFilter, RelationshipTypesToRemoveFilter, RemoveByTermgroupFilter, RichMRMetamorphoSysInputStream, RichMRMetamorphoSysOutputStream, RxNormFilter, SemanticTypesToRemoveFilter, SourcesToRemoveFilter, SuppressibleTermgroupsFilter

public interface Configurable

Generically represents an object that can be configured by the MetamorphoSys application.

Author:
Deborah Shapiro

Method Summary
 String getConfigurationDetails()
          Method returns a String detailing the user selections on the filter.
 Properties getProperties()
          Returns the Properties representing the configuration choices.
 void resetToDefaults()
          Resets the configuration back to default values.
 void setConfiguration(ApplicationConfiguration c)
          Method provides the filter with values from the default configuration file.
 void setConfiguration(UserConfiguration c)
          Method provides the filter with values from the user configuration file.
 void setProperties(Properties p)
          Sets the Properties representing the configuration choices.
 

Method Detail

setConfiguration

public void setConfiguration(ApplicationConfiguration c)
Method provides the filter with values from the default configuration file.

Parameters:
c - ApplicationConfiguration

setConfiguration

public void setConfiguration(UserConfiguration c)
Method provides the filter with values from the user configuration file.

Parameters:
c - UserConfiguration

getConfigurationDetails

public String getConfigurationDetails()
Method returns a String detailing the user selections on the filter. This String will be displayed in the mmsys.log at the completion of subsetting so it should be formatted to be easily read.

Returns:
String of data for log

getProperties

public Properties getProperties()
Returns the Properties representing the configuration choices.

Returns:
the Properties representing the configuration choices

setProperties

public void setProperties(Properties p)
Sets the Properties representing the configuration choices.

Parameters:
p - the Properties representing the configuration choices

resetToDefaults

public void resetToDefaults()
Resets the configuration back to default values. When used with a GUI this method should change the data model behind the GUI and allow setPanelSelections to actually update the GUI.



Copyright ©2005