LexCheck
2011 Version

gov.nih.nlm.nls.lexCheck.Lib
Class TextLib

java.lang.Object
  extended by gov.nih.nlm.nls.lexCheck.Lib.TextLib

public class TextLib
extends java.lang.Object

This class provides a Java object for editing a text LexRecord.

History:

Version:
V-2011
Author:
NLM Lexical System Development Team

Constructor Summary
TextLib()
          Creates a default lexical record object
 
Method Summary
static java.lang.String AddToText(java.lang.String orgText, java.lang.String slot, boolean flag, int numIndent)
          Add a boolean flag to a lexical record
static java.lang.String AddToText(java.lang.String orgText, java.lang.String slot, java.lang.String filler, int numIndent)
          Add a filler to a lexical record
static java.lang.String AddToText(java.lang.String orgText, java.lang.String slot, java.util.Vector<java.lang.String> fillers, int numIndent)
          Add a collection of fillers to a lexical record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextLib

public TextLib()
Creates a default lexical record object

Method Detail

AddToText

public static java.lang.String AddToText(java.lang.String orgText,
                                         java.lang.String slot,
                                         java.util.Vector<java.lang.String> fillers,
                                         int numIndent)
Add a collection of fillers to a lexical record

Parameters:
orgText - the original text
slot - the slot of the filler
fillers - a collectionof fillers
numIndent - number of indent
Returns:
the text after all fillers are added

AddToText

public static java.lang.String AddToText(java.lang.String orgText,
                                         java.lang.String slot,
                                         java.lang.String filler,
                                         int numIndent)
Add a filler to a lexical record

Parameters:
orgText - the original text
slot - the slot of the filler
filler - a filler to be added
numIndent - number of indent
Returns:
the text after all fillers are added

AddToText

public static java.lang.String AddToText(java.lang.String orgText,
                                         java.lang.String slot,
                                         boolean flag,
                                         int numIndent)
Add a boolean flag to a lexical record

Parameters:
orgText - the original text
slot - the slot of the boolean flag
flag - boolean flag
numIndent - number of indent
Returns:
the text after all fillers are added

LexCheck
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine