public static enum Clone.Policy extends Enum<Clone.Policy>
PropertyFactory when its PropertyFactory.clone(Property, int, Property,
 int) method is invoked in response to Entity.add(com.lhkbob.entreri.Component)
 or EntitySystem.addEntity(Entity).| Enum Constant and Description | 
|---|
DISABLE
Cloning policy that disables the clone action for the given property. 
 | 
INVOKE_CLONE
 Cloning policy that attempts to invoke  
Object.clone() on cloned
 component's current value. | 
JAVA_DEFAULT
 Cloning policy that follows Java's assignment semantics, e.g. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Clone.Policy | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static Clone.Policy[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Clone.Policy DISABLE
Entity.add(Class).public static final Clone.Policy JAVA_DEFAULT
public static final Clone.Policy INVOKE_CLONE
Object.clone() on cloned
 component's current value. If the value is null, null is assigned without
 throwing an NPE.
 
 If the property type is a primitive data type, or is not Cloneable,
 this behaves like JAVA_DEFAULT.public static Clone.Policy[] values()
for (Clone.Policy c : Clone.Policy.values()) System.out.println(c);
public static Clone.Policy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2013. All Rights Reserved.