public final class ContextUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | apply(ComposedAdapterFactory.Descriptor adapterFactoryDescriptor,
     Map<Object,Object> context)Returns whether the adapter factory should be applied in the given context. | 
| static boolean | isNullContext(Map<Object,Object> context)Evaluates whether the given context is a null context, i.e., the context itself is null, it has no
 entries or all its values are null. | 
public static boolean apply(ComposedAdapterFactory.Descriptor adapterFactoryDescriptor, Map<Object,Object> context)
adapterFactoryDescriptor - the ComposedAdapterFactory.Descriptor containing the adapter factory and possibly a
            context testercontext - the contextfalse if the descriptor's context tester indicates no responsibility for the given
         comparison, true otherwise.IContextTester.apply(Map)public static boolean isNullContext(Map<Object,Object> context)
context - the contexttrue if the context is null, empty or all its values are null, false otherwise.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.