org.apache.xbean.recipe
Class ArrayRecipe

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

public class ArrayRecipe
extends AbstractRecipe

Version:
$Rev: 766039 $ $Date: 2009-04-17 07:55:47 -0700 (Fri, 17 Apr 2009) $
See Also:
Serialized Form

Constructor Summary
ArrayRecipe()
           
ArrayRecipe(ArrayRecipe collectionRecipe)
           
ArrayRecipe(Class type)
           
ArrayRecipe(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

ArrayRecipe

public ArrayRecipe()

ArrayRecipe

public ArrayRecipe(String type)

ArrayRecipe

public ArrayRecipe(Class type)

ArrayRecipe

public ArrayRecipe(ArrayRecipe 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.