public class TypeMappings extends Object
TypeMappings| Constructor and Description |
|---|
TypeMappings() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(TypeMapping mapping)
add a mapping for this
TypeMapping's type and alias |
TypeMapping |
findTypeMapping(Class<?> type) |
TypeMapping |
findTypeMapping(Object o) |
TypeMapping |
findTypeMapping(String typeAlias) |
String[] |
getMappedAliases() |
Class<?>[] |
getMappedTypes() |
TypeMapping |
getTypeMapping(Class<?> type) |
TypeMapping |
getTypeMapping(Object o) |
TypeMapping |
getTypeMapping(String typeAlias) |
Iterable<TypeMapping> |
getTypeMappings() |
public void addMapping(TypeMapping mapping)
TypeMapping's type and aliaspublic TypeMapping getTypeMapping(String typeAlias)
TypeMapping for this alias or nullpublic TypeMapping getTypeMapping(Object o)
TypeMapping for this object or nullpublic TypeMapping getTypeMapping(Class<?> type)
TypeMapping for this type, one of its superclasses or
nullpublic TypeMapping findTypeMapping(String typeAlias)
getTypeMapping(String) but never nullIllegalArgumentException - if type is not mappedpublic TypeMapping findTypeMapping(Object o)
getTypeMapping(Object) but never nullIllegalArgumentException - if object's type is not mappedpublic TypeMapping findTypeMapping(Class<?> type)
getTypeMapping(Class) but never nullIllegalArgumentException - if type is not mappedpublic Iterable<TypeMapping> getTypeMappings()
public Class<?>[] getMappedTypes()
public String[] getMappedAliases()
Copyright © 2015 Molindo GmbH. All Rights Reserved.