站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

TemplateUtils - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.format.template
Class TemplateUtils

java.lang.Object
  extended byorg.jboss.portal.format.template.TemplateUtils

public class TemplateUtils
extends java.lang.Object

various methods to assist with using templates

Version:
$Revision: 5448 $

Constructor Summary
TemplateUtils()
           
 
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
 

Constructor Detail

TemplateUtils

public TemplateUtils()
Method Detail

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 from
prefix - 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]).