org.jpu.patterns.common
Class CopyOptions
java.lang.Object
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CopyOptions
public CopyOptions()
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