public class ArrayRecipe extends AbstractRecipe
Modifier and Type | Class and Description |
---|---|
private static class |
ArrayRecipe.UpdateArray |
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Object> |
list |
private java.util.EnumSet<Option> |
options |
private PropertyEditorRegistry |
registry |
private java.lang.Class |
typeClass |
private java.lang.String |
typeName |
Constructor and Description |
---|
ArrayRecipe() |
ArrayRecipe(ArrayRecipe collectionRecipe) |
ArrayRecipe(java.lang.Class type) |
ArrayRecipe(java.lang.String type) |
Modifier and Type | Method and 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) |
create, create, create, getName, getPriority, setName, toString
private final java.util.List<java.lang.Object> list
private java.lang.String typeName
private java.lang.Class typeClass
private PropertyEditorRegistry registry
private final java.util.EnumSet<Option> options
public ArrayRecipe()
public ArrayRecipe(java.lang.String type)
public ArrayRecipe(java.lang.Class type)
public ArrayRecipe(ArrayRecipe collectionRecipe)
public void setRegistry(PropertyEditorRegistry registry)
public void allow(Option option)
public void disallow(Option option)
public java.util.List<Recipe> getNestedRecipes()
getNestedRecipes
in interface Recipe
getNestedRecipes
in class AbstractRecipe
public java.util.List<Recipe> getConstructorRecipes()
getConstructorRecipes
in interface Recipe
getConstructorRecipes
in class AbstractRecipe
public boolean canCreate(java.lang.reflect.Type expectedType)
protected java.lang.Object internalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed) throws ConstructionException
internalCreate
in class AbstractRecipe
ConstructionException
private java.lang.Class getType(java.lang.reflect.Type expectedType)
public void add(java.lang.Object value)
public void addAll(java.util.Collection<?> value)
public void remove(java.lang.Object value)
public void removeAll(java.lang.Object value)
public java.util.List<java.lang.Object> getAll()