public class JAXXContexts extends Object
| Constructor and Description |
|---|
JAXXContexts() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkJAXXContextEntries(JAXXContext context,
JAXXContextEntryDef<?>... defs)
Test if some entries exists in a given context and throw an
IllegalArgumentException if not.
|
static <T> T |
checkJAXXContextEntry(JAXXContext context,
JAXXContextEntryDef<T> def)
Test if a type of entry exists in a given context and throw an
IllegalArgumentException if not found.
|
static void |
initContext(JAXXObject ui,
JAXXContext parentContext)
Method to initialize the context of a ui.
|
static <O> JAXXContextEntryDef<O> |
newContextEntryDef(Class<O> klass) |
static <O> JAXXContextEntryDef<O> |
newContextEntryDef(String name,
Class<?> klass) |
static <O> JAXXContextEntryDef<List<O>> |
newListContextEntryDef() |
static <O> JAXXContextEntryDef<List<O>> |
newListContextEntryDef(String name) |
static <K,V> JAXXContextEntryDef<Map<K,V>> |
newMapContextEntryDef(String name) |
public static final String PARENT
public static <O> JAXXContextEntryDef<O> newContextEntryDef(Class<O> klass)
public static <O> JAXXContextEntryDef<O> newContextEntryDef(String name, Class<?> klass)
public static <O> JAXXContextEntryDef<List<O>> newListContextEntryDef()
public static <O> JAXXContextEntryDef<List<O>> newListContextEntryDef(String name)
public static <K,V> JAXXContextEntryDef<Map<K,V>> newMapContextEntryDef(String name)
public static void initContext(JAXXObject ui, JAXXContext parentContext)
ui - the uiparentContext - the context to set in uipublic static void checkJAXXContextEntries(JAXXContext context, JAXXContextEntryDef<?>... defs) throws IllegalArgumentException
context - the context to testdefs - the definitions of entries to seek in contextIllegalArgumentException - if the entry is not found in context.public static <T> T checkJAXXContextEntry(JAXXContext context, JAXXContextEntryDef<T> def) throws IllegalArgumentException
T - the type of required datacontext - the context to testdef - the definition of the entry to seek in contextIllegalArgumentException - if the entry is not found in context.Copyright © 2008–2015 CodeLutin. All rights reserved.