public abstract class BaseEntityCollectionReflector extends net.sf.morph.reflect.reflectors.BaseContainerReflector
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_OVERRIDE
Property name prefix indicating to treat Entities as beans.
|
Constructor and Description |
---|
BaseEntityCollectionReflector() |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getContainedTypeImpl(Class c) |
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 container,
int index) |
protected Object |
getImpl(Object bean,
String propertyName) |
protected Iterator<Entity> |
getIteratorImpl(Object o) |
protected String[] |
getPropertyNamesImpl(Object bean) |
protected int |
getSizeImpl(Object o) |
net.sf.morph.transform.DecoratedConverter |
getToTextConverter()
Get the to-text
DecoratedConverter assigned. |
protected Class<?> |
getTypeImpl(Object bean,
String propertyName) |
protected abstract boolean |
isEntity(Object bean,
String propertyName)
Learn whether the specified property refers to an Entity child.
|
protected boolean |
isReadableImpl(Object bean,
String propertyName) |
boolean |
isTrimStrings()
Get the boolean trimStrings.
|
protected boolean |
isWriteableImpl(Object bean,
String propertyName) |
protected void |
setEntityValue(Entity e,
Object value)
Set the value of an Entity
|
protected Object |
setImpl(Object container,
int index,
Object propertyValue) |
protected void |
setImpl(Object bean,
String propertyName,
Object value) |
void |
setToTextConverter(net.sf.morph.transform.DecoratedConverter toTextConverter)
Set the to-text
DecoratedConverter . |
void |
setTrimStrings(boolean trimStrings)
Set the boolean trimStrings.
|
add, addImpl, checkIndex, checkIsReflectable, createWrapperInvocationHandler, get, get, getContainedType, getIterator, getPropertyNames, getReflectableCallCache, getReflectableClasses, getReflectableClassesImpl, 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 TYPE_OVERRIDE
public BaseEntityCollectionReflector()
public boolean isTrimStrings()
public void setTrimStrings(boolean trimStrings)
trimStrings
- booleanprotected Class<?> getContainedTypeImpl(Class c) throws Exception
getContainedTypeImpl
in class net.sf.morph.reflect.reflectors.BaseContainerReflector
Exception
protected Iterator<Entity> getIteratorImpl(Object o) throws Exception
getIteratorImpl
in class net.sf.morph.reflect.reflectors.BaseContainerReflector
Exception
protected int getSizeImpl(Object o) throws Exception
getSizeImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected Class<?> getTypeImpl(Object bean, String propertyName) throws Exception
getTypeImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected Object getImpl(Object container, int index) throws Exception
getImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected Object getImpl(Object bean, String propertyName) throws Exception
getImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected void setImpl(Object bean, String propertyName, Object value) throws Exception
setImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected Object setImpl(Object container, int index, Object propertyValue) throws Exception
setImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected void setEntityValue(Entity e, Object value) throws Exception
value
- Object Set the value of e
by converting value
to a byte[]e
- EntityException
- on errorprotected String[] getPropertyNamesImpl(Object bean) throws Exception
getPropertyNamesImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected abstract boolean isEntity(Object bean, String propertyName) throws Exception
bean
- to inspectpropertyName
- to readException
- on errorprotected Entity getEntity(Object bean, String propertyName) throws Exception
bean
- to readpropertyName
- to readException
- on errorprotected Entity getEntity(Object container, int index) throws Exception
index
.
Base implementation throws UnsupportedOperationException
.container
- to readindex
- to getException
- on errorprotected boolean isReadableImpl(Object bean, String propertyName) throws Exception
isReadableImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
protected boolean isWriteableImpl(Object bean, String propertyName) throws Exception
isWriteableImpl
in class net.sf.morph.reflect.reflectors.BaseReflector
Exception
public net.sf.morph.transform.DecoratedConverter getToTextConverter()
DecoratedConverter
assigned.public void setToTextConverter(net.sf.morph.transform.DecoratedConverter toTextConverter)
DecoratedConverter
.toTextConverter
- to setCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.