|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.filters.AbstractFilter
gov.nih.nlm.mms.filters.AttributeTypesToRemoveFilter
public class AttributeTypesToRemoveFilter
This Filter removes all CUIs with a given attribute type.
| Field Summary | |
|---|---|
protected SortableJTable |
attribute_type_table
|
protected static ArrayList |
attribute_types
|
protected List |
attribute_types_to_remove
|
protected ApplicationConfiguration |
default_config
|
protected AttributeTypesToRemoveListSelectionListener |
listener
|
protected List |
sources_to_remove
|
protected UserConfiguration |
user_config
|
| Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
default_configuration, init_cui, subset_content, user_configuration, warnings |
| Constructor Summary | |
|---|---|
AttributeTypesToRemoveFilter()
Every filter is required to have a no-arg constructor. |
|
| Method Summary | |
|---|---|
void |
addAttributeTypeToRemove(AttType attribute_type)
This method adds a AttType to the data structure that holds
the list of attribute types to be excluded. |
void |
applySelections(Concept concept)
Method which determines if a given CUI will be removed from the release. |
void |
clearAttributeTypesToRemove()
This method clears the data structure that holds the list of attribute types to be excluded. |
AttType |
getAttributeTypeAtRow(int a)
This method compensates for the AttTypes with sources to be
excluded that are therefore not displayed in the attribute type table. |
List |
getAttributeTypes()
This method returns the List containing all attribute types. |
List |
getAttributeTypes(Source s)
This method returns the List containing all
AttTypes that share the same source. |
Set |
getAttributeTypesAsSet(Source s)
This method returns the Set containing all
AttTypes that share the same Source. |
List |
getAttributeTypesToRemove()
This method returns the List containing all
AttributeTypes to be excluded. |
boolean |
getAutomaticSelection()
This method is used by the AttributeTypesToRemoveListSelectionListener
and indicates whether the automatic selection option on the MetamorphoSys Options
dialog box has been chosen. |
Color |
getColor()
Method indicates the Color that should be used to display
the name. |
String |
getConfigurationDetails()
Method returns a list of the attribute types to be excluded for display in the configuration file. |
JPanel |
getHelpPanel()
Method provides a JPanel that will be added to the main GUI
help menu to allow the user to consult a help window
that is particular to this filter. |
protected NoEditTableModel |
getModel()
|
String |
getName()
Returns the name. |
JPanel |
getPanel()
Method provides the GUI panel that will display the filter's screen as one of the tabs on the main GUI window. |
Properties |
getProperties()
Method returns all properties specific to the filter. |
int |
getRowForAttributeType(AttType at)
This method compensates for the AttTypes with sources to be
excluded that are therefore not displayed in the attribute type table. |
String |
getTabDescription()
Method provides the description of the filter's screen and includes instructions on use. |
boolean |
isEfficientEnabled()
Indicates if Filter can use the efficient mode during
the "Initialize Cuis" phase of the subsetting process. |
void |
removeAttributeTypeToRemove(AttType attribute_type)
This method removes a AttType from the data structure that
holds the list of attribute_types to be excluded. |
boolean |
removeSelectedAttributes()
This method indicates whether the selections represent attributes to be excluded or attributes to be kept. |
void |
resetToDefaults()
Provides functionality for a "Reset To Defaults" Menu item. |
void |
setAttributeTypesToRemove(List atr)
This method replaces the List of AttTypes to be removed
with the one provided. |
void |
setConfiguration(ApplicationConfiguration c)
Method provides the filter with values from the default properties file. |
void |
setConfiguration(UserConfiguration c)
Method provides the filter with values from the user configuration file. |
void |
setPanelSelections()
This method is responsible for selecting the rows of the table based on the properties for this filter. |
void |
setProperties(Properties props)
Method provides the filter with all properties specific to the filter. |
void |
setRemoveSelectedAttributes(boolean b)
This method sets whether or not the selections represent attributes to be excluded or attributes to be kept. |
void |
sourcesToRemoveChanged(SourcesToRemoveEvent e)
This method is called when there is a change to the selections on the sources to exclude tab. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nih.nlm.mms.filters.Filter |
|---|
applyFilter, getWarnings |
| Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable |
|---|
addDataChangeListener, getGUIConfigurableForValidationFailure, getValidationErrors, getValidationWarnings, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, showOptions, validate |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface gov.nih.nlm.mms.SubsetListener |
|---|
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList |
| Field Detail |
|---|
protected ApplicationConfiguration default_config
protected UserConfiguration user_config
protected List attribute_types_to_remove
protected static ArrayList attribute_types
protected SortableJTable attribute_type_table
protected AttributeTypesToRemoveListSelectionListener listener
protected List sources_to_remove
| Constructor Detail |
|---|
public AttributeTypesToRemoveFilter()
| Method Detail |
|---|
public JPanel getPanel()
setConfiguration(ApplicationConfiguration) and
setProperties(Properties). There is no data
change as a result of calling this method.
getPanel in interface GUIConfigurableJPanel that displays graphical interface
for the filterpublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic String getTabDescription()
getTabDescription in interface GUIConfigurableString text of instructions for use of panelprotected NoEditTableModel getModel()
public void resetToDefaults()
resetToDefaults in interface Configurablepublic JPanel getHelpPanel()
JPanel that will be added to the main GUI
help menu to allow the user to consult a help window
that is particular to this filter.
getHelpPanel in interface GUIConfigurablegetHelpPanel in class AbstractFilterJPanel to be added to the Help menupublic void setConfiguration(ApplicationConfiguration c)
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - ApplicationConfiguration default valuespublic Properties getProperties()
getProperties in interface ConfigurableProperties only those directly related to the filter
They will start with the filter's class name which will be
concatenated to the name of the property.
Filter.property_namepublic void setProperties(Properties props)
setProperties in interface Configurableprops - Propertiespublic void applySelections(Concept concept)
applySelections in interface ConceptContentSelectorconcept - Conceptpublic String getName()
getName in interface GUIConfigurableStringpublic String getConfigurationDetails()
getConfigurationDetails in interface ConfigurableStringpublic boolean removeSelectedAttributes()
true selected attributes will be excluded
false selected attributes will be keptpublic void setRemoveSelectedAttributes(boolean b)
b - booleanpublic List getAttributeTypes()
List containing all attribute types.
List of all attribute typespublic List getAttributeTypes(Source s)
List containing all
AttTypes that share the same source.
s - Source
List of AttTypes sharing given Sourcepublic Set getAttributeTypesAsSet(Source s)
Set containing all
AttTypes that share the same Source.
s - Source
Set of AttTypes sharing given Sourcepublic void clearAttributeTypesToRemove()
public void addAttributeTypeToRemove(AttType attribute_type)
AttType to the data structure that holds
the list of attribute types to be excluded.
attribute_type - AttType to be excluded from subsetpublic void removeAttributeTypeToRemove(AttType attribute_type)
AttType from the data structure that
holds the list of attribute_types to be excluded.
attribute_type - AttType to be included in subsetpublic List getAttributeTypesToRemove()
List containing all
AttributeTypes to be excluded.
Listpublic void setAttributeTypesToRemove(List atr)
List of AttTypes to be removed
with the one provided.
atr - List of AttTypespublic boolean getAutomaticSelection()
AttributeTypesToRemoveListSelectionListener
and indicates whether the automatic selection option on the MetamorphoSys Options
dialog box has been chosen. Automatic selection allows the application
to select attribute types sharing the same source
without prompting the user.
true
falsepublic void setConfiguration(UserConfiguration c)
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - UserConfigurationpublic int getRowForAttributeType(AttType at)
AttTypes with sources to be
excluded that are therefore not displayed in the attribute type table.
at - AttType
AttType is displayedpublic AttType getAttributeTypeAtRow(int a)
AttTypes with sources to be
excluded that are therefore not displayed in the attribute type table.
a - int row number where AttType is requested
AttType at given rowpublic void sourcesToRemoveChanged(SourcesToRemoveEvent e)
sourcesToRemoveChanged in interface SourcesToRemoveListenere - SourcesToRemoveEventpublic Color getColor()
Color that should be used to display
the name.
getColor in interface GUIConfigurablegetColor in class AbstractFilterColorpublic boolean isEfficientEnabled()
Filter can use the efficient mode during
the "Initialize Cuis" phase of the subsetting process.
The efficient mode reads only MRCONSO and MRSTY during the
"Initialize Cuis" phase.
isEfficientEnabled in interface Filtertrue if efficient mode is acceptable
false if efficient mode is not acceptable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||