|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.io.OriginalMRFilesConceptInputStream
gov.nih.nlm.umls.io.OriginalMRMetathesaurusInputStream
gov.nih.nlm.mms.OriginalMRMetamorphoSysInputStream
public class OriginalMRMetamorphoSysInputStream
Represents an MetamorphoSysInputStream containing Original Release
Format MR files in a directory.
| Field Summary | |
|---|---|
protected CuiList |
cui_list
|
protected boolean |
data_changed
|
protected ApplicationConfiguration |
default_configuration
|
protected boolean |
enable_efficient
|
protected boolean |
ignore_events
|
protected boolean |
init_cui
|
protected List<DataChangeListener> |
listeners
|
protected boolean |
subset_content
|
protected UserConfiguration |
user_configuration
|
| Fields inherited from class gov.nih.nlm.umls.io.OriginalMRMetathesaurusInputStream |
|---|
current_index, index_counter, index_lines, mrcui_source, mrsab_source, mrx_sources |
| Fields inherited from class gov.nih.nlm.umls.io.OriginalMRFilesConceptInputStream |
|---|
file_names, mr_dir, mratx_source, mrcoc_source, mrcon_counter, mrcon_lines, mrcon_source, mrcxt_source, mrdef_source, mrlo_source, mrrel_source, mrsat_source, mrso_source, mrsty_source, null_value, this_concept, tokens, warnings |
| Constructor Summary | |
|---|---|
OriginalMRMetamorphoSysInputStream()
Instantiates an empty OriginalMRMetamorphoSysInputStream. |
|
| Method Summary | |
|---|---|
void |
addDataChangeListener(DataChangeListener dcl)
Adds a DataChangeListener that will be notified every time a
fireDataChanged() call is made. |
void |
addValidationError(String validation_error)
Adds a validation error to the list of errors. |
void |
addValidationWarning(String validation_warning)
Adds a validation warning to the list of warnings. |
void |
beginInitializeCuiList()
Informs SubsetListener that the Initialize Cui List phase is
starting. |
void |
beginSubsetContent()
Informs SubsetListener that the Subset Content phase is starting. |
void |
clearValidationErrors()
Clears the list of validation errors. |
void |
clearValidationWarnings()
Clears the list of validation warnings. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
void |
endInitializeCuiList()
Informs SubsetListener that the Initialize Cui List phase is
ending. |
void |
endSubsetContent()
Informs SubsetListener that the Subset Content phase is ending. |
protected void |
fireDataChanged()
Enables filters to inform listeners of data changed event. |
protected void |
fireNotUndoableDataChanged()
Enables filters to indicate that data has changed without notifying the listeners or making this change undoable. |
int |
getChooserType()
Indicates the type of file accepted by the JFileChooser. |
Color |
getColor()
Returns the Color that should be used to display the name. |
String |
getConfigurationDetails()
Returns a message for the log. |
GUIConfigurable |
getGUIConfigurableForValidationFailure()
Returns the GUIConfigurable whose tab should next be displayed
to allow the user to correct an error or warning. |
JPanel |
getHelpPanel()
Returns a JPanel that will be displayed when the user selects the
corresponding menu item from the Help menu and will provide the user with
detailed instructions on the tab's use. |
String |
getName()
Returns the short name for display purposes. |
JPanel |
getPanel()
Returns GUI panel that will be displayed on one of the tabs on the main GUI window. |
Properties |
getProperties()
Returns the current state of the input stream as a Properties
object. |
String |
getTabDescription()
Returns the description of the screen and includes instructions on use. |
String[] |
getValidationErrors()
Returns the messages indicating why validation failed. |
String[] |
getValidationWarnings()
Returns warnings that were indicated during validation. |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
boolean |
hasDataChanged()
Returns a boolean indicating whether or not the values on this gui have changed. |
boolean |
hasFullContextData()
Indicates whether this input source has full context data, such as that included in a MRCXT file. |
boolean |
isEfficientMode()
Returns the mode in which subsetting will be run. |
void |
open(String[] install_paths)
Opens all target files in the specified directory. |
Concept |
readConcept()
Returns a Concept containing data from the MR Files. |
void |
removeDataChangeListener(DataChangeListener dcl)
Removes a DataChangeListener so that it will no longer be notified
every time a fireDataChanged() call is made from this gui. |
void |
resetDataChanged()
Resets the "has data changed" flag to indicate that no changes have taken place since the last save. |
void |
resetToDefaults()
Resets the variables on a tab back to their default values. |
void |
setConfiguration(ApplicationConfiguration c)
Sets the ApplicationConfiguration used for the default settings. |
void |
setConfiguration(UserConfiguration user_configuration)
Sets the UserConfiguration. |
void |
setCuiList(CuiList cui_list)
Provides input stream access to the cui list. |
void |
setDataChanged(boolean b)
Sets the "has data changed" flag. |
void |
setEfficientMode(boolean efficient)
Sets the subsetting mode to efficient. |
void |
setPanelSelections()
Applies the input stream state to the GUI panel. |
void |
setProperties(Properties p)
Sets the current state of the input stream from a Properties
object. |
void |
showOptions()
Presents an advanced options GUI to the user. |
boolean |
validate()
Indicates whether or not the GUIConfigurable is valid. |
boolean |
validateSourcePath(String source_path)
Validates the source path. |
boolean |
validateSourcePaths(String[] source_paths)
Validates the source paths. |
boolean |
validateVersion(String source_path)
Attempts to determine the version of the release being used and validate it against the version from the properties file. |
boolean |
validateVersions(String[] paths)
For each source path it attempts to determine the version of the release being used and validate it against the version from the properties file. |
| Methods inherited from class gov.nih.nlm.umls.io.OriginalMRMetathesaurusInputStream |
|---|
close, getAmbiguousStringIdentifiers, getAmbiguousStringIdentifiersAsList, getAmbiguousTermIdentifiers, getAmbiguousTermIdentifiersAsList, getIndexProgress, getLineCounts, readIndexEntry, readReleaseMetadata |
| Methods inherited from class gov.nih.nlm.umls.io.OriginalMRFilesConceptInputStream |
|---|
getAtoms, getAttributes, getConceptProgress, getContexts, getCoocurrences, getDefinitions, getLocators, getMappings, getNullValue, getRelationships, getSemanticTypes, getWarnings, isEmptyValue, openSourceFile, setNullValue |
| 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.MetamorphoSysInputStream |
|---|
getConceptProgress, getIndexProgress |
| Methods inherited from interface gov.nih.nlm.umls.io.MetathesaurusInputStream |
|---|
getAmbiguousStringIdentifiers, getAmbiguousStringIdentifiersAsList, getAmbiguousTermIdentifiers, getAmbiguousTermIdentifiersAsList, readIndexEntry, readReleaseMetadata |
| Methods inherited from interface gov.nih.nlm.umls.io.ConceptInputStream |
|---|
close, getWarnings |
| Methods inherited from interface gov.nih.nlm.util.LocalNullValueSupport |
|---|
getNullValue, isEmptyValue, setNullValue |
| Field Detail |
|---|
protected UserConfiguration user_configuration
protected ApplicationConfiguration default_configuration
protected CuiList cui_list
protected boolean init_cui
protected boolean subset_content
protected boolean data_changed
protected boolean enable_efficient
protected boolean ignore_events
protected List<DataChangeListener> listeners
| Constructor Detail |
|---|
public OriginalMRMetamorphoSysInputStream()
OriginalMRMetamorphoSysInputStream.
| Method Detail |
|---|
public void setConfiguration(UserConfiguration user_configuration)
UserConfiguration.
setConfiguration in interface Configurableuser_configuration - the UserConfiguration.public void setConfiguration(ApplicationConfiguration c)
ApplicationConfiguration used for the default settings.
setConfiguration in interface Configurablec - ApplicationConfigurationpublic String getName()
getName in interface GUIConfigurablepublic String getConfigurationDetails()
getConfigurationDetails in interface Configurablepublic void setCuiList(CuiList cui_list)
setCuiList in interface SubsetListenercui_list - CuiList
public Concept readConcept()
throws IOException
Concept containing data from the MR Files.
readConcept in interface ConceptInputStreamreadConcept in class OriginalMRFilesConceptInputStreamConcept containing data from the MR Files.
IOException - if files could not be readpublic JPanel getPanel()
getPanel in interface GUIConfigurableJPanel that displays graphical interface for a tabpublic boolean hasDataChanged()
hasDataChanged in interface GUIConfigurableboolean true if data has changed
false otherwisepublic void setDataChanged(boolean b)
setDataChanged in interface GUIConfigurableb - boolean indicating whether or not the GUI
configuration has changedprotected void fireDataChanged()
protected void fireNotUndoableDataChanged()
public Properties getProperties()
Properties
object.
getProperties in interface ConfigurableProperties only those directly related to the guipublic void setProperties(Properties p)
Properties
object.
setProperties in interface Configurablep - Properties pertaining to the guipublic void resetDataChanged()
resetDataChanged in interface GUIConfigurablepublic void addDataChangeListener(DataChangeListener dcl)
DataChangeListener that will be notified every time a
fireDataChanged() call is made. Allows main GUI to record all
changes to this gui in the undo/redo mechanism.
addDataChangeListener in interface GUIConfigurabledcl - DataChangeListenerpublic void removeDataChangeListener(DataChangeListener dcl)
DataChangeListener so that it will no longer be notified
every time a fireDataChanged() call is made from this gui.
removeDataChangeListener in interface GUIConfigurabledcl - DataChangeListenerpublic Color getColor()
Color that should be used to display the name.
getColor in interface GUIConfigurableColorpublic String getTabDescription()
getTabDescription in interface GUIConfigurableString text of filter instructionspublic void resetToDefaults()
resetToDefaults in interface Configurablepublic void showOptions()
showOptions in interface GUIConfigurablepublic boolean hasAdvancedOptions()
hasAdvancedOptions in interface GUIConfigurabletrue if so; false otherwisepublic JPanel getHelpPanel()
JPanel that will be displayed when the user selects the
corresponding menu item from the Help menu and will provide the user with
detailed instructions on the tab's use.
getHelpPanel in interface GUIConfigurableJPanel to be added to the Help menupublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic boolean validate()
GUIConfigurable is valid.
validate in interface GUIConfigurablebooleantrue if
GUIConfigurable is valid false if
GUIConfigurable is invalidpublic void addValidationError(String validation_error)
validation_error - Stringpublic void clearValidationErrors()
public String[] getValidationErrors()
validate() returns false.
getValidationErrors in interface GUIConfigurablepublic String[] getValidationWarnings()
getValidationWarnings in interface GUIConfigurablepublic void addValidationWarning(String validation_warning)
validation_warning - Stringpublic void clearValidationWarnings()
public GUIConfigurable getGUIConfigurableForValidationFailure()
GUIConfigurable whose tab should next be displayed
to allow the user to correct an error or warning.
getGUIConfigurableForValidationFailure in interface GUIConfigurablepublic boolean validateSourcePaths(String[] source_paths)
validateSourcePaths in interface MetamorphoSysInputStreamsource_paths - String[] to be validated
true if validation passes false
otherwisepublic boolean validateSourcePath(String source_path)
validateSourcePath in interface MetamorphoSysInputStreamsource_path - path to be validated
true if validation passes false
otherwisepublic boolean validateVersions(String[] paths)
false is returned.
validateVersions in interface MetamorphoSysInputStreampaths - to be validated
true if validation passes false
otherwisepublic boolean validateVersion(String source_path)
false is
returned.
validateVersion in interface MetamorphoSysInputStreamsource_path - to be validated
true if validation passes false
otherwisepublic void beginInitializeCuiList()
SubsetListener that the Initialize Cui List phase is
starting.
beginInitializeCuiList in interface SubsetListenerpublic void endInitializeCuiList()
SubsetListener that the Initialize Cui List phase is
ending.
endInitializeCuiList in interface SubsetListenerpublic void beginSubsetContent()
SubsetListener that the Subset Content phase is starting.
beginSubsetContent in interface SubsetListenerpublic void endSubsetContent()
SubsetListener that the Subset Content phase is ending.
endSubsetContent in interface SubsetListenerpublic int getChooserType()
JFileChooser.
getChooserType in interface MetamorphoSysInputStreampublic void setEfficientMode(boolean efficient)
setEfficientMode in interface MetamorphoSysInputStreamefficient - true if subsetting should be run in efficient mode
false if notpublic boolean isEfficientMode()
isEfficientMode in interface MetamorphoSysInputStreamtrue if subsetting will be run in efficent mode
false otherwisepublic boolean hasFullContextData()
hasFullContextData in interface MetamorphoSysInputStreamtrue if this input source has full context data;
false otherwise.
public void open(String[] install_paths)
throws IOException
open in interface ConceptInputStreamopen in class OriginalMRMetathesaurusInputStreaminstall_paths - the subset directory
IOException - if the files cannot be openedpublic int compareTo(Object o)
Required method for implementing
Comparable interface.
Indicates the means for comparison between two
MetamorphoSysInputStreams.
compareTo in interface Comparableo - the Object to be compared.
ClassCastException - if the specified object's type is not
GUIConfigurable.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||