org.skyscreamer.yoga.selector
Class MapSelector

java.lang.Object
  extended by org.skyscreamer.yoga.selector.MapSelector
All Implemented Interfaces:
Selector
Direct Known Subclasses:
CoreSelector

public abstract class MapSelector
extends Object
implements Selector


Field Summary
protected  Map<Class<?>,Collection<Property>> descriptors
           
 
Constructor Summary
MapSelector()
           
 
Method Summary
 boolean containsField(Class<?> instanceType, String property)
           
 Collection<Property> getAllPossibleFields(Class<?> instanceType)
           
 Selector getChildSelector(Class<?> instanceType, String fieldName)
           
protected  Collection<Property> getFieldCollection(Class<?> instanceType)
           
 Collection<Property> getSelectedFields(Class<?> instanceType, Object instance)
           
 boolean isInfluencedExternally()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptors

protected Map<Class<?>,Collection<Property>> descriptors
Constructor Detail

MapSelector

public MapSelector()
Method Detail

containsField

public boolean containsField(Class<?> instanceType,
                             String property)
Specified by:
containsField in interface Selector

getFieldCollection

protected Collection<Property> getFieldCollection(Class<?> instanceType)

getSelectedFields

public Collection<Property> getSelectedFields(Class<?> instanceType,
                                              Object instance)
Specified by:
getSelectedFields in interface Selector

getChildSelector

public Selector getChildSelector(Class<?> instanceType,
                                 String fieldName)
Specified by:
getChildSelector in interface Selector

getAllPossibleFields

public Collection<Property> getAllPossibleFields(Class<?> instanceType)
Specified by:
getAllPossibleFields in interface Selector

isInfluencedExternally

public boolean isInfluencedExternally()
Specified by:
isInfluencedExternally in interface Selector


Copyright © 2012. All Rights Reserved.