Package org.nuiton.jaxx.runtime.context
Class JAXXContextEntryDef<O>
- java.lang.Object
-
- org.nuiton.jaxx.runtime.context.JAXXContextEntryDef<O>
-
- Type Parameters:
O- type of the entry associated to the definition
- All Implemented Interfaces:
Serializable
public class JAXXContextEntryDef<O> extends Object implements Serializable
To qualify an entry in aJAXXContext. Use the factory methodsnewContextEntryDefandnewListContextEntryDefto obtain new instances.- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JAXXContextEntryDef(Class<Map> mapClass, String name)Special constructor for map, otherwise it is not possible to cast to OJAXXContextEntryDef(Class<O> klass)JAXXContextEntryDef(String name, Class<O> klass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Class<?> klass, String name)booleanaccept2(Class<?> klass, String name)booleanequals(Object o)OgetContextValue(JAXXContext context)Class<O>getKlass()StringgetName()inthashCode()voidremoveContextValue(JAXXContext context)voidsetContextValue(JAXXContext context, O value)StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
-
getContextValue
public O getContextValue(JAXXContext context)
-
removeContextValue
public void removeContextValue(JAXXContext context)
-
setContextValue
public void setContextValue(JAXXContext context, O value)
-
-