org.apache.commons.flatfile.morph
Class NamedEntityCollectionReflector

java.lang.Object
  extended by net.sf.morph.reflect.reflectors.BaseReflector
      extended by net.sf.morph.reflect.reflectors.BaseContainerReflector
          extended by org.apache.commons.flatfile.morph.BaseEntityCollectionReflector
              extended by org.apache.commons.flatfile.morph.NamedEntityCollectionReflector
All Implemented Interfaces:
net.sf.composite.Component, net.sf.morph.reflect.BeanReflector, net.sf.morph.reflect.ContainerReflector, net.sf.morph.reflect.DecoratedReflector, net.sf.morph.reflect.Reflector, net.sf.morph.reflect.SizableReflector

public class NamedEntityCollectionReflector
extends BaseEntityCollectionReflector
implements net.sf.morph.reflect.BeanReflector

NamedEntityCollection Reflector.

Version:
$Revision: 757266 $ $Date: 2009-03-22 17:12:27 -0500 (Sun, 22 Mar 2009) $

Field Summary
 
Fields inherited from class org.apache.commons.flatfile.morph.BaseEntityCollectionReflector
TYPE_OVERRIDE
 
Fields inherited from class net.sf.morph.reflect.reflectors.BaseReflector
log
 
Fields inherited from interface net.sf.morph.reflect.BeanReflector
IMPLICIT_PROPERTY_CLASS, IMPLICIT_PROPERTY_PROPERTY_NAMES, IMPLICIT_PROPERTY_THIS
 
Fields inherited from interface net.sf.morph.reflect.SizableReflector
IMPLICIT_PROPERTY_SIZE
 
Constructor Summary
NamedEntityCollectionReflector()
           
 
Method Summary
protected  Entity getEntity(Object bean, String propertyName)
          Get the named child entity.
protected  String[] getPropertyNamesImpl(Object bean)
          
protected  Class<?>[] getReflectableClassesImpl()
          
protected  boolean isEntity(Object bean, String propertyName)
          Learn whether the specified property refers to an Entity child.
 
Methods inherited from class org.apache.commons.flatfile.morph.BaseEntityCollectionReflector
getContainedTypeImpl, getEntity, getImpl, getImpl, getIteratorImpl, getSizeImpl, getToTextConverter, getTypeImpl, isReadableImpl, isTrimStrings, isWriteableImpl, setEntityValue, setImpl, setImpl, setToTextConverter, setTrimStrings
 
Methods inherited from class net.sf.morph.reflect.reflectors.BaseReflector
add, addImpl, checkIndex, checkIsReflectable, createWrapperInvocationHandler, get, get, getContainedType, getIterator, getPropertyNames, getReflectableCallCache, getReflectableClasses, getReflectorName, getSize, getType, getWrapper, getWrapperImpl, initialize, initializeImpl, isCachingIsReflectableCalls, isInitialized, isPerformingLogging, isReadable, isReflectable, isReflectable, isReflectableImpl, isReflectableImpl, isStrictlyTyped, isValidIndex, isWrappingRuntimeExceptions, isWriteable, newInstance, newInstanceImpl, newInstanceImpl, set, set, setCachingIsReflectableCalls, setInitialized, setReflectableCallCache, setReflectorName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.morph.reflect.BeanReflector
get, getPropertyNames, getType, isReadable, isWriteable, set
 
Methods inherited from interface net.sf.morph.reflect.SizableReflector
getSize
 
Methods inherited from interface net.sf.morph.reflect.ContainerReflector
getContainedType, getIterator
 

Constructor Detail

NamedEntityCollectionReflector

public NamedEntityCollectionReflector()
Method Detail

getReflectableClassesImpl

protected Class<?>[] getReflectableClassesImpl()
                                        throws Exception

Specified by:
getReflectableClassesImpl in class net.sf.morph.reflect.reflectors.BaseReflector
Throws:
Exception

isEntity

protected boolean isEntity(Object bean,
                           String propertyName)
                    throws Exception
Learn whether the specified property refers to an Entity child.

Specified by:
isEntity in class BaseEntityCollectionReflector
Parameters:
bean - to inspect
propertyName - to read
Returns:
boolean
Throws:
Exception - on error

getEntity

protected Entity getEntity(Object bean,
                           String propertyName)
                    throws Exception
Get the named child entity.

Overrides:
getEntity in class BaseEntityCollectionReflector
Parameters:
bean - to read
propertyName - to read
Returns:
Entity
Throws:
Exception - on error

getPropertyNamesImpl

protected String[] getPropertyNamesImpl(Object bean)
                                 throws Exception

Overrides:
getPropertyNamesImpl in class BaseEntityCollectionReflector
Throws:
Exception


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.