org.apache.xbean.recipe
Class CollectionRecipe

java.lang.Object
  extended by org.apache.xbean.recipe.AbstractRecipe
      extended by org.apache.xbean.recipe.CollectionRecipe
All Implemented Interfaces:
Serializable, Recipe

public class CollectionRecipe
extends AbstractRecipe

Version:
$Rev: 6685 $ $Date: 2005-12-28T00:29:37.967210Z $
See Also:
Serialized Form

Constructor Summary
CollectionRecipe()
           
CollectionRecipe(Class type)
           
CollectionRecipe(Collection<?> collection)
           
CollectionRecipe(CollectionRecipe collectionRecipe)
           
CollectionRecipe(String type)
           
 
Method Summary
 void add(Object value)
           
 void addAll(Collection<?> value)
           
 void allow(Option option)
           
 boolean canCreate(Type expectedType)
           
 void disallow(Option option)
           
 List<Object> getAll()
           
 List<Recipe> getConstructorRecipes()
           
 List<Recipe> getNestedRecipes()
           
protected  Object internalCreate(Type expectedType, boolean lazyRefAllowed)
           
 void remove(Object value)
           
 void removeAll(Object value)
           
 
Methods inherited from class org.apache.xbean.recipe.AbstractRecipe
create, create, create, getName, getPriority, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionRecipe

public CollectionRecipe()

CollectionRecipe

public CollectionRecipe(String type)

CollectionRecipe

public CollectionRecipe(Class type)

CollectionRecipe

public CollectionRecipe(Collection<?> collection)

CollectionRecipe

public CollectionRecipe(CollectionRecipe collectionRecipe)
Method Detail

allow

public void allow(Option option)

disallow

public void disallow(Option option)

getNestedRecipes

public List<Recipe> getNestedRecipes()
Specified by:
getNestedRecipes in interface Recipe
Overrides:
getNestedRecipes in class AbstractRecipe

getConstructorRecipes

public List<Recipe> getConstructorRecipes()
Specified by:
getConstructorRecipes in interface Recipe
Overrides:
getConstructorRecipes in class AbstractRecipe

canCreate

public boolean canCreate(Type expectedType)

internalCreate

protected Object internalCreate(Type expectedType,
                                boolean lazyRefAllowed)
                         throws ConstructionException
Specified by:
internalCreate in class AbstractRecipe
Throws:
ConstructionException

add

public void add(Object value)

addAll

public void addAll(Collection<?> value)

remove

public void remove(Object value)

removeAll

public void removeAll(Object value)

getAll

public List<Object> getAll()


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.