|
|||||||||
| 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.SuppressibleTermgroupsFilter
public class SuppressibleTermgroupsFilter
Computes which content is suppressible and (optionally) removes it.
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
default_configuration, init_cui, subset_content, user_configuration, warnings |
| Constructor Summary | |
|---|---|
SuppressibleTermgroupsFilter()
Instantiates an empty SuppressibleTermgroupsFilter. |
|
| Method Summary | |
|---|---|
protected void |
addSuppressibleTermgroup(SourceTermType tg)
Adds a SourceTermType to the list of suppressible termgroups. |
void |
applyChanges(Concept concept)
Manipulates data in the Concept, but does not remove any data
from the concept. |
void |
applySelections(Concept concept)
Sets the suppressibility of atoms and removes suppressible content if advanced options indicate to do so. |
void |
clearConfirmDefaultSuppressibleTermgroups()
Clears the list of SourceTermTypes that have been confirmed
by the user to be suppressible. |
protected void |
clearSuppressibleTermgroups()
Clears the list of suppressible SourceTermTypes. |
Color |
getColor()
Returns the Color that should be used to display
the name. |
String |
getConfigurationDetails()
Returns configuration details for use in mmsys.log. |
List |
getConfirmDefaultSuppressibleTermgroups()
Returns a list of SourceTermTypes that have been
confirmed by the user via a dialog box to be suppressible. |
List |
getDefaultSuppressibleTermgroups()
Returns an List containing all
SourceTermTypes to be suppressed from the default termgroup list. |
JPanel |
getHelpPanel()
Returns a help JPanel. |
String |
getName()
Returns the filter name. |
JPanel |
getPanel()
Returns the GUI panel that will display the filter's screen as one of the tabs on the main GUI window. |
Properties |
getProperties()
Returns filter state. |
int |
getRowForTermgroup(SourceTermType tg)
Maps a SourceTermType to a row number in the table. |
List |
getSuppressibleTermgroups()
Returns the List containing all
suppressible SourceTermTypes. |
SortableJTable |
getSuppressibleTermgroupsTable()
Returns the table that includes SourceTermTypes
with the suppressible termgroups highlighted. |
String |
getTabDescription()
Returns the description. |
SourceTermType |
getTermgroupAtRow(int tg)
Maps a row number to the SourceTermType. |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
boolean |
isEfficientEnabled()
Indicates if Filter can use the efficient mode during
the "Initialize Cuis" phase of the subsetting process. |
boolean |
removeEditorSuppressibleData()
Indicates whether the Remove Editor Assigned Suppressible Data option has been chosen on the Advanced Suppressibility Options panel. |
boolean |
removeObsoleteData()
Indicates whether the Remove Obsolete Data option has been chosen on the Advanced Suppressibility Options panel. |
boolean |
removeSourceTtySuppressibleData()
Indicates whether the Remove Source Term Type Suppressible Data option has been chosen on the Advanced Suppressibility Options panel. |
boolean |
removeSuppressibleData()
Indicates whether the Remove Suppressible Data option has been chosen on the Advanced Suppressibility Options panel. |
protected void |
removeSuppressibleTermgroup(SourceTermType tg)
Removes a SourceTermType from the list of suppressible termgroups. |
void |
resetToDefaults()
Resets state to defaults. |
void |
setConfiguration(ApplicationConfiguration c)
Sets the ApplicationConfiguration. |
void |
setPanelSelections()
Selects rows on the suppressiblity table for rows of termgroups that should be suppressed. |
void |
setProperties(Properties p)
Sets filter state. |
void |
setRemoveEditorSuppressibleData(boolean b)
Sets the flag indicating whether or not editor assigned suppressible data will be removed from the subset. |
void |
setRemoveObsoleteData(boolean b)
Sets the flag indicating whether or not obsolete data will be removed from the subset. |
void |
setRemoveSourceTtySuppressibleData(boolean b)
Sets the flag indicating whether or not source term type suppressible data will be removed from the subset. |
void |
setRemoveSuppressibleData(boolean b)
Sets the flag indicating whether or not suppressible data will be removed from the subset. |
void |
setSuppressibleTermgroups(List stgs)
Sets the suppressible termgroups list with the one provided. |
void |
showOptions()
Shows an advanced options GUI to the user. |
void |
sourcesToRemoveChanged(SourcesToRemoveEvent e)
Resets the suppressiblity table when the user tabs between filters. |
| 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, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, validate |
| Methods inherited from interface gov.nih.nlm.mms.Configurable |
|---|
setConfiguration |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface gov.nih.nlm.mms.SubsetListener |
|---|
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList |
| 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, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, validate |
| Methods inherited from interface gov.nih.nlm.mms.Configurable |
|---|
setConfiguration |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface gov.nih.nlm.mms.SubsetListener |
|---|
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList |
| Constructor Detail |
|---|
public SuppressibleTermgroupsFilter()
SuppressibleTermgroupsFilter.
| Method Detail |
|---|
public JPanel getPanel()
getPanel in interface GUIConfigurableJPanel that displays graphical interface for the filterpublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic String getTabDescription()
getTabDescription in interface GUIConfigurablepublic void resetToDefaults()
resetToDefaults in interface Configurablepublic void showOptions()
showOptions in interface GUIConfigurableshowOptions in class AbstractFilterpublic boolean hasAdvancedOptions()
hasAdvancedOptions in interface GUIConfigurablehasAdvancedOptions in class AbstractFiltertrue if so; false otherwisepublic JPanel getHelpPanel()
JPanel.
getHelpPanel in interface GUIConfigurablegetHelpPanel in class AbstractFilterJPanelpublic void setConfiguration(ApplicationConfiguration c)
ApplicationConfiguration. Used for "default" selections.
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - the ApplicationConfigurationpublic Properties getProperties()
getProperties in interface ConfigurablePropertiespublic void setProperties(Properties p)
setProperties in interface Configurablep - Properties representing filter statepublic void applyChanges(Concept concept)
Concept, but does not remove any data
from the concept.
applyChanges in interface ConceptManipulatorconcept - Conceptpublic void applySelections(Concept concept)
applySelections in interface ConceptContentSelectorconcept - the current Conceptpublic String getName()
getName in interface GUIConfigurablepublic String getConfigurationDetails()
mmsys.log.
getConfigurationDetails in interface Configurablemmsys.logprotected void clearSuppressibleTermgroups()
SourceTermTypes.
protected void addSuppressibleTermgroup(SourceTermType tg)
SourceTermType to the list of suppressible termgroups.
tg - the SourceTermTypeprotected void removeSuppressibleTermgroup(SourceTermType tg)
SourceTermType from the list of suppressible termgroups.
tg - SourceTermTypepublic List getDefaultSuppressibleTermgroups()
List containing all
SourceTermTypes to be suppressed from the default termgroup list.
List of suppressed termgroupspublic List getConfirmDefaultSuppressibleTermgroups()
SourceTermTypes that have been
confirmed by the user via a dialog box to be suppressible.
Prevents user from being queried twice about a termgroup's
suppressiblity.
List of suppressed termgroupspublic void clearConfirmDefaultSuppressibleTermgroups()
SourceTermTypes that have been confirmed
by the user to be suppressible.
public void setSuppressibleTermgroups(List stgs)
stgs - the List of SourceTermTypespublic List getSuppressibleTermgroups()
List containing all
suppressible SourceTermTypes.
List of suppressible termgroupspublic boolean removeSuppressibleData()
true if so, false otherwisepublic void setRemoveSuppressibleData(boolean b)
b - the flag indicating whether or not suppressible data will be removed
from the subsetpublic boolean removeSourceTtySuppressibleData()
true if so, false otherwisepublic void setRemoveSourceTtySuppressibleData(boolean b)
b - the flag indicating whether or not source term type suppressible data will be removed
from the subsetpublic boolean removeEditorSuppressibleData()
true if so, false otherwisepublic void setRemoveEditorSuppressibleData(boolean b)
b - the flag indicating whether or not editor assigned suppressible data will be removed
from the subsetpublic SortableJTable getSuppressibleTermgroupsTable()
SourceTermTypes
with the suppressible termgroups highlighted.
SortableJTablepublic boolean removeObsoleteData()
true if so, false otherwisepublic void setRemoveObsoleteData(boolean b)
b - the flag indicating whether or not obsolete data will be removed
from the subsetpublic void sourcesToRemoveChanged(SourcesToRemoveEvent e)
sourcesToRemoveChanged in interface SourcesToRemoveListenere - SourcesToRemoveEventpublic int getRowForTermgroup(SourceTermType tg)
SourceTermType to a row number in the table.
This is necessary because only SourceTermTypes
from sources that are not to be excluded will be visible
in the table.
tg - the SourceTermType
int row number of termgroup in table
-1 if termgroup is to be excludedpublic SourceTermType getTermgroupAtRow(int tg)
SourceTermType.
Adjusts for the SourceTermTypes
that are not currently visible in the suppressibility table
because their sources are to be excluded.
tg - int row in the suppressibility table
SourceTermType located at that row in the tablepublic 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||