|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.AbstractGUIConfigurable
gov.nih.nlm.mms.cxt.MRCXTBuilder
public class MRCXTBuilder
Application for building MRCXT.RRF from MRCONSO.RRF and MRHIER.RRF
| Field Summary | |
|---|---|
protected boolean |
null_value_flag
|
protected String |
regex_null_value
|
| Fields inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable |
|---|
data_changed, default_configuration, listeners, user_configuration |
| Constructor Summary | |
|---|---|
MRCXTBuilder()
Instantiates a MRCXTBuilder and builds the frame. |
|
| Method Summary | |
|---|---|
void |
addSelectedSource(Source source)
Indicates that the given Source will be included
in the list of sources from which contexts will be built. |
void |
addSourceToList(Source source)
Adds a Source to the full list. |
void |
buildIndexes()
Builds indexes for MRCXT Builder processing if they do not already exist. |
void |
disableGlassPane()
Disable glass pane. |
List |
disqualifySourcesFromList(List source_candidates)
Returns modified List from given list of source candidates. |
void |
enableGlassPane()
Enable glass pane. |
boolean |
getAddUnicodeBOM()
Indicates if the UTF8 Byte Order Mark (BOM) should be prepended to the output MRCXT.RRF. |
boolean |
getBuildChildren()
Indicates if context children should be written to MRCXT.RRF. |
boolean |
getBuildSiblings()
Indicates if context siblings should be written to MRCXT.RRF. |
boolean |
getComputeXC()
Indicates if the XC flag should be computed for MRCXT.RRF. |
MRCXTBuilderGUI |
getGui()
Returns the MRCXTBuilderGUI. |
List |
getIncludedSources()
Returns List of Sources that have been selected to be
included in MRCXT.RRF. |
boolean |
getMaxContexts()
Indicates if there is a maximum number of contexts that will be written to MRCXT.RRF for any given atom/sab. |
int |
getMaxContextsCount()
Indicates the maximum number of contexts that will be written to MRCXT.RRF for any given atom/sab assuming that the corresponding checkbox is selected. |
String |
getNullValue()
Returns the null value. |
JPanel |
getPanel()
Returns the GUI panel that will display the user iterface. |
Properties |
getProperties()
Returns the current state of the MRCXTBuilder as a Properties
object. |
int |
getRowForSource(Source source)
Returns the index of the row in the table for a given Source |
File |
getSourceDir()
Returns the File where the MRHIER.RRF will be found and the
MRCXT.RRF should be written. |
List |
getSourceList()
Returns the full list of sources. |
Source[] |
getSourceListAsArray()
Returns the full list of sources. |
JTable |
getSourceTable()
Returns the JTable that displays the list of sources. |
boolean |
getVersionedSabs()
Indicates if MRCXT.RRF should be written with versioned or versionless source abbreviations. |
boolean |
getWriteMRCXTFileStatistics()
Indicates if statistics should be computed for MRCXT.RRF. |
boolean |
isEmptyValue(String token)
Indicates whether or not the specified token is null or contains a null value as defined by being either zero length or a value equal to the null value. |
void |
makeMRCXT(ProgressMonitor progress)
Calls the MRCXTBuilderOutputStream and instructs it
to write the MRCXT.RRF file. |
void |
removeSelectedSource(Source source)
Indicates that the given Source will not have contexts
built from it. |
void |
resetToDefaults()
Resets MRCXTBuilder state to default. |
protected String |
resolveNull(String line)
Replaces all "null value" characters in the line. |
void |
setAddUnicodeBOM(boolean add_unicode_bom)
Sets the parameter indicating if the UTF8 Byte Order Mark (BOM) should be prepended to the output MRCXT.RRF. |
void |
setBuildChildren(boolean build_children)
Sets the parameter indicating if children should be built or not |
void |
setBuildSiblings(boolean build_siblings)
Sets the parameter indicating if siblings should be built or not |
void |
setComputeXC(boolean compute_xc)
Sets the parameter indicating if the XC flag should be computed for MRCXT.RRF. |
void |
setEnableComponents()
Logic for control of enabling and disabling gui components. |
void |
setGui(MRCXTBuilderGUI gui)
Sets the MRCXTBuilderGUI. |
void |
setMaxContexts(boolean max_contexts)
Sets if there is a maximum number of contexts that will be written to MRCXT.RRF for any given atom/sab. |
void |
setMaxContextsCount(int max_contexts_count)
Sets the maximum number of contexts that will be written to MRCXT.RRF for any given atom/sab assuming that the corresponding checkbox is selected . |
void |
setNullValue(String null_value)
Sets the null value to use. |
void |
setPanelSelections()
Applies state to panel selections. |
void |
setProperties(Properties p)
Sets the current state of the MRCXTBuilder from a Properties
object. |
void |
setSelectedSourceSet(Set source_set)
Supplies the Set of Sources that are selected
for inclusion in the built MRCXT.RRF |
void |
setSourceDir(File source_dir)
Sets the File where the MRHIER.RRF will be found and the
MRCXT.RRF should be written. |
void |
setSourceList(List sources)
Sets the full list of Sources. |
void |
setSourceList(Source[] sources)
Sets the source list to the given Source[] |
void |
setVersionedSabs(boolean versioned_sabs)
Sets the parameter indicating if MRCXT.RRF should be written with versioned or versionless source abbreviations. |
void |
setWriteMRCXTFileStatistics(boolean write_mrcxt_file_statistics)
Sets the parameter indicating if statistics should be computed for MRCXT.RRF. |
void |
subsetDirectoryOpened(File source_dir)
Handles opening of a source directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String regex_null_value
protected boolean null_value_flag
| Constructor Detail |
|---|
public MRCXTBuilder()
MRCXTBuilder and builds the frame.
| Method Detail |
|---|
public JPanel getPanel()
getPanel in interface GUIConfigurablegetPanel in class AbstractGUIConfigurableJPanel that displays graphical interface for the application.public void subsetDirectoryOpened(File source_dir)
source_dir - the source directorypublic List disqualifySourcesFromList(List source_candidates)
List from given list of source candidates.
Sources are removed if their concept count = 0
or they are without contexts or they are not in the current subset
source_candidates -
public List getSourceList()
List of sourcespublic Source[] getSourceListAsArray()
Source[] of sourcespublic JTable getSourceTable()
JTable that displays the list of sources.
JTablepublic int getRowForSource(Source source)
Source
source - Source
intpublic void setSourceList(Source[] sources)
Source[]
sources - arraypublic void addSourceToList(Source source)
Source to the full list.
source - Sourcepublic void setSourceList(List sources)
Sources.
sources - Listpublic void addSelectedSource(Source source)
Source will be included
in the list of sources from which contexts will be built.
source - Source to be included in context buildingpublic void removeSelectedSource(Source source)
Source will not have contexts
built from it.
source - Source to be excluded from context buildingpublic void setSelectedSourceSet(Set source_set)
Set of Sources that are selected
for inclusion in the built MRCXT.RRF
source_set - public void buildIndexes()
public boolean getBuildSiblings()
true if siblings should be built false
otherwisepublic void setBuildSiblings(boolean build_siblings)
build_siblings - public boolean getBuildChildren()
true if children should be built false
otherwisepublic void setBuildChildren(boolean build_children)
build_children - public boolean getComputeXC()
true if yes false otherwisepublic void setComputeXC(boolean compute_xc)
compute_xc - public int getMaxContextsCount()
int maximum contextspublic boolean getMaxContexts()
boolean true if limited
false false otherwisepublic void setMaxContextsCount(int max_contexts_count)
max_contexts_count - public void setMaxContexts(boolean max_contexts)
max_contexts - true if limited
false false otherwisepublic void setNullValue(String null_value)
setNullValue in interface LocalNullValueSupportnull_value - the new null string valuepublic String getNullValue()
getNullValue in interface LocalNullValueSupportpublic boolean isEmptyValue(String token)
isEmptyValue in interface LocalNullValueSupportprotected String resolveNull(String line)
line - input line
public void setAddUnicodeBOM(boolean add_unicode_bom)
add_unicode_bom - public boolean getAddUnicodeBOM()
true if BOM is required false if notpublic void setWriteMRCXTFileStatistics(boolean write_mrcxt_file_statistics)
write_mrcxt_file_statistics - public boolean getWriteMRCXTFileStatistics()
true if statistics should be computed false if notpublic void setVersionedSabs(boolean versioned_sabs)
versioned_sabs - public boolean getVersionedSabs()
true if versioned false if
versionlesspublic File getSourceDir()
File where the MRHIER.RRF will be found and the
MRCXT.RRF should be written.
File directory
public void setSourceDir(File source_dir)
throws IOException
File where the MRHIER.RRF will be found and the
MRCXT.RRF should be written.
source_dir - File directory
IOExceptionpublic List getIncludedSources()
List of Sources that have been selected to be
included in MRCXT.RRF.
List of included Sourcespublic void makeMRCXT(ProgressMonitor progress)
MRCXTBuilderOutputStream and instructs it
to write the MRCXT.RRF file.
progress - public void setGui(MRCXTBuilderGUI gui)
MRCXTBuilderGUI.
gui - public MRCXTBuilderGUI getGui()
MRCXTBuilderGUI.
public void setEnableComponents()
public void resetToDefaults()
MRCXTBuilder state to default.
resetToDefaults in interface ConfigurableresetToDefaults in class AbstractGUIConfigurablepublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablesetPanelSelections in class AbstractGUIConfigurablepublic Properties getProperties()
MRCXTBuilder as a Properties
object.
getProperties in interface ConfigurablegetProperties in class AbstractGUIConfigurableProperties only those directly related to the guipublic void setProperties(Properties p)
MRCXTBuilder from a Properties
object.
setProperties in interface ConfigurablesetProperties in class AbstractGUIConfigurablep - Properties only those directly related to the guipublic void enableGlassPane()
public void disableGlassPane()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||