|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mmm.util.collection.base.AbstractClassHierarchieMap<E>
net.sf.mmm.util.collection.base.AdvancedClassHierarchieMap<ComposedValueConverterImpl.ComposedTargetTypeConverter<?>>
net.sf.mmm.util.value.impl.ComposedValueConverterImpl.TargetClass2ConverterMap
protected class ComposedValueConverterImpl.TargetClass2ConverterMap
This inner class is an AdvancedClassHierarchieMap
for
ComposedValueConverterImpl.ComposedTargetTypeConverter
s.
Constructor Summary | |
---|---|
ComposedValueConverterImpl.TargetClass2ConverterMap()
The constructor. |
|
ComposedValueConverterImpl.TargetClass2ConverterMap(MapFactory<Map> mapFactory)
The constructor. |
Method Summary | |
---|---|
protected Class<?> |
getClass(ComposedValueConverterImpl.ComposedTargetTypeConverter<?> element)
This method gets the associated type for the given
element . |
protected boolean |
isAccepted(Class<?> type)
This method determines whether the given type is accepted in
the hierarchy. |
ComposedValueConverterImpl.ComposedTargetTypeConverter<?> |
put(Class<?> type,
ComposedValueConverterImpl.ComposedTargetTypeConverter<?> element)
This method registers the given element for the given
type . |
Methods inherited from class net.sf.mmm.util.collection.base.AdvancedClassHierarchieMap |
---|
isPreferable, put |
Methods inherited from class net.sf.mmm.util.collection.base.AbstractClassHierarchieMap |
---|
get |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComposedValueConverterImpl.TargetClass2ConverterMap()
public ComposedValueConverterImpl.TargetClass2ConverterMap(MapFactory<Map> mapFactory)
mapFactory
- is the factory used to create the internal Map
.Method Detail |
---|
protected Class<?> getClass(ComposedValueConverterImpl.ComposedTargetTypeConverter<?> element)
type
for the given
element
.
getClass
in class AdvancedClassHierarchieMap<ComposedValueConverterImpl.ComposedTargetTypeConverter<?>>
element
- is the element for which the type
is
requested.
Class
of the given element
.public ComposedValueConverterImpl.ComposedTargetTypeConverter<?> put(Class<?> type, ComposedValueConverterImpl.ComposedTargetTypeConverter<?> element)
element
for the given
type
. Unlike a regular Map
this method will also
recursively put the given element
for all
super-classes
and
super-interfaces
of the given
type
.
put
in class AbstractClassHierarchieMap<ComposedValueConverterImpl.ComposedTargetTypeConverter<?>>
type
- is the Class
used as key to associate the given
element
.element
- is the element to put.
type
and has NOW been replaced with
element
.Map.put(Object, Object)
protected boolean isAccepted(Class<?> type)
type
is accepted in
the hierarchy.marker-interfaces
).
isAccepted
in class AbstractClassHierarchieMap<ComposedValueConverterImpl.ComposedTargetTypeConverter<?>>
type
- is the Class
reflecting the type to check.
true
if the given type
should be
accepted, false
to ignore type
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |