net.sf.japaki.self
Class GenericBeanInspector<B,V extends GenericBean<V>>

java.lang.Object
  extended by net.sf.japaki.self.Inspector<B,V>
      extended by net.sf.japaki.self.GenericBeanInspector<B,V>

public class GenericBeanInspector<B,V extends GenericBean<V>>
extends Inspector<B,V>

Retrieves a property from the underlying bean by name.


Constructor Summary
protected GenericBeanInspector(Property<B,V> property, InspectorMill inspectorMill)
          Constructs an inspector from the given arguments.
 
Method Summary
protected  Property<? super V,?> findProperty(String name)
          Searches a property in the base class of this inspector with the specified name.
 
Methods inherited from class net.sf.japaki.self.Inspector
findChild, getMill, getParserStore, getProperty, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericBeanInspector

protected GenericBeanInspector(Property<B,V> property,
                               InspectorMill inspectorMill)
Constructs an inspector from the given arguments.

Parameters:
property - the property used to create new parserss
inspectorMill - the inspector mill used to create new inspectors
Throws:
IllegalArgumentException - if no instance for the property's type could be initiated.
Method Detail

findProperty

protected Property<? super V,?> findProperty(String name)
Description copied from class: Inspector
Searches a property in the base class of this inspector with the specified name.

Specified by:
findProperty in class Inspector<B,V extends GenericBean<V>>
Parameters:
name - name of the property
Returns:
a property with the specified name
Throws:
NullPointerException - if name is null
NoSuchPropertyException - if a property with the specified name could not be found.