Package org.apache.xbean.recipe
Class ArrayRecipe
- java.lang.Object
-
- org.apache.xbean.recipe.AbstractRecipe
-
- org.apache.xbean.recipe.ArrayRecipe
-
- All Implemented Interfaces:
java.io.Serializable
,Recipe
public class ArrayRecipe extends AbstractRecipe
- Version:
- $Rev: 1837693 $ $Date: 2018-08-09 09:36:49 +0200 (Thu, 09 Aug 2018) $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ArrayRecipe.UpdateArray
-
Constructor Summary
Constructors Constructor Description ArrayRecipe()
ArrayRecipe(java.lang.Class type)
ArrayRecipe(java.lang.String type)
ArrayRecipe(ArrayRecipe 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()
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
-
ArrayRecipe
public ArrayRecipe()
-
ArrayRecipe
public ArrayRecipe(java.lang.String type)
-
ArrayRecipe
public ArrayRecipe(java.lang.Class type)
-
ArrayRecipe
public ArrayRecipe(ArrayRecipe 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)
-
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()
-
-