org.loom.binding
Class ItemMetadata

java.lang.Object
  extended by org.loom.binding.ItemMetadata

public class ItemMetadata
extends java.lang.Object

The item metadata associated to a multiple field (array, list, set, map). If this multiple field can be an intermediate node of a property path, it should provide a valid ImplementationFactory. If it is an end node of a property path, it should provide a valid Converter.


Constructor Summary
ItemMetadata()
           
 
Method Summary
 Converter getConverter()
           
 ImplementationFactory<?> getImplementationFactory()
           
 java.lang.Class<?> getItemClass()
           
 boolean isEmpty()
           
 java.lang.Object newItem()
           
 void setConverter(Converter converter)
           
 void setImplementationFactory(ImplementationFactory<?> implementationFactory)
           
 void setItemClass(java.lang.Class<?> itemImplementationClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemMetadata

public ItemMetadata()
Method Detail

isEmpty

public boolean isEmpty()
Returns:
true if neither converter or itemClass has been specified

getConverter

public Converter getConverter()

setConverter

public void setConverter(Converter converter)

getItemClass

public java.lang.Class<?> getItemClass()

setItemClass

public void setItemClass(java.lang.Class<?> itemImplementationClass)

getImplementationFactory

public ImplementationFactory<?> getImplementationFactory()

setImplementationFactory

public void setImplementationFactory(ImplementationFactory<?> implementationFactory)

newItem

public java.lang.Object newItem()