LVG Java
2004 Version

gov.nih.nlm.nls.lvg.Db
Class DerivationRecord

java.lang.Object
  |
  +--gov.nih.nlm.nls.lvg.Db.DerivationRecord

public class DerivationRecord
extends java.lang.Object

This class defined the data structure of a derivation record.

History:

Version:
V-2004
Author:
NLM LVG Development Team
See Also:
Desgin Document

Constructor Summary
DerivationRecord(java.lang.String source, int sourceCat, java.lang.String target, int targetCat)
          Create a derivation record, using source term, source category, target term, and target category.
 
Method Summary
 java.lang.String GetPureString(java.lang.String sp)
          Get the whole record in a pure string format.
 java.lang.String GetSource()
          Get the string value of source term from current derivation record.
 int GetSourceCat()
          Get the source category from current derivation record.
 java.lang.String GetString(java.lang.String sp)
          Get the whole record in a string format.
 java.lang.String GetTarget()
          Get the string value of target term from current derivation record.
 int GetTargetCat()
          Get the target category from current derivation record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerivationRecord

public DerivationRecord(java.lang.String source,
                        int sourceCat,
                        java.lang.String target,
                        int targetCat)
Create a derivation record, using source term, source category, target term, and target category.

Method Detail

GetSource

public java.lang.String GetSource()
Get the string value of source term from current derivation record.

Returns:
the string value of source term from current derivation record

GetTarget

public java.lang.String GetTarget()
Get the string value of target term from current derivation record.

Returns:
the string value of target term from current derivation record

GetSourceCat

public int GetSourceCat()
Get the source category from current derivation record.

Returns:
integer value of source category from current derivation record

GetTargetCat

public int GetTargetCat()
Get the target category from current derivation record.

Returns:
integer value of target category from current derivation record

GetString

public java.lang.String GetString(java.lang.String sp)
Get the whole record in a string format. The format is
source term | source cateoory | target term | target category
where categories are integers

Returns:
the string value of whole current derivation record

GetPureString

public java.lang.String GetPureString(java.lang.String sp)
Get the whole record in a pure string format. The format is
source term | source cateoory | target term | target category
where categories are in string names.

Returns:
the string value of whole current derivation record

LVG Java
2004 Version

Submit a bug or feature

Copyright © 2004 National Library of Medicine