Package org.apache.xbean.recipe
Class CollectionRecipe
- java.lang.Object
-
- org.apache.xbean.recipe.AbstractRecipe
-
- org.apache.xbean.recipe.CollectionRecipe
-
- All Implemented Interfaces:
java.io.Serializable
,Recipe
public class CollectionRecipe extends AbstractRecipe
- Version:
- $Rev: 6685 $ $Date: 2005-12-28T00:29:37.967210Z $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
CollectionRecipe.UpdateCollection
private static class
CollectionRecipe.UpdateList
-
Constructor Summary
Constructors Constructor Description CollectionRecipe()
CollectionRecipe(java.lang.Class type)
CollectionRecipe(java.lang.String type)
CollectionRecipe(java.util.Collection<?> collection)
CollectionRecipe(CollectionRecipe collectionRecipe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.Object value)
void
addAll(java.util.Collection<?> value)
void
allow(Option option)
boolean
canCreate(java.lang.reflect.Type expectedType)
void
disallow(Option option)
java.util.List<java.lang.Object>
getAll()
private java.lang.Class
getCollection(java.lang.Class type)
java.util.List<Recipe>
getConstructorRecipes()
java.util.List<Recipe>
getNestedRecipes()
private java.lang.Class
getType(java.lang.reflect.Type expectedType)
protected java.lang.Object
internalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed)
void
remove(java.lang.Object value)
void
removeAll(java.lang.Object value)
void
setRegistry(PropertyEditorRegistry registry)
-
Methods inherited from class org.apache.xbean.recipe.AbstractRecipe
create, create, create, getName, getPriority, setName, toString
-
-
-
-
Field Detail
-
list
private final java.util.List<java.lang.Object> list
-
typeName
private java.lang.String typeName
-
typeClass
private java.lang.Class typeClass
-
registry
private PropertyEditorRegistry registry
-
options
private final java.util.EnumSet<Option> options
-
-
Constructor Detail
-
CollectionRecipe
public CollectionRecipe()
-
CollectionRecipe
public CollectionRecipe(java.lang.String type)
-
CollectionRecipe
public CollectionRecipe(java.lang.Class type)
-
CollectionRecipe
public CollectionRecipe(java.util.Collection<?> collection)
-
CollectionRecipe
public CollectionRecipe(CollectionRecipe collectionRecipe)
-
-
Method Detail
-
setRegistry
public void setRegistry(PropertyEditorRegistry registry)
-
allow
public void allow(Option option)
-
disallow
public void disallow(Option option)
-
getNestedRecipes
public java.util.List<Recipe> getNestedRecipes()
- Specified by:
getNestedRecipes
in interfaceRecipe
- Overrides:
getNestedRecipes
in classAbstractRecipe
-
getConstructorRecipes
public java.util.List<Recipe> getConstructorRecipes()
- Specified by:
getConstructorRecipes
in interfaceRecipe
- Overrides:
getConstructorRecipes
in classAbstractRecipe
-
canCreate
public boolean canCreate(java.lang.reflect.Type expectedType)
-
internalCreate
protected java.lang.Object internalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed) throws ConstructionException
- Specified by:
internalCreate
in classAbstractRecipe
- Throws:
ConstructionException
-
getType
private java.lang.Class getType(java.lang.reflect.Type expectedType)
-
getCollection
private java.lang.Class getCollection(java.lang.Class type)
-
add
public void add(java.lang.Object value)
-
addAll
public void addAll(java.util.Collection<?> value)
-
remove
public void remove(java.lang.Object value)
-
removeAll
public void removeAll(java.lang.Object value)
-
getAll
public java.util.List<java.lang.Object> getAll()
-
-