org.skyscreamer.yoga.metadata
Class MapMetaDataServiceImpl
java.lang.Object
org.skyscreamer.yoga.metadata.MapMetaDataServiceImpl
- All Implemented Interfaces:
- MetaDataService
public class MapMetaDataServiceImpl
- extends Object
- implements MetaDataService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapMetaDataServiceImpl
public MapMetaDataServiceImpl()
setMap
public void setMap(Map<String,Class<?>> map)
getTypeMappings
public Map<String,Class<?>> getTypeMappings()
- Specified by:
getTypeMappings in interface MetaDataService
getTypeForName
public Class<?> getTypeForName(String name)
- Specified by:
getTypeForName in interface MetaDataService
getNameForType
public String getNameForType(Class<?> type)
- given a type, get a name. This takes subclassing into consideration. For
now, this will return the first subclass match to the type, not the closest
- Specified by:
getNameForType in interface MetaDataService
Copyright © 2011. All Rights Reserved.