OptionCopier
public
class
OptionCopier
extends Object
java.lang.Object | |
↳ | com.android.tradefed.config.OptionCopier |
A helper class that can copy Option
field values with same names from one object to
another.
Summary
Public constructors | |
---|---|
OptionCopier()
|
Public methods | |
---|---|
static
void
|
copyOptions(Object origObject, Object destObject, String optionName)
Copy the given option from |
static
void
|
copyOptions(Object origObject, Object destObject)
Copy the values from |
static
void
|
copyOptionsNoThrow(Object source, Object dest)
Identical to |
static
void
|
copyOptionsNoThrow(Object source, Object dest, String optionName)
Identical to |
Public constructors
OptionCopier
public OptionCopier ()
Public methods
copyOptions
public static void copyOptions (Object origObject, Object destObject, String optionName)
Copy the given option from Option
fields in origObject to
destObject
Parameters | |
---|---|
origObject |
Object : the Object to copy from |
destObject |
Object : the Object tp copy to |
optionName |
String : the name of the option to copy. |
Throws | |
---|---|
ConfigurationException |
if options failed to copy |
copyOptions
public static void copyOptions (Object origObject, Object destObject)
Copy the values from Option
fields in origObject to destObject
Parameters | |
---|---|
origObject |
Object : the Object to copy from |
destObject |
Object : the Object tp copy to |
Throws | |
---|---|
ConfigurationException |
if options failed to copy |
copyOptionsNoThrow
public static void copyOptionsNoThrow (Object source, Object dest)
Identical to copyOptions(Object, Object)
but will log instead of throw if exception
occurs.
Parameters | |
---|---|
source |
Object |
dest |
Object |
copyOptionsNoThrow
public static void copyOptionsNoThrow (Object source, Object dest, String optionName)
Identical to copyOptions(Object, Object, String)
but will log instead of throw if
exception occurs.
Parameters | |
---|---|
source |
Object |
dest |
Object |
optionName |
String |