1 52 53 package com.go.teaservlet; 54 55 import com.go.teatools.*; 56 57 import java.beans.*; 58 import java.lang.reflect.*; 59 60 74 public interface TeaToolsContext { 75 76 79 public HandyClassInfo getHandyClassInfo(Class clazz); 80 81 84 public HandyClassInfo getHandyClassInfo(String className); 85 86 90 public String getFirstSentence(String paragraph); 91 92 96 public String createPatternString(String pattern, int length); 97 98 101 public String createWhitespaceString(int length); 102 103 107 interface HandyClassInfo { 108 109 113 public String getFullName(); 114 115 116 121 public String getName(); 122 123 127 public String getPackage(); 128 129 132 public Class getType(); 133 134 145 public String getTypeName(); 146 147 151 public TypeDescription getArrayType(); 152 153 157 public int getArrayDimensions(); 158 159 163 public String getArrayDimensionsString(); 164 165 169 public String getDescription(); 170 171 177 public String getDescriptionFirstSentence(); 178 179 185 public String getVersion(); 186 187 193 public BeanInfo getBeanInfo(); 194 195 198 public MethodDescription[] getMethodDescriptions(); 199 200 203 public PropertyDescription[] getPropertyDescriptions(); 204 205 216 public PropertyDescriptor[] getTeaBeanPropertyDescriptors(); 217 218 226 public MethodDescriptor[] getTeaContextMethodDescriptors(); 227 228 } 229 } 230 | Popular Tags |