|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.MetaDescriptionInitializer
public final class MetaDescriptionInitializer
Provides an easy mechanism for initializing the system from MRDOC, MRSAB, and SRDEF. This is a convenience class to help users avoid the complexities of initializing an application.
| Field Summary | |
|---|---|
protected boolean |
null_value_flag
|
protected String |
regex_null_value
|
| Constructor Summary | |
|---|---|
MetaDescriptionInitializer()
Instantiates an empty MetaDescriptionInitializer. |
|
| Method Summary | |
|---|---|
String |
getNullValue()
Returns the null value. |
void |
initialize(File mrdoc,
File mrsab,
File srdef)
Initializes any or all of the following files: MRDOC, MRSAB, SRDEF. |
void |
initialize(File mrdoc,
File mrsab,
File srdef,
File sty_groups)
Initializes any or all of the following files: MRDOC, MRSAB, SRDEF. |
void |
initialize(MetaDescription[] meta_dsc)
Initializes all of the MetaDescriptions at one time. |
void |
initialize(SourceMetaDescription[] source_meta_dsc)
Initializes all of the SourceMetaDescriptions at one time. |
void |
initialize(STYMetaDescription[] sty_meta_dsc)
Initializes all of the STYMetaDescriptions at one time. |
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. |
protected String |
resolveNull(String line)
Replaces all "null value" characters in the line. |
void |
setNullValue(String null_value)
Sets the null value to use. |
| 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 MetaDescriptionInitializer()
MetaDescriptionInitializer.
| Method Detail |
|---|
public 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 LocalNullValueSupportpublic void initialize(MetaDescription[] meta_dsc)
MetaDescriptions at one time.
meta_dsc - an array of MetaDescriptions
IllegalStateException - if an attempt is made to call this
method more than oncepublic void initialize(STYMetaDescription[] sty_meta_dsc)
STYMetaDescriptions at one time.
sty_meta_dsc - an array of STYMetaDescriptions
IllegalStateException - if an attempt is made to call this
method more than oncepublic void initialize(SourceMetaDescription[] source_meta_dsc)
SourceMetaDescriptions at one time.
source_meta_dsc - an array of SourceMetaDescriptions
IllegalStateException - if an attempt is made to call this
method more than once
public void initialize(File mrdoc,
File mrsab,
File srdef)
throws IOException
mrdoc - File MRDOCmrsab - File MRSABsrdef - File SRDEF
IOException
public void initialize(File mrdoc,
File mrsab,
File srdef,
File sty_groups)
throws IOException
mrdoc - File MRDOCmrsab - File MRSABsrdef - File SRDEFsty_groups - File SemGroups.txt
IOExceptionprotected String resolveNull(String line)
line - input line
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||