org.LexGrid.LexBIG.example
Class FindRelatedCodesWithPropertyLinks

java.lang.Object
  extended by org.LexGrid.LexBIG.example.FindRelatedCodesWithPropertyLinks

public class FindRelatedCodesWithPropertyLinks
extends java.lang.Object

Example showing how to find all concepts codes related to another code with distance 1, plus the Property Link relations.


Constructor Summary
FindRelatedCodesWithPropertyLinks()
           
 
Method Summary
static void main(java.lang.String[] args)
          Entry point for processing.
protected  void printFrom(java.lang.String code, LexBIGService lbSvc, java.lang.String scheme, CodingSchemeVersionOrTag csvt)
          Display relations from the given code to other concepts.
protected  void printPropertyLinks(java.lang.String code, LexBIGService lbSvc, java.lang.String scheme, CodingSchemeVersionOrTag csvt)
          Display Property Link relations.
protected  void printTo(java.lang.String code, LexBIGService lbSvc, java.lang.String scheme, CodingSchemeVersionOrTag csvt)
          Display relations to the given code from other concepts.
 void run(java.lang.String code)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindRelatedCodesWithPropertyLinks

public FindRelatedCodesWithPropertyLinks()
Method Detail

main

public static void main(java.lang.String[] args)
Entry point for processing.

Parameters:
args -

run

public void run(java.lang.String code)
         throws LBException
Throws:
LBException

printFrom

protected void printFrom(java.lang.String code,
                         LexBIGService lbSvc,
                         java.lang.String scheme,
                         CodingSchemeVersionOrTag csvt)
                  throws LBException
Display relations from the given code to other concepts.

Parameters:
code -
relation -
lbSvc -
scheme -
csvt -
Throws:
LBException

printPropertyLinks

protected void printPropertyLinks(java.lang.String code,
                                  LexBIGService lbSvc,
                                  java.lang.String scheme,
                                  CodingSchemeVersionOrTag csvt)
                           throws LBException
Display Property Link relations.

Parameters:
code -
relation -
lbSvc -
scheme -
csvt -
Throws:
LBException

printTo

protected void printTo(java.lang.String code,
                       LexBIGService lbSvc,
                       java.lang.String scheme,
                       CodingSchemeVersionOrTag csvt)
                throws LBException
Display relations to the given code from other concepts.

Parameters:
code -
relation -
lbSvc -
scheme -
csvt -
Throws:
LBException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.