Class DependentQuerySchemaProvider

java.lang.Object
com._1c.g5.v8.dt.internal.ql.dcs.resource.DependentQuerySchemaProvider
All Implemented Interfaces:
IDependentQuerySchemaProvider

public class DependentQuerySchemaProvider extends Object implements 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 Details

  • 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 the QuerySchema model by the source object and it's text feature.
      Specified by:
      getQuerySchema in interface IDependentQuerySchemaProvider
      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 QuerySchema model, may return null 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 the QuerySchema model by the source object and it's text feature provided.
      Specified by:
      getQuerySchema in interface IDependentQuerySchemaProvider
      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 QuerySchema model, may be null.
    • getParent

      public org.eclipse.emf.ecore.EObject getParent(QuerySchema dependent)
      Description copied from interface: IDependentQuerySchemaProvider
      Gets the parent object of the QuerySchema model object.
      Specified by:
      getParent in interface IDependentQuerySchemaProvider
      Parameters:
      dependent - the dependent QuerySchema model object, cannot be null.
      Returns:
      the parent object of dependent model, may return null if the model is not linked to it's parent.
    • getParentFeature

      public org.eclipse.emf.ecore.EStructuralFeature getParentFeature(QuerySchema dependent)
      Description copied from interface: IDependentQuerySchemaProvider
      Gets the parent containing text feature of the QuerySchema model object.
      Specified by:
      getParentFeature in interface IDependentQuerySchemaProvider
      Parameters:
      dependent - the dependent model object, cannot be null.
      Returns:
      the parent text feature, may return null if the model is not linked to it's parent.
    • unload

      public void unload(QuerySchema root)
      Description copied from interface: IDependentQuerySchemaProvider
      Explicitly unload QuerySchema model object from resource and remove linkage to the parent object.
      Specified by:
      unload in interface IDependentQuerySchemaProvider
      Parameters:
      root - the root of dependent QuerySchema model, cannot be null.