|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.util.CloneConfiguration
public class CloneConfiguration
A set of configuration describing how fields will be treated during the cloning process including ignoring and shallow copying fields by name.
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 |
---|
public static final CloneConfiguration SHARED_GEOM_BUFFER_CLONE
public static final CloneConfiguration SHARED_COLOR_AND_TEXTURE_BUFFER_CLONE
Constructor Detail |
---|
public CloneConfiguration()
public CloneConfiguration(java.lang.String[] ignore, java.lang.String[] shal)
ignore
- The list of fields to ignoreshal
- The list of fields to shallow copyMethod Detail |
---|
public void addIgnoredField(java.lang.String name)
name
- The name of the field to ignore during the cloning processpublic void addShallowCopyField(java.lang.String name)
name
- The name of the field to ignore during the cloning processpublic java.util.ArrayList<java.lang.String> getIgnored()
public java.util.ArrayList<java.lang.String> getShallow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |