com.jfw.util
Class ParserUtil

java.lang.Object
  extended by com.jfw.util.ParserUtil

public final class ParserUtil
extends java.lang.Object

Trasform data to make them compatible with the parser.

See Also:
Parser

Field Summary
static java.lang.String DEFAULT_KEY
          The default value to use as key in an HashMap.
 
Constructor Summary
ParserUtil()
           
 
Method Summary
static java.util.ArrayList list4Repeat(java.util.ArrayList list)
          Call method list4Repeat(ArrayList,String).
static java.util.ArrayList list4Repeat(java.util.ArrayList list, java.lang.String name)
          Transform an ArrayList so can be used by the repeat tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY

public static final java.lang.String DEFAULT_KEY
The default value to use as key in an HashMap. The default value is DEFAULT_KEY.

See Also:
Constant Field Values
Constructor Detail

ParserUtil

public ParserUtil()
Method Detail

list4Repeat

public static java.util.ArrayList list4Repeat(java.util.ArrayList list,
                                              java.lang.String name)
Transform an ArrayList so can be used by the repeat tag.

Parameters:
list - an ArrayList object.
name - the key to use fo the HashMap (the name of the field).
Returns:
an ArrayList that can be viewed using the tag repeat.

list4Repeat

public static java.util.ArrayList list4Repeat(java.util.ArrayList list)
Call method list4Repeat(ArrayList,String).
The default value of parameter name is given by the attribute DEFAULT_KEY.

Parameters:
list - an ArrayList object.
Returns:
an ArrayList that can be viewed using the tag repeat.