org.skyscreamer.yoga.selector
Class NamedProperty<T>

java.lang.Object
  extended by org.skyscreamer.yoga.selector.NamedProperty<T>
All Implemented Interfaces:
Property<T>

public class NamedProperty<T>
extends Object
implements Property<T>


Constructor Summary
NamedProperty(String name)
           
NamedProperty(String name, boolean isPrimitive)
           
 
Method Summary
 Method getReadMethod()
           
 Object getValue(T instance)
           
 boolean isPrimitive()
           
 String name()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedProperty

public NamedProperty(String name)

NamedProperty

public NamedProperty(String name,
                     boolean isPrimitive)
Method Detail

name

public String name()
Specified by:
name in interface Property<T>

getValue

public Object getValue(T instance)
Specified by:
getValue in interface Property<T>

getReadMethod

public Method getReadMethod()
Specified by:
getReadMethod in interface Property<T>

isPrimitive

public boolean isPrimitive()
Specified by:
isPrimitive in interface Property<T>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.