Package com._1c.g5.v8.dt.form.copypaste
Class TransferObjectFactory
- java.lang.Object
-
- com._1c.g5.v8.dt.form.copypaste.TransferObjectFactory
-
public final class TransferObjectFactory extends Object
TransferObject
factory, creates specialized instances depending of the copy object type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransferObject<?>
create(Object objectToCopy, Form sourceForm)
Creates specialized instance depending of the copy object type.static TransferObject<?>
create(Object objectToCopy, Form sourceForm, AbstractDataPath path)
Creates specialized instance depending of the copy object type.
-
-
-
Method Detail
-
create
public static TransferObject<?> create(Object objectToCopy, Form sourceForm)
Creates specialized instance depending of the copy object type.- Parameters:
objectToCopy
- object to copy, cannot benull
sourceForm
- the form that corresponds to the object to copy, cannot benull
- Returns:
TransferObject
-based instance, nevernull
-
create
public static TransferObject<?> create(Object objectToCopy, Form sourceForm, AbstractDataPath path)
Creates specialized instance depending of the copy object type.- Parameters:
objectToCopy
- object to copy, cannot benull
sourceForm
- the form that corresponds to the object to copy, cannot benull
path
- the data path that corresponds to the object to copy, cannot benull
- Returns:
TransferObject
-based instance, nevernull
-
-