com.jme.util
Class CloneConfiguration

java.lang.Object
  extended by com.jme.util.CloneConfiguration

public class CloneConfiguration
extends java.lang.Object

A set of configuration describing how fields will be treated during the cloning process including ignoring and shallow copying fields by name.

Version:
$Id: CloneConfiguration.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
kevin

Field Summary
static CloneConfiguration SHARED_COLOR_AND_TEXTURE_BUFFER_CLONE
          A configuration that specifies that color and texture buffers should be shared between copies
static CloneConfiguration SHARED_GEOM_BUFFER_CLONE
          A configuration that specifies that all geometry buffers should be shared between copies
 
Constructor Summary
CloneConfiguration()
          Create a new empty clone configuration
CloneConfiguration(java.lang.String[] ignore, java.lang.String[] shal)
          Create a configuration
 
Method Summary
 void addIgnoredField(java.lang.String name)
          Add an ignored field
 void addShallowCopyField(java.lang.String name)
          Add a fied to be shallow copied
 java.util.ArrayList<java.lang.String> getIgnored()
          Get the list of fields to be ignored
 java.util.ArrayList<java.lang.String> getShallow()
          Get the list of fields to be shallow copied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHARED_GEOM_BUFFER_CLONE

public static final CloneConfiguration SHARED_GEOM_BUFFER_CLONE
A configuration that specifies that all geometry buffers should be shared between copies


SHARED_COLOR_AND_TEXTURE_BUFFER_CLONE

public static final CloneConfiguration SHARED_COLOR_AND_TEXTURE_BUFFER_CLONE
A configuration that specifies that color and texture buffers should be shared between copies

Constructor Detail

CloneConfiguration

public CloneConfiguration()
Create a new empty clone configuration


CloneConfiguration

public CloneConfiguration(java.lang.String[] ignore,
                          java.lang.String[] shal)
Create a configuration

Parameters:
ignore - The list of fields to ignore
shal - The list of fields to shallow copy
Method Detail

addIgnoredField

public void addIgnoredField(java.lang.String name)
Add an ignored field

Parameters:
name - The name of the field to ignore during the cloning process

addShallowCopyField

public void addShallowCopyField(java.lang.String name)
Add a fied to be shallow copied

Parameters:
name - The name of the field to ignore during the cloning process

getIgnored

public java.util.ArrayList<java.lang.String> getIgnored()
Get the list of fields to be ignored

Returns:
The list of fields to be ignored

getShallow

public java.util.ArrayList<java.lang.String> getShallow()
Get the list of fields to be shallow copied

Returns:
The list of fields to be shallow copied