Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Version:
  `$Revision: 8784 $`

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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD