be.objectify.led.factory.object
Class SetFactory<T>

java.lang.Object
  extended by be.objectify.led.factory.object.AbstractObjectFactory<Set>
      extended by be.objectify.led.factory.object.SetFactory<T>
All Implemented Interfaces:
ObjectFactory<Set>

public abstract class SetFactory<T>
extends AbstractObjectFactory<Set>

Author:
Steve Chaloner

Constructor Summary
SetFactory(Class clazz, Field field, FactoryResolver factoryResolver)
           
 
Method Summary
 Set<T> createObject(String propertyName, String propertyValue)
          Creates an object based on propertyValue.
protected abstract  Set<T> createSet()
           
 Class<Set> getBoundClass()
          Gets the class type this factory produces objects for.
protected abstract  Collection<T> parse(String propertyName, String propertyValue, ObjectFactory<T> objectFactory)
           
 
Methods inherited from class be.objectify.led.factory.object.AbstractObjectFactory
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetFactory

public SetFactory(Class clazz,
                  Field field,
                  FactoryResolver factoryResolver)
Method Detail

createObject

public Set<T> createObject(String propertyName,
                           String propertyValue)
Description copied from interface: ObjectFactory
Creates an object based on propertyValue. If propertyValue is null or no object can be based on it, null should be returned.

propertyValue - the value of the property
Returns:
an object (probably) based on propertyValue, or null

getBoundClass

public Class<Set> getBoundClass()
Description copied from interface: ObjectFactory
Gets the class type this factory produces objects for.

Returns:
the class type

parse

protected abstract Collection<T> parse(String propertyName,
                                       String propertyValue,
                                       ObjectFactory<T> objectFactory)

createSet

protected abstract Set<T> createSet()


Copyright © 2010 Objectify. All Rights Reserved.