|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.morph.reflect.reflectors.BaseReflector
net.sf.morph.reflect.reflectors.BaseContainerReflector
org.apache.commons.flatfile.morph.BaseEntityCollectionReflector
public abstract class BaseEntityCollectionReflector
Base EntityCollection reflector.
| Field Summary | |
|---|---|
static String |
TYPE_OVERRIDE
Property name prefix indicating to treat Entities as beans. |
| Fields inherited from class net.sf.morph.reflect.reflectors.BaseReflector |
|---|
log |
| Constructor Summary | |
|---|---|
BaseEntityCollectionReflector()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.sf.morph.reflect.reflectors.BaseReflector |
|---|
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 |
| 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.ContainerReflector |
|---|
getContainedType, getIterator |
| Methods inherited from interface net.sf.morph.reflect.Reflector |
|---|
getReflectableClasses, getWrapper |
| Field Detail |
|---|
public static final String TYPE_OVERRIDE
| Constructor Detail |
|---|
public BaseEntityCollectionReflector()
| Method Detail |
|---|
public boolean isTrimStrings()
public void setTrimStrings(boolean trimStrings)
trimStrings - boolean
protected Class<?> getContainedTypeImpl(Class c)
throws Exception
getContainedTypeImpl in class net.sf.morph.reflect.reflectors.BaseContainerReflectorException
protected Iterator<Entity> getIteratorImpl(Object o)
throws Exception
getIteratorImpl in class net.sf.morph.reflect.reflectors.BaseContainerReflectorException
protected int getSizeImpl(Object o)
throws Exception
getSizeImpl in class net.sf.morph.reflect.reflectors.BaseReflectorException
protected Class<?> getTypeImpl(Object bean,
String propertyName)
throws Exception
getTypeImpl in class net.sf.morph.reflect.reflectors.BaseReflectorException
protected Object getImpl(Object container,
int index)
throws Exception
getImpl in class net.sf.morph.reflect.reflectors.BaseReflectorException
protected Object getImpl(Object bean,
String propertyName)
throws Exception
getImpl in class net.sf.morph.reflect.reflectors.BaseReflectorException
protected void setImpl(Object bean,
String propertyName,
Object value)
throws Exception
setImpl in class net.sf.morph.reflect.reflectors.BaseReflectorException
protected Object setImpl(Object container,
int index,
Object propertyValue)
throws Exception
setImpl in class net.sf.morph.reflect.reflectors.BaseReflectorException
protected void setEntityValue(Entity e,
Object value)
throws Exception
value - Object Set the value of e by converting value to a byte[]e - Entity
Exception - on error
protected String[] getPropertyNamesImpl(Object bean)
throws Exception
getPropertyNamesImpl in class net.sf.morph.reflect.reflectors.BaseReflectorException
protected abstract boolean isEntity(Object bean,
String propertyName)
throws Exception
bean - to inspectpropertyName - to read
Exception - on error
protected Entity getEntity(Object bean,
String propertyName)
throws Exception
bean - to readpropertyName - to read
Exception - on error
protected Entity getEntity(Object container,
int index)
throws Exception
index.
Base implementation throws UnsupportedOperationException.
container - to readindex - to get
Exception - on error
protected boolean isReadableImpl(Object bean,
String propertyName)
throws Exception
isReadableImpl in class net.sf.morph.reflect.reflectors.BaseReflectorException
protected boolean isWriteableImpl(Object bean,
String propertyName)
throws Exception
isWriteableImpl in class net.sf.morph.reflect.reflectors.BaseReflectorExceptionpublic net.sf.morph.transform.DecoratedConverter getToTextConverter()
DecoratedConverter assigned.
public void setToTextConverter(net.sf.morph.transform.DecoratedConverter toTextConverter)
DecoratedConverter.
toTextConverter - to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||