|
|||||||||
| 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.RelationshipTypesToRemoveFilter
public class RelationshipTypesToRemoveFilter
This Filter removes all CUIs with a given relationship type.
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
default_configuration, init_cui, subset_content, user_configuration, warnings |
| Constructor Summary | |
|---|---|
RelationshipTypesToRemoveFilter()
Every filter is required to have a no-arg constructor. |
|
| Method Summary | |
|---|---|
void |
addRelationshipTypeToRemove(RelType relationship_type)
This method adds a RelType to the data structure that holds
the list of relationship types to be excluded. |
void |
applySelections(Concept concept)
Method which determines if a given CUI will be removed from the release. |
void |
clearRelationshipTypesToRemove()
This method clears the data structure that holds the list of relationship types to be excluded. |
boolean |
getAutomaticSelection()
This method indicates whether the automatic_selection option 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 relationship 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. |
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. |
RelType |
getRelationshipTypeAtRow(int r)
This method compensates for the RelTypes with sources to be
excluded that are therefore not displayed in the attribute type table. |
List |
getRelationshipTypes()
This method returns the List containing all RelTypes. |
List |
getRelationshipTypes(Source s)
This method returns the List containing all
RelTypes that share the same Source. |
List |
getRelationshipTypesToRemove()
This method returns the List containing all
RelTypes to be excluded. |
Set |
getRelTypesAsSet(Source s)
This method returns the Set containing all
RelTypes that share the same Source. |
int |
getRowForRelationshipType(RelType rt)
This method compensates for the RelTypes with sources to be
excluded that are therefore not displayed in the relationship 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. |
boolean |
isRelationshipTypeToRemove(RelType relationship_type)
This method returns true if the given RelType
is on the list of those to be exluded from the subset. |
void |
removeRelationshipTypeToRemove(RelType relationship_type)
This method removes a relationship_type from the data structure that holds the list of relationship_types to be excluded. |
boolean |
removeSelectedRelationships()
This method indicates whether the selections represent relationship types to be excluded or relationship types to be kept. |
void |
resetToDefaults()
Method allows the user to reset the filter's settings to defaults. |
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 |
setRelationshipTypesToRemove(List rtr)
This method replaces the list of RelTypes to exclude with
the one provided. |
void |
setRemoveSelectedRelationships(boolean b)
This method sets whether or not the selections represent relationship types to be excluded or relationship types 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 |
| Constructor Detail |
|---|
public RelationshipTypesToRemoveFilter()
| 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 panelpublic 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 Options menupublic void setConfiguration(ApplicationConfiguration c)
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - ApplicationConfiguration default valuespublic Properties getProperties()
getProperties in interface ConfigurableProperties only those directly restyed 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 List getRelationshipTypes()
List containing all RelTypes.
List of RelTypespublic List getRelationshipTypes(Source s)
List containing all
RelTypes that share the same Source.
s - Source
List of RelTypespublic Set getRelTypesAsSet(Source s)
Set containing all
RelTypes that share the same Source.
s - Source
Set of RelTypespublic void clearRelationshipTypesToRemove()
public void addRelationshipTypeToRemove(RelType relationship_type)
RelType to the data structure that holds
the list of relationship types to be excluded.
relationship_type - RelTypepublic void removeRelationshipTypeToRemove(RelType relationship_type)
relationship_type - RelTypepublic boolean isRelationshipTypeToRemove(RelType relationship_type)
RelType
is on the list of those to be exluded from the subset.
relationship_type - RelType
booleanpublic List getRelationshipTypesToRemove()
List containing all
RelTypes to be excluded.
Listpublic void setRelationshipTypesToRemove(List rtr)
RelTypes to exclude with
the one provided.
rtr - List of RelTypespublic boolean removeSelectedRelationships()
true selected relationship types will be excluded
false selected relationship types will be keptpublic void setRemoveSelectedRelationships(boolean b)
b - booleanpublic boolean getAutomaticSelection()
booleantrue
falsepublic void setConfiguration(UserConfiguration c)
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - UserConfigurationpublic int getRowForRelationshipType(RelType rt)
RelTypes with sources to be
excluded that are therefore not displayed in the relationship type table.
rt - RelType
RelType is displayedpublic RelType getRelationshipTypeAtRow(int r)
RelTypes with sources to be
excluded that are therefore not displayed in the attribute type table.
r - int row number where RelType is requested
RelType 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 | ||||||||