org.skyscreamer.yoga.metadata
Class MapMetaDataServiceImpl

java.lang.Object
  extended by org.skyscreamer.yoga.metadata.MapMetaDataServiceImpl
All Implemented Interfaces:
MetaDataService

public class MapMetaDataServiceImpl
extends Object
implements MetaDataService


Constructor Summary
MapMetaDataServiceImpl()
           
 
Method Summary
 String getNameForType(Class<?> type)
          given a type, get a name.
 Class<?> getTypeForName(String name)
           
 Map<String,Class<?>> getTypeMappings()
           
 void setMap(Map<String,Class<?>> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapMetaDataServiceImpl

public MapMetaDataServiceImpl()
Method Detail

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.