Class DependentQuerySchemaProvider
java.lang.Object
com._1c.g5.v8.dt.internal.ql.dcs.resource.DependentQuerySchemaProvider
- All Implemented Interfaces:
IDependentQuerySchemaProvider
This is a wrapper of
IDependentModelProvider
for QuerySchema
with DCS extension in query language.
This service hides from callers the logic of setting up context resource file path and extension.-
Constructor Summary
ConstructorsConstructorDescriptionDependentQuerySchemaProvider
(IDependentModelProvider dependentModelProvider, IResourceLookup resourceLookup, String resourceFileExt) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObject
getParent
(QuerySchema dependent) Gets the parent object of theQuerySchema
model object.org.eclipse.emf.ecore.EStructuralFeature
getParentFeature
(QuerySchema dependent) Gets the parent containing text feature of theQuerySchema
model object.getQuerySchema
(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature textFeature, BiFunction<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, String> textProvider, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Gets theQuerySchema
model by the source object and it's text feature provided.getQuerySchema
(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature textFeature, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Gets theQuerySchema
model by the source object and it's text feature.void
unload
(QuerySchema root) Explicitly unloadQuerySchema
model object from resource and remove linkage to the parent object.
-
Constructor Details
-
DependentQuerySchemaProvider
@Inject public DependentQuerySchemaProvider(IDependentModelProvider dependentModelProvider, IResourceLookup resourceLookup, String resourceFileExt)
-
-
Method Details
-
getQuerySchema
public QuerySchema getQuerySchema(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature textFeature, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Description copied from interface:IDependentQuerySchemaProvider
Gets theQuerySchema
model by the source object and it's text feature.- Specified by:
getQuerySchema
in interfaceIDependentQuerySchemaProvider
- Parameters:
source
- the source object, cannot benull
.textFeature
- the text feature of the source object, cannot benull
.cancelIndicator
- the cancel indicator, cannot benull
.- Returns:
- the dependent
QuerySchema
model, may returnnull
if cannot load .
-
getQuerySchema
public QuerySchema getQuerySchema(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature textFeature, BiFunction<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, String> textProvider, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Description copied from interface:IDependentQuerySchemaProvider
Gets theQuerySchema
model by the source object and it's text feature provided.- Specified by:
getQuerySchema
in interfaceIDependentQuerySchemaProvider
- Parameters:
source
- the source object, cannot benull
.textFeature
- the text feature of the source object, cannot benull
.textProvider
- the text provider of the dependent model, cannot benull
.cancelIndicator
- the cancel indicator, cannot benull
.- Returns:
- the dependent
QuerySchema
model, may benull
.
-
getParent
Description copied from interface:IDependentQuerySchemaProvider
Gets the parent object of theQuerySchema
model object.- Specified by:
getParent
in interfaceIDependentQuerySchemaProvider
- Parameters:
dependent
- the dependentQuerySchema
model object, cannot benull
.- Returns:
- the parent object of dependent model, may return
null
if the model is not linked to it's parent.
-
getParentFeature
Description copied from interface:IDependentQuerySchemaProvider
Gets the parent containing text feature of theQuerySchema
model object.- Specified by:
getParentFeature
in interfaceIDependentQuerySchemaProvider
- Parameters:
dependent
- the dependent model object, cannot benull
.- Returns:
- the parent text feature, may return
null
if the model is not linked to it's parent.
-
unload
Description copied from interface:IDependentQuerySchemaProvider
Explicitly unloadQuerySchema
model object from resource and remove linkage to the parent object.- Specified by:
unload
in interfaceIDependentQuerySchemaProvider
- Parameters:
root
- the root of dependentQuerySchema
model, cannot benull
.
-