|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.CuiSuiAuiList
public class CuiSuiAuiList
This class is used during the first phase of MetamorphoSys
subsetting, in which a list of cuis to be kept is built up.
The class is designed to minimize the memory impact of keeping
track of the cuis.
| Constructor Summary | |
|---|---|
CuiSuiAuiList()
Instantiates an empty CuiSuiAuiList |
|
| Method Summary | |
|---|---|
void |
addCui(String cui)
Enables a filter to specify a Cui should be added to the cui list. |
boolean |
addedByUserOnly(String cui)
Indicates that cui was added by the user and not just left through filtering process. |
void |
clear()
Clears all refereces to the cui_list components so CuiSuiAuiList
can be garbage collected. |
void |
clearAuiSet()
Clears all references to the aui_set so that it can be garbage collected. |
protected String |
dump()
Dumps size of the CuiSuiAuiList for debugging purposes. |
String |
getNullValue()
Returns the null value. |
boolean |
inList(String cui)
Returns true if any part of the Concept is being kept. |
boolean |
inList(String cui,
String sui,
String aui)
Returns true if the cui,sui,aui combination is being kept. |
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 |
removeCui(String cui)
Enables a filter to specify a Cui that should be removed from the cui list. |
void |
setFilteredConcept(Concept concept)
Set the final state of the Concept after filtering. |
void |
setNullValue(String null_value)
Sets the null value to use. |
void |
setUnfilteredConcept(Concept concept)
Set the initial state of the Concept before filtering. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CuiSuiAuiList()
CuiSuiAuiList
| 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 setUnfilteredConcept(Concept concept)
Concept before filtering.
This is for later comparison purposes.
concept - an unfiltered Conceptpublic void setFilteredConcept(Concept concept)
Concept after filtering.
Compare this against the unfiltered Concept, and determine what
was removed, what was kept, and how to track that information
in the least memory-intensive way.
concept - a filtered Conceptpublic boolean inList(String cui)
true if any part of the Concept is being kept.
inList in interface CuiListcui - a String cui value
true if any part of the Concept is being kept
public boolean inList(String cui,
String sui,
String aui)
true if the cui,sui,aui combination is being kept.
inList in interface CuiListcui - a String cui valuesui - a String sui valueaui - a String aui value
true if the cui,sui,aui combination is being keptpublic void addCui(String cui)
addCui in interface CuiListcui - Stringpublic boolean addedByUserOnly(String cui)
addedByUserOnly in interface CuiListcui - String
booleanpublic void removeCui(String cui)
removeCui in interface CuiListcui - Stringpublic void clearAuiSet()
public void clear()
CuiSuiAuiList
can be garbage collected.
protected String dump()
CuiSuiAuiList for debugging purposes.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||