org.jvnet.hyperjaxb3.item
Class MixedItemUtils

java.lang.Object
  extended by org.jvnet.hyperjaxb3.item.MixedItemUtils

public class MixedItemUtils
extends Object


Constructor Summary
MixedItemUtils()
           
 
Method Summary
static
<T,ItemType extends MixedItem<T>>
ItemType
create(Class<? extends ItemType> itemClass, String value)
           
static
<T,ItemType extends MixedItem<T>>
ItemType
create(Class<? extends ItemType> itemClass, T value)
           
static
<T> boolean
shouldBeWrapped(List<T> core)
           
static
<V,T extends V,ItemType extends MixedItem<T>>
List<V>
wrap(List<V> core, List<ItemType> items, Class<? extends ItemType> itemClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MixedItemUtils

public MixedItemUtils()
Method Detail

create

public static <T,ItemType extends MixedItem<T>> ItemType create(Class<? extends ItemType> itemClass,
                                                                T value)

create

public static <T,ItemType extends MixedItem<T>> ItemType create(Class<? extends ItemType> itemClass,
                                                                String value)

shouldBeWrapped

public static <T> boolean shouldBeWrapped(List<T> core)

wrap

public static <V,T extends V,ItemType extends MixedItem<T>> List<V> wrap(List<V> core,
                                                                         List<ItemType> items,
                                                                         Class<? extends ItemType> itemClass)


Copyright © 2005-2011. All Rights Reserved.