com.go.teaservlet
Interface TeaToolsContext

All Known Subinterfaces:
AdminContext, AdminHttpContext

public interface TeaToolsContext

A Tea Tool's best friend. This class has several useful methods for writing tools that work with Tea. Many of these methods were taken from Kettle 3.0.x so that they could be reused in future versions and in other applications.

This class was written with the intent that it could be used as a tea context class. It provides a collection of functions to make introspection possible from Tea.

Version:
3 , 12/06/00
Author:
Mark Masse

Inner Class Summary
static interface TeaToolsContext.HandyClassInfo
          provides a bean to contain an assortment of methods to handle class names and properties.
 
Method Summary
 java.lang.String createPatternString(java.lang.String pattern, int length)
          Creates a String with the specified pattern repeated length times.
 java.lang.String createWhitespaceString(int length)
          Creates a String of spaces with the specified length.
 java.lang.String getFirstSentence(java.lang.String paragraph)
          Returns the first sentence of the specified paragraph.
 TeaToolsContext.HandyClassInfo getHandyClassInfo(java.lang.Class clazz)
          Returns a bean full of handy information about the specified class.
 TeaToolsContext.HandyClassInfo getHandyClassInfo(java.lang.String className)
          Returns a bean full of handy information about the specified class.
 

Method Detail

getHandyClassInfo

public TeaToolsContext.HandyClassInfo getHandyClassInfo(java.lang.Class clazz)
Returns a bean full of handy information about the specified class.

getHandyClassInfo

public TeaToolsContext.HandyClassInfo getHandyClassInfo(java.lang.String className)
Returns a bean full of handy information about the specified class.

getFirstSentence

public java.lang.String getFirstSentence(java.lang.String paragraph)
Returns the first sentence of the specified paragraph. Uses java.text.BreakIterator.getSentenceInstance()

createPatternString

public java.lang.String createPatternString(java.lang.String pattern,
                                            int length)
Creates a String with the specified pattern repeated length times.

createWhitespaceString

public java.lang.String createWhitespaceString(int length)
Creates a String of spaces with the specified length.