Package com._1c.g5.v8.dt.bsl.validation
Class IBslValidationContributor.ContextHolderAdapter
java.lang.Object
com._1c.g5.v8.dt.bsl.validation.IBslValidationContributor.ContextHolderAdapter
- Enclosing interface:
- IBslValidationContributor
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 Summary
ConstructorsConstructorDescriptionContextHolderAdapter
(Map<Object, Object> context) Constructs an instance of the adapter -
Method Summary
Modifier and TypeMethodDescriptionGets the supplied context.getContextHolder
(org.eclipse.emf.ecore.resource.Resource resource) Finds and gets the validation context holder adapter if present
-
Constructor Details
-
ContextHolderAdapter
Constructs an instance of the adapter- Parameters:
context
- The context to transport within the adapter. May not benull
-
-
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 benull
- Returns:
- The context holder adapter. May be
null
-
getContext
Gets the supplied context.- Returns:
- The context. May not be
null
-