Class AbstractUObjectConverterForCollectionTypes
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.core.uconverter.AbstractUObjectConverter
-
- com._1c.g5.v8.dt.platform.core.uconverter.AbstractUObjectConverterForDynamicTypes
-
- com._1c.g5.v8.dt.platform.core.uconverter.AbstractUObjectConverterForCollectionTypes
-
- All Implemented Interfaces:
IUObjectConverter
- Direct Known Subclasses:
AccountingRegisterConverter
,AccumulationRegisterConverter
,CalculationRegisterConverter
,ExternalDataSourceCubeRecordSetConverter
,InformationRegisterRecordSetConverter
,MdTableConverter
,SelectConditionConverter
,ValueTableConverter
public abstract class AbstractUObjectConverterForCollectionTypes extends AbstractUObjectConverterForDynamicTypes
Abstract implementation ofAbstractUObjectConverterForDynamicTypes
for iterable types (MdTable, ValueTable)
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.platform.core.uconverter.AbstractUObjectConverterForDynamicTypes
converter
-
Fields inherited from class com._1c.g5.v8.dt.platform.core.uconverter.AbstractUObjectConverter
allowedRuntimeVersion, allowedTypeNames, converterServiceProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractUObjectConverterForCollectionTypes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDerivedProperty(TypeItem typeItem, TypeItem newUType, Version version, Map<String,TypeItem> earlierComputedUTypes, org.eclipse.emf.ecore.resource.Resource resource)
Add derived property from base type of element in collection in base iterable type to converting element of collection typeTypeItem
convert(TypeItem type, Version version, Map<String,TypeItem> earlierComputedUTypes, org.eclipse.emf.ecore.resource.Resource resource)
ConvertsTypeItem
to universal typeprotected void
replaceAllMethodRetValType(TypeItem type, Type newItemType)
Change returning type of method in converted base iterable type-
Methods inherited from class com._1c.g5.v8.dt.platform.core.uconverter.AbstractUObjectConverterForDynamicTypes
addMethodsFromUniversalType, filteringPropertiesByVisibility, getNameBaseUType, getNameBaseUTypeRu, isAppropriate
-
Methods inherited from class com._1c.g5.v8.dt.platform.core.uconverter.AbstractUObjectConverter
addAllowedruntimeVersion, addAllowedTypeName, getAllAllowedTypeNames, recomputePropertyTypes
-
-
-
-
Method Detail
-
convert
public TypeItem convert(TypeItem type, Version version, Map<String,TypeItem> earlierComputedUTypes, org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface:IUObjectConverter
ConvertsTypeItem
to universal type- Specified by:
convert
in interfaceIUObjectConverter
- Overrides:
convert
in classAbstractUObjectConverterForDynamicTypes
- Parameters:
type
- convertingTypeItem
, can't benull
version
- actual configuration version for convertingtype
. Can't benull
earlierComputedUTypes
- map - (type name; its universal type), can benull
if universal types weren't computed earlierresource
- actualResource
for resolving, can't benull
- Returns:
- universal type corresponding to
type
. Nevernull
-
addDerivedProperty
protected void addDerivedProperty(TypeItem typeItem, TypeItem newUType, Version version, Map<String,TypeItem> earlierComputedUTypes, org.eclipse.emf.ecore.resource.Resource resource)
Add derived property from base type of element in collection in base iterable type to converting element of collection type- Parameters:
typeItem
- base type of element in collection in base iterable type, can't benull
newUType
- converted iterable type, can't benull
version
- actual version, can't benull
earlierComputedUTypes
- map - (type name; its universal type), can benull
if universal types weren't computed earlierresource
- actualResource
for resolving, can't benull
-
replaceAllMethodRetValType
protected void replaceAllMethodRetValType(TypeItem type, Type newItemType)
Change returning type of method in converted base iterable type- Parameters:
type
- converted base iterable type, can't benull
newItemType
- converted type of element in collection in converted base iterable type, can't benull
-
-