gov.nih.nci.evs.util
Class PrintUtils

java.lang.Object
  extended by gov.nih.nci.evs.util.PrintUtils

public class PrintUtils
extends java.lang.Object

PrintUtils consists of methods that prints data to a Standard Output Device.

Version:
1.0
Author:
caBIO Team

Constructor Summary
PrintUtils()
           
 
Method Summary
 java.util.List addClassToList(java.lang.Object result, java.util.List classList)
          Adds the current class to a list.
 java.lang.reflect.Field[] getAllFields(java.lang.Class resultClass)
          Gets all the fields of a given class
 java.lang.reflect.Method[] getAllMethods(java.lang.Class resultClass)
          Gets all the methods of a given class
 void printDLC(DescLogicConcept dlc)
          Prints the specified DescLogicConcept on to the standard output device
 void printDLC(DescLogicConcept dlc, java.lang.String tab)
          Prints the specified DescLogicConcept on to the standard output device
 void printDLTree(java.util.List evsResults)
          Prints the DescLogicConcepts tree on the Standard Output Device
 void printDLTree(java.util.List evsResults, int levels)
          Prints the DescLogicConcepts tree on the Standard Output Device
 void printEVSResults(java.util.List evsResults)
          Prints the contents of the given result list on a standard output device
 java.util.List printObject(java.lang.Object result, java.util.List classList)
          Sends and object to a Standard Output Device
 void printResults(java.util.List resultList)
          Prints the objects in a given list
 void printTree(java.util.List resultList)
          Prints the objects in a given list along with it's child objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintUtils

public PrintUtils()
Method Detail

printTree

public void printTree(java.util.List resultList)
Prints the objects in a given list along with it's child objects

Parameters:
resultList - Specifies the objects that needs to be printed return

printObject

public java.util.List printObject(java.lang.Object result,
                                  java.util.List classList)
Sends and object to a Standard Output Device

Parameters:
result - Specifies the object that needs to be printed
classList - Specifies the path from root to the current object return

addClassToList

public java.util.List addClassToList(java.lang.Object result,
                                     java.util.List classList)
Adds the current class to a list. This list is used to idetify the path from parent to this class

Parameters:
result - Specifies the object
classList - Specifies the path from root to the current object return

printResults

public void printResults(java.util.List resultList)
Prints the objects in a given list

Parameters:
resultList - Specifies the objects that needs to printed return

getAllFields

public java.lang.reflect.Field[] getAllFields(java.lang.Class resultClass)
Gets all the fields of a given class

Parameters:
resultClass - - Specifies the class name
Returns:
- returns all the fields of a class

getAllMethods

public java.lang.reflect.Method[] getAllMethods(java.lang.Class resultClass)
Gets all the methods of a given class

Parameters:
resultClass - - Specifies the class name
Returns:
- Returns all the methods

printDLC

public void printDLC(DescLogicConcept dlc,
                     java.lang.String tab)
Prints the specified DescLogicConcept on to the standard output device

Parameters:
dlc - - specifies the DescLogicConcept object

printDLC

public void printDLC(DescLogicConcept dlc)
Prints the specified DescLogicConcept on to the standard output device

Parameters:
dlc - - specifies the DescLogicConcept object

printDLTree

public void printDLTree(java.util.List evsResults)
Prints the DescLogicConcepts tree on the Standard Output Device

Parameters:
evsResults - - Results list

printDLTree

public void printDLTree(java.util.List evsResults,
                        int levels)
Prints the DescLogicConcepts tree on the Standard Output Device

Parameters:
evsResults - - Specifies the results list that holds the DescLogicConcept tree

printEVSResults

public void printEVSResults(java.util.List evsResults)
Prints the contents of the given result list on a standard output device

Parameters:
evsResults - - Specifies the results that need to be printed


Copyright © 2007 National Cancer Institute (NCI). All Rights Reserved.