Package com._1c.g5.v8.dt.bsl.validation
Class IBslValidationContributor.ContextHolderAdapter
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterImpl
-
- com._1c.g5.v8.dt.bsl.validation.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 theIResource
being validate. Used to overcome the limitations of the Xtext validation API
-
-
Constructor Summary
Constructors Constructor Description ContextHolderAdapter(Map<Object,Object> context)
Constructs an instance of the adapter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Object,Object>
getContext()
Gets the supplied context.static IBslValidationContributor.ContextHolderAdapter
getContextHolder(org.eclipse.emf.ecore.resource.Resource resource)
Finds and gets the validation context holder adapter if present
-
-
-
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 benull
- Returns:
- The context holder adapter. May be
null
-
-