TC Java
2009 Version

gov.nih.nlm.nls.tc.Sti
Class SemanticType

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Sti.SemanticType

public class SemanticType
extends java.lang.Object

This class is the Semantic Type Java object

History:

Version:
V-2009
Author:
NLM Lexical Systems Group

Constructor Summary
SemanticType()
          Create a Semantic Type object (defualt).
SemanticType(int index, java.lang.String tui, java.lang.String name)
          Create a Semantic Type object by specifying index, TUI, and ST name.
SemanticType(int index, java.lang.String tui, java.lang.String abbr, java.lang.String name)
          Create a Semantic Type object by specifying index, tui, ST abbreviation, and ST name.
SemanticType(java.lang.String tui, java.lang.String name)
          Create a Semantic Type object by specifying TUI and ST name.
 
Method Summary
 java.lang.String GetAbbr()
          Get the ST abbreviation
 int GetIndex()
          Get the ST index
 java.lang.String GetName()
          Get the ST name
 java.lang.String GetTui()
          Get the TUI, ST id
 void SetAbbr(java.lang.String abbr)
          Set the ST abbreviation
 void SetId(java.lang.String tui)
          Set the ST id
 void SetIndex(int index)
          Set the ST index
 void SetName(java.lang.String name)
          Set the ST name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemanticType

public SemanticType()
Create a Semantic Type object (defualt).


SemanticType

public SemanticType(java.lang.String tui,
                    java.lang.String name)
Create a Semantic Type object by specifying TUI and ST name.

Parameters:
tui - ST id
name - ST name

SemanticType

public SemanticType(int index,
                    java.lang.String tui,
                    java.lang.String name)
Create a Semantic Type object by specifying index, TUI, and ST name.

Parameters:
index - ST index
tui - ST id
name - ST name

SemanticType

public SemanticType(int index,
                    java.lang.String tui,
                    java.lang.String abbr,
                    java.lang.String name)
Create a Semantic Type object by specifying index, tui, ST abbreviation, and ST name.

Parameters:
index - ST index
tui - ST id
abbr - ST abbreviation
name - ST name
Method Detail

SetIndex

public void SetIndex(int index)
Set the ST index

Parameters:
index - ST index

SetId

public void SetId(java.lang.String tui)
Set the ST id

Parameters:
tui - ST id

SetAbbr

public void SetAbbr(java.lang.String abbr)
Set the ST abbreviation

Parameters:
abbr - ST abbreviation

SetName

public void SetName(java.lang.String name)
Set the ST name

Parameters:
name - ST name

GetIndex

public int GetIndex()
Get the ST index

Returns:
ST index

GetTui

public java.lang.String GetTui()
Get the TUI, ST id

Returns:
TUI, ST id

GetAbbr

public java.lang.String GetAbbr()
Get the ST abbreviation

Returns:
ST abbreviation

GetName

public java.lang.String GetName()
Get the ST name

Returns:
ST name

TC Java
2009 Version

Submit a bug or feature

Copyright © 2009 National Library of Medicine