Class IBslValidationContributor.ContextHolderAdapter

  • All Implemented Interfaces:
    org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
    Enclosing interface:
    IBslValidationContributor

    public static class IBslValidationContributor.ContextHolderAdapter
    extends org.eclipse.emf.common.notify.impl.AdapterImpl
    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 Detail

      • 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 Detail

      • 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