public class IndexedEntityCollectionReflector extends BaseEntityCollectionReflector implements net.sf.morph.reflect.MutableIndexedContainerReflector, net.sf.morph.reflect.SizableReflector, net.sf.morph.reflect.BeanReflector
Modifier and Type | Field and Description |
---|---|
static String |
IMPLICIT_PROPERTY_PROTOTYPE
Prototype property constant.
|
TYPE_OVERRIDE
Constructor and Description |
---|
IndexedEntityCollectionReflector() |
Modifier and Type | Method and Description |
---|---|
protected Entity |
getEntity(Object container,
int index)
Get the child entity at index
index . |
protected Entity |
getEntity(Object bean,
String propertyName)
Get the named child entity.
|
protected Object |
getImpl(Object bean,
String propertyName) |
protected Class<?>[] |
getReflectableClassesImpl() |
protected int |
getSizeImpl(Object o) |
protected boolean |
isEntity(Object bean,
String propertyName)
Learn whether the specified property refers to an Entity child.
|
getContainedTypeImpl, getImpl, getIteratorImpl, getPropertyNamesImpl, getToTextConverter, getTypeImpl, isReadableImpl, isTrimStrings, isWriteableImpl, setEntityValue, setImpl, setImpl, setToTextConverter, setTrimStrings
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final String IMPLICIT_PROPERTY_PROTOTYPE
public IndexedEntityCollectionReflector()
protected Entity getEntity(Object container, int index) throws Exception
index
.
Base implementation throws UnsupportedOperationException
.getEntity
in class BaseEntityCollectionReflector
container
- to readindex
- to getException
- on errorprotected Class<?>[] getReflectableClassesImpl() throws Exception
getReflectableClassesImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected boolean isEntity(Object bean, String propertyName) throws Exception
isEntity
in class BaseEntityCollectionReflector
bean
- to inspectpropertyName
- to readException
- on errorprotected Object getImpl(Object bean, String propertyName) throws Exception
getImpl
in class BaseEntityCollectionReflector
Exception
protected Entity getEntity(Object bean, String propertyName) throws Exception
getEntity
in class BaseEntityCollectionReflector
bean
- to readpropertyName
- to readException
- on errorprotected int getSizeImpl(Object o) throws Exception
getSizeImpl
in class BaseEntityCollectionReflector
Exception
Copyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.