Package com._1c.g5.v8.dt.form.copypaste
Class TransferObject<T>
java.lang.Object
com._1c.g5.v8.dt.form.copypaste.TransferObject<T>
- Type Parameters:
T
- type for object to copy
- Direct Known Subclasses:
CommandTransferObject
,FormItemTransferObject
,FormParameterTransferObject
,IndependentCommandTransferObject
,MappingItemTransferObject
,ParameterizedCommandTransferObject
,PropertyInfoTransferObject
Package for copy-paste or DnD action.
Contains additional information from copy source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns object to copy.Returns source form.boolean
isObjectOfType
(Class<?> klass) Checks class for object to copy.
-
Constructor Details
-
TransferObject
The constructor.- Parameters:
objectToCopy
- object to copy, cannot benull
sourceForm
- form source, cannot benull
-
-
Method Details
-
getObject
Returns object to copy.- Returns:
- object to copy, never
null
-
getSourceForm
Returns source form.- Returns:
- source form, never
null
-
isObjectOfType
Checks class for object to copy.- Parameters:
klass
- some class, cannot benull
- Returns:
true
if the object to copy is instance of the given class
-