Package com._1c.g5.v8.dt.ql.dcs.resource
Interface IDependentQuerySchemaProvider
- 
 public interface IDependentQuerySchemaProviderThe service allows to load dependentQuerySchemamodel from source text feature of some object and can hold model mapped to parent object and feature. This prevents to load dependent model multiple times for each purpose of callers.As examples, StringLiteralin module contains feature "lines" with text of Query schema which can be parsed by Xtext in separate resource. Also, DCS contains DataSet with query text, as well some other object contains expression text feature that loads into Expression Language object.
 WARNING!
 - This dependent model should be use as read-only model, otherwise the link to parent will be removed and dependent resource will be unloaded.
- If source text feature or source object has changed the link to dependent model will be removed and dependent resource will be unloaded.
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObjectgetParent(QuerySchema dependent)Gets the parent object of theQuerySchemamodel object.org.eclipse.emf.ecore.EStructuralFeaturegetParentFeature(QuerySchema dependent)Gets the parent containing text feature of theQuerySchemamodel object.QuerySchemagetQuerySchema(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 theQuerySchemamodel by the source object and it's text feature provided.QuerySchemagetQuerySchema(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature textFeature, org.eclipse.xtext.util.CancelIndicator cancelIndicator)Gets theQuerySchemamodel by the source object and it's text feature.voidunload(QuerySchema root)Explicitly unloadQuerySchemamodel object from resource and remove linkage to the parent object.
 
- 
- 
- 
Method Detail- 
getQuerySchemaQuerySchema getQuerySchema(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature textFeature, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Gets theQuerySchemamodel by the source object and it's text feature.- Parameters:
- source- the source object, cannot be- null.
- textFeature- the text feature of the source object, cannot be- null.
- cancelIndicator- the cancel indicator, cannot be- null.
- Returns:
- the dependent QuerySchemamodel, may returnnullif cannot load .
 
 - 
getQuerySchemaQuerySchema 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 theQuerySchemamodel by the source object and it's text feature provided.- Parameters:
- source- the source object, cannot be- null.
- textFeature- the text feature of the source object, cannot be- null.
- textProvider- the text provider of the dependent model, cannot be- null.
- cancelIndicator- the cancel indicator, cannot be- null.
- Returns:
- the dependent QuerySchemamodel, may benull.
 
 - 
getParentorg.eclipse.emf.ecore.EObject getParent(QuerySchema dependent) Gets the parent object of theQuerySchemamodel object.- Parameters:
- dependent- the dependent- QuerySchemamodel object, cannot be- null.
- Returns:
- the parent object of dependent model, may return nullif the model is not linked to it's parent.
 
 - 
getParentFeatureorg.eclipse.emf.ecore.EStructuralFeature getParentFeature(QuerySchema dependent) Gets the parent containing text feature of theQuerySchemamodel object.- Parameters:
- dependent- the dependent model object, cannot be- null.
- Returns:
- the parent text feature, may return nullif the model is not linked to it's parent.
 
 - 
unloadvoid unload(QuerySchema root) Explicitly unloadQuerySchemamodel object from resource and remove linkage to the parent object.- Parameters:
- root- the root of dependent- QuerySchemamodel, cannot be- null.
 
 
- 
 
-