Class IBslValidationContributor.ContextHolderAdapter

java.lang.Object
com._1c.g5.v8.dt.bsl.validation.IBslValidationContributor.ContextHolderAdapter
Enclosing interface:
IBslValidationContributor

public static class IBslValidationContributor.ContextHolderAdapter extends Object
Adapter that holds the provided context. Used to tarnsport the externally provided context via the IResource being validate. Used to overcome the limitations of the Xtext validation API
  • Constructor Details

    • ContextHolderAdapter

      public ContextHolderAdapter(Map<Object,Object> context)
      Constructs an instance of the adapter
      Parameters:
      context - The context to transport within the adapter. May not be null
  • Method Details

    • getContextHolder

      public static IBslValidationContributor.ContextHolderAdapter getContextHolder(org.eclipse.emf.ecore.resource.Resource resource)
      Finds and gets the validation context holder adapter if present
      Parameters:
      resource - The resource to check for the adapter. May not be null
      Returns:
      The context holder adapter. May be null
    • getContext

      public Map<Object,Object> getContext()
      Gets the supplied context.
      Returns:
      The context. May not be null