public class ObjectDescriptorRegistry
extends java.lang.Object
ObjectDescriptors.| Constructor and Description |
|---|
ObjectDescriptorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
ObjectDescriptor |
getDescriptor(java.lang.Class<?> clazz) |
ObjectDescriptor |
getDescriptor(java.lang.reflect.Type type) |
java.util.LinkedList<ObjectDescriptor> |
getDescriptorsForType(java.lang.reflect.Type type)
Returns a
List of ObjectDescriptors that describe
how to map to and from the given type and it's class hieararchy. |
boolean |
hasDescriptor(java.lang.Class<?> clazz) |
boolean |
hasDescriptor(java.lang.reflect.Type type) |
void |
registerDescriptor(ObjectDescriptor descriptor)
Registers an
ObjectDescriptor. |
public void registerDescriptor(ObjectDescriptor descriptor)
ObjectDescriptor.descriptor - the ObjectDescriptorpublic boolean hasDescriptor(java.lang.Class<?> clazz)
clazz - the clazzpublic boolean hasDescriptor(java.lang.reflect.Type type)
type - the typepublic ObjectDescriptor getDescriptor(java.lang.Class<?> clazz)
clazz - the clazzpublic ObjectDescriptor getDescriptor(java.lang.reflect.Type type)
type - the typepublic java.util.LinkedList<ObjectDescriptor> getDescriptorsForType(java.lang.reflect.Type type)
List of ObjectDescriptors that describe
how to map to and from the given type and it's class hieararchy.type - the typeListCopyright © 2013. All Rights Reserved.