Lvg Java
2006p Version

gov.nih.nlm.nls.lvg.Flows
Class ToStripNecNos

java.lang.Object
  extended by gov.nih.nlm.nls.lvg.Flows.Transformation
      extended by gov.nih.nlm.nls.lvg.Flows.ToStripNecNos
All Implemented Interfaces:
java.lang.Cloneable

public class ToStripNecNos
extends Transformation
implements java.lang.Cloneable

This class strips NEC and NOS from a specified term. NOS (Not Otherwise Specified) and NEC (Not Elsewhere Classified) can be found as part of Metathesaurus concept names. This class has following features:

where $ is the end the string.

The design and implementation of this class is not general. More details specification need to be addressed, such as in the case of ", NEC" & ", NOS". In addition, the issue of tokenizing and puncuations need to be addessed.

History:

Version:
V-2006p
Author:
NLM NLS Development Team
See Also:
Design Document , Tokenize & Punctuations

Field Summary
 
Fields inherited from class gov.nih.nlm.nls.lvg.Flows.Transformation
NO_MUTATE_INFO, UPDATE
 
Constructor Summary
ToStripNecNos()
           
 
Method Summary
static void main(java.lang.String[] args)
          A unit test driver for this flow component.
static java.util.Vector Mutate(LexItem in, boolean detailsFlag, boolean mutateFlag)
          Performs the mutation of this flow component.
 
Methods inherited from class gov.nih.nlm.nls.lvg.Flows.Transformation
GetTestStr, PrintResult, PrintResults, UpdateLexItem, UpdateLexItem, UpdateLexItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStripNecNos

public ToStripNecNos()
Method Detail

Mutate

public static java.util.Vector Mutate(LexItem in,
                                      boolean detailsFlag,
                                      boolean mutateFlag)
Performs the mutation of this flow component.

Parameters:
in - a LexItem as the input for this flow component
detailsFlag - a boolean flag for processing details information
mutateFlag - a boolean flag for processing mutate information
Returns:
the results from this flow component - a collection (Vector) of LexItems

main

public static void main(java.lang.String[] args)
A unit test driver for this flow component.


Lvg Java
2006p Version

Submit a bug or feature

Copyright © 2006p National Library of Medicine