当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
TemplateUtils - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.format.template
Class TemplateUtils
java.lang.Object
org.jboss.portal.format.template.TemplateUtils
- public class TemplateUtils
- extends java.lang.Object
various methods to assist with using templates
Method Summary |
static java.lang.String[][] |
collectFields(java.lang.Class clazz,
java.lang.String prefix)
collect the fields out of any class that match the specified prefix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateUtils
public TemplateUtils()
collectFields
public static java.lang.String[][] collectFields(java.lang.Class clazz,
java.lang.String prefix)
- collect the fields out of any class that match the specified prefix. this
is useful for getting the list of constants whose values represent
template names
- Parameters:
clazz
- class to collect fields out fromprefix
- prefix to match fields against
- Returns:
- 2 dimensional array - first dimension contains number of objects,
second dimesion contains field name (a[0]) and value (a[1]).