org.vraptor.view
Class Functions

java.lang.Object
  extended by org.vraptor.view.Functions

public class Functions
extends Object

Simple functions for complex taglibs.

Author:
Guilherme Silveira

Constructor Summary
Functions()
           
 
Method Summary
static Object getProperty(Object o, String field)
           
static
<T> List<T>
setToList(Set<T> set)
           
static String stringToHtml(String str)
          Receives a string and translates its line breaks to br tags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions

public Functions()
Method Detail

getProperty

public static Object getProperty(Object o,
                                 String field)

setToList

public static <T> List<T> setToList(Set<T> set)

stringToHtml

public static String stringToHtml(String str)
Receives a string and translates its line breaks to br tags

Parameters:
str - the string
Returns:
the html string


Copyright © 2004-2008 VRaptor. All Rights Reserved.