org.skyscreamer.yoga.selector
Class FieldSelector

java.lang.Object
  extended by org.skyscreamer.yoga.selector.FieldSelector
All Implemented Interfaces:
Selector

public class FieldSelector
extends Object
implements Selector


Field Summary
protected  Map<String,FieldSelector> subSelectors
           
 
Constructor Summary
FieldSelector()
           
 
Method Summary
 boolean containsField(Class<?> instanceType, String property)
           
 boolean containsField(String property)
           
<T> Map<String,Property<T>>
getAllPossibleFieldMap(Class<T> instanceType)
           
 FieldSelector getChildSelector(Class<?> instanceType, String fieldName)
           
 int getFieldCount()
           
<T> Property<T>
getProperty(Class<T> instanceType, String fieldName)
           
<T> Collection<Property<T>>
getSelectedFields(Class<T> instanceType)
           
 FieldSelector getSelector(String fieldName)
           
 boolean isInfluencedExternally()
           
 void register(String fieldName, FieldSelector subSelector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subSelectors

protected Map<String,FieldSelector> subSelectors
Constructor Detail

FieldSelector

public FieldSelector()
Method Detail

getChildSelector

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

getSelector

public FieldSelector getSelector(String fieldName)

containsField

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

getProperty

public <T> Property<T> getProperty(Class<T> instanceType,
                                   String fieldName)
Specified by:
getProperty in interface Selector

containsField

public boolean containsField(String property)

getFieldCount

public int getFieldCount()

register

public void register(String fieldName,
                     FieldSelector subSelector)

getSelectedFields

public <T> Collection<Property<T>> getSelectedFields(Class<T> instanceType)
Specified by:
getSelectedFields in interface Selector

getAllPossibleFieldMap

public <T> Map<String,Property<T>> getAllPossibleFieldMap(Class<T> instanceType)
Specified by:
getAllPossibleFieldMap in interface Selector

isInfluencedExternally

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


Copyright © 2013. All Rights Reserved.