Package com._1c.g5.v8.dt.md.resource
Class MdObjectDynamicTypesProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.md.resource.MdObjectDynamicTypesProvider
-
public class MdObjectDynamicTypesProvider extends Object
Contains special methods and properties for working with md object dynamic types inMdContextDefInferrer
-
-
Constructor Summary
Constructors Constructor Description MdObjectDynamicTypesProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsDynamicObjectType(org.eclipse.emf.ecore.EObject mdObject, List<TypeItem> types)
Checks thattypes
contains produced types frommdObject
boolean
isDynamicObjectType(org.eclipse.emf.ecore.EObject mdObject, TypeItem type)
Checks thattype
is produced types frommdObject
Method
replaceDynamicObjectType(org.eclipse.emf.ecore.EObject mdObject, Method method)
Replaces returned dynamic object type frommethod
to corresponding dynamic object type ofmdObject
Property
replaceDynamicObjectType(org.eclipse.emf.ecore.EObject mdObject, Property property)
Replaces returned dynamic object type fromproperty
to corresponding dynamic object type ofmdObject
Type
replaceDynamicObjectTypeForCollectionElement(org.eclipse.emf.ecore.EObject mdObject, Type baseType, Type producedType)
Replaces collection element type frombaseType
to corresponding dynamic object type ofmdObject
Event
replaceDynamicObjectTypeForEventParameters(org.eclipse.emf.ecore.EObject mdObject, Event event)
Replaces dynamic object type inevent
parameters to corresponding dynamic object type ofmdObject
List<TypeItem>
replaceDynamicObjectTypeForTypesList(org.eclipse.emf.ecore.EObject mdObject, Collection<TypeItem> types)
Replaces dynamic object type in list of types to corresponding dynamic object type ofmdObject
-
-
-
Method Detail
-
containsDynamicObjectType
public boolean containsDynamicObjectType(org.eclipse.emf.ecore.EObject mdObject, List<TypeItem> types)
Checks thattypes
contains produced types frommdObject
- Parameters:
mdObject
- metadata object, can't benull
types
- checking types, can't benull
- Returns:
true
if we found dynamic object types intypes
-
isDynamicObjectType
public boolean isDynamicObjectType(org.eclipse.emf.ecore.EObject mdObject, TypeItem type)
Checks thattype
is produced types frommdObject
- Parameters:
mdObject
- metadata object, can't benull
type
- checking type, can't benull
- Returns:
true
iftype
is dynamic object type
-
replaceDynamicObjectType
public Property replaceDynamicObjectType(org.eclipse.emf.ecore.EObject mdObject, Property property)
Replaces returned dynamic object type fromproperty
to corresponding dynamic object type ofmdObject
-
replaceDynamicObjectType
public Method replaceDynamicObjectType(org.eclipse.emf.ecore.EObject mdObject, Method method)
Replaces returned dynamic object type frommethod
to corresponding dynamic object type ofmdObject
-
replaceDynamicObjectTypeForCollectionElement
public Type replaceDynamicObjectTypeForCollectionElement(org.eclipse.emf.ecore.EObject mdObject, Type baseType, Type producedType)
Replaces collection element type frombaseType
to corresponding dynamic object type ofmdObject
- Parameters:
mdObject
- metadata object, can't benull
producedType
- processingType
, can't benull
- Returns:
baseType
with actual collection element dynamic types, if it's iterable
-
replaceDynamicObjectTypeForEventParameters
public Event replaceDynamicObjectTypeForEventParameters(org.eclipse.emf.ecore.EObject mdObject, Event event)
Replaces dynamic object type inevent
parameters to corresponding dynamic object type ofmdObject
-
replaceDynamicObjectTypeForTypesList
public List<TypeItem> replaceDynamicObjectTypeForTypesList(org.eclipse.emf.ecore.EObject mdObject, Collection<TypeItem> types)
Replaces dynamic object type in list of types to corresponding dynamic object type ofmdObject
- Parameters:
mdObject
- metadata object, can't benull
types
- processing processing list of types, can't benull
- Returns:
- list of types with replaced dynamic object type, never
null
-
-