gov.nih.nlm.umls.io
Class RichMRFilesSingleConceptInputStream

java.lang.Object
  extended by gov.nih.nlm.umls.io.RichMRFilesSingleConceptInputStream
All Implemented Interfaces:
LocalNullValueSupport

public class RichMRFilesSingleConceptInputStream
extends Object
implements LocalNullValueSupport

Builds a single Concept from a full set of "Rich Release Format" MR files.

Author:
Deborah Shapiro

Constructor Summary
RichMRFilesSingleConceptInputStream(String cui, String dir)
          Instantiates an empty RichMRFilesSingleConceptInputStream;
 
Method Summary
 Concept getConcept()
          Returns a single Concept from a set of Rich Release files.
 Concept getConceptWithAtomsOnly()
          Returns a single Concept from a set of Rich Release files.
 String getNullValue()
          Returns the null value.
 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 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
 

Constructor Detail

RichMRFilesSingleConceptInputStream

public RichMRFilesSingleConceptInputStream(String cui,
                                           String dir)
                                    throws IOException
Instantiates an empty RichMRFilesSingleConceptInputStream;

Parameters:
cui - cui
dir - location for files to be read
Throws:
IOException
Method Detail

setNullValue

public void setNullValue(String null_value)
Sets the null value to use. This is needed if release.dat specifies some non-standard null value char sequence.

Specified by:
setNullValue in interface LocalNullValueSupport
Parameters:
null_value - the new null string value

getNullValue

public String getNullValue()
Returns the null value. This is needed if release.dat specifies some non-standard null value char sequence.

Specified by:
getNullValue in interface LocalNullValueSupport
Returns:
the string value for "null"

isEmptyValue

public 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.

Specified by:
isEmptyValue in interface LocalNullValueSupport

getConcept

public Concept getConcept()
                   throws IOException
Returns a single Concept from a set of Rich Release files.

Returns:
Concept
Throws:
IOException

getConceptWithAtomsOnly

public Concept getConceptWithAtomsOnly()
                                throws IOException
Returns a single Concept from a set of Rich Release files. Only the atoms of the Concept are populated.

Returns:
Concept
Throws:
IOException


Copyright ©2005