org.chorem.pollen.bean
Class ChoiceHelper

java.lang.Object
  extended by org.chorem.pollen.bean.ChoiceHelper

public final class ChoiceHelper
extends Object

Used to manage all objects from Choice inheritance tree depends on ChoiceType.

Created: 30/03/12

Author:
fdesbois

Method Summary
static String getValuePropertyName(ChoiceType choiceType)
           
static Object toValue(Choice choice, ChoiceType choiceType)
           
static com.google.common.base.Function<Choice,Object> toValue(ChoiceType type)
           
static Iterable<Object> toValues(Iterable<Choice> choices, ChoiceType choiceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toValue

public static Object toValue(Choice choice,
                             ChoiceType choiceType)

toValue

public static com.google.common.base.Function<Choice,Object> toValue(ChoiceType type)

toValues

public static Iterable<Object> toValues(Iterable<Choice> choices,
                                        ChoiceType choiceType)

getValuePropertyName

public static String getValuePropertyName(ChoiceType choiceType)


Copyright © 2009-2012 CodeLutin. All Rights Reserved.