org.jpu.patterns.common
Class CopyOptions

java.lang.Object
  extended byorg.jpu.patterns.common.CopyOptions

public class CopyOptions
extends java.lang.Object

Class used by clients to pass options to JPUBeanUtils.copy(java.lang.Object, java.lang.Object) governing how the copying is performed.


Field Summary
 java.util.Set attributesToCopy
           
 java.util.Set attributesToIgnore
           
 java.lang.Class[] destClasses
           
 boolean dontPopulateMap
           
 boolean ignoreNulls
           
 boolean includeDestSuperclassAttributes
           
 boolean includeSourceSuperclassAttributes
           
 java.lang.Class[] sourceClasses
           
 java.util.Map unmatchedAttributes
           
 
Constructor Summary
CopyOptions()
           
 
Method Summary
static CopyOptions defaultIfNull(CopyOptions o)
           
 java.util.Set getAttributesToCopy()
           
 java.util.Set getAttributesToIgnore()
           
 java.lang.Class[] getDestClasses()
           
 boolean getDontPopulate()
           
 boolean getIgnoreNulls()
           
 boolean getIncludeDestSuperclassAttributes()
           
 boolean getIncludeSourceSuperclassAttributes()
           
 java.lang.Class[] getSourceClasses()
           
 java.util.Map getUnmatchedAttributes()
           
 CopyOptions setAttributesToCopy(java.util.Set set)
           
 CopyOptions setAttributesToIgnore(java.util.Set set)
           
 CopyOptions setDestClasses(java.lang.Class[] c)
           
 CopyOptions setDontPopulateMap(boolean b)
           
 CopyOptions setIgnoreNulls(boolean b)
           
 CopyOptions setIncludeDestSuperclassAttributes(boolean x)
           
 CopyOptions setIncludeSourceSuperclassAttributes(boolean x)
           
 CopyOptions setSourceClasses(java.lang.Class[] c)
           
 CopyOptions setUnmatchedAttributes(java.util.Map map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreNulls

public boolean ignoreNulls

dontPopulateMap

public boolean dontPopulateMap

sourceClasses

public java.lang.Class[] sourceClasses

destClasses

public java.lang.Class[] destClasses

attributesToCopy

public java.util.Set attributesToCopy

attributesToIgnore

public java.util.Set attributesToIgnore

unmatchedAttributes

public java.util.Map unmatchedAttributes

includeSourceSuperclassAttributes

public boolean includeSourceSuperclassAttributes

includeDestSuperclassAttributes

public boolean includeDestSuperclassAttributes
Constructor Detail

CopyOptions

public CopyOptions()
Method Detail

defaultIfNull

public static CopyOptions defaultIfNull(CopyOptions o)

setIgnoreNulls

public CopyOptions setIgnoreNulls(boolean b)

setDontPopulateMap

public CopyOptions setDontPopulateMap(boolean b)

setSourceClasses

public CopyOptions setSourceClasses(java.lang.Class[] c)

setDestClasses

public CopyOptions setDestClasses(java.lang.Class[] c)

setAttributesToCopy

public CopyOptions setAttributesToCopy(java.util.Set set)

setIncludeSourceSuperclassAttributes

public CopyOptions setIncludeSourceSuperclassAttributes(boolean x)

setIncludeDestSuperclassAttributes

public CopyOptions setIncludeDestSuperclassAttributes(boolean x)

setAttributesToIgnore

public CopyOptions setAttributesToIgnore(java.util.Set set)

setUnmatchedAttributes

public CopyOptions setUnmatchedAttributes(java.util.Map map)

getIgnoreNulls

public boolean getIgnoreNulls()

getDontPopulate

public boolean getDontPopulate()

getSourceClasses

public java.lang.Class[] getSourceClasses()

getDestClasses

public java.lang.Class[] getDestClasses()

getAttributesToCopy

public java.util.Set getAttributesToCopy()

getAttributesToIgnore

public java.util.Set getAttributesToIgnore()

getUnmatchedAttributes

public java.util.Map getUnmatchedAttributes()

getIncludeSourceSuperclassAttributes

public boolean getIncludeSourceSuperclassAttributes()

getIncludeDestSuperclassAttributes

public boolean getIncludeDestSuperclassAttributes()


Copyright (c) 2001-2003 - Apache Software Foundation