|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.docmosis.template.population.ReflectiveDataProvider
com.docmosis.template.population.ReflectiveCollectionDataProvider
public class ReflectiveCollectionDataProvider
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.docmosis.template.population.ReflectiveDataProvider |
---|
ReflectiveDataProvider.DataFormatManager |
Field Summary | |
---|---|
protected Collection |
delegateCollection
|
Fields inherited from class com.docmosis.template.population.ReflectiveDataProvider |
---|
dataFormatManager, forgiving, METHOD_REFLECTION_HELPER, reflectedDelegate, reflectedDelegateClass |
Constructor Summary | |
---|---|
protected |
ReflectiveCollectionDataProvider(Object delegate,
boolean forgiving,
ReflectiveDataProvider.DataFormatManager dataFormatManager)
|
Method Summary | |
---|---|
boolean |
getBoolean(String fieldName)
Get the boolean value from the reflected delegate. |
DataProvider |
getDataProvider(String fieldName,
int idx)
Get the data provider from the reflected delegate. |
int |
getDataProviderCount(String fieldName)
Get the data provider count from the reflected delegate. |
InputStream |
getImage(String fieldName)
Get the image from the reflected delegate. |
String |
getString(String fieldName)
Get the String from the reflected delegate. |
boolean |
hasBooleanKey(String fieldName)
Determine if the boolean key has been set. |
boolean |
hasDataProviderKey(String fieldName)
Determine if the data provider key has been set. |
boolean |
hasImageKey(String fieldName)
Determine if the image key has been set. |
boolean |
hasStringKey(String fieldName)
Determine if the String key has been set. |
String |
toStringPretty()
Attempt to call the toString method on the delegate. |
Methods inherited from class com.docmosis.template.population.ReflectiveDataProvider |
---|
getDelegate, getInstance, getInstance, getWrappedInstance, isForgiving, isPrimitive, isPrimitiveArray, logCall, logCall, setDataFormatter, setDateFormat, setDateFormat, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Collection delegateCollection
Constructor Detail |
---|
protected ReflectiveCollectionDataProvider(Object delegate, boolean forgiving, ReflectiveDataProvider.DataFormatManager dataFormatManager)
Method Detail |
---|
public DataProvider getDataProvider(String fieldName, int idx)
ReflectiveDataProvider
getDataProvider
in interface DataProvider
getDataProvider
in class ReflectiveDataProvider
fieldName
- the key (name) of the data provider to look for.idx
- the index of the data provider.
public int getDataProviderCount(String fieldName)
ReflectiveDataProvider
getDataProviderCount
in interface DataProvider
getDataProviderCount
in class ReflectiveDataProvider
fieldName
- the key (name) of the data providers to look for.
public boolean hasDataProviderKey(String fieldName)
ReflectiveDataProvider
hasDataProviderKey
in interface DataProvider
hasDataProviderKey
in class ReflectiveDataProvider
fieldName
- the name of the field to use for reflection
public boolean getBoolean(String fieldName)
ReflectiveDataProvider
getBoolean
in interface DataProvider
getBoolean
in class ReflectiveDataProvider
fieldName
- the key to lookup
public InputStream getImage(String fieldName)
ReflectiveDataProvider
getImage
in interface DataProvider
getImage
in class ReflectiveDataProvider
fieldName
- the key under which to locate the image.
public String getString(String fieldName)
ReflectiveDataProvider
getString
in interface DataProvider
getString
in class ReflectiveDataProvider
fieldName
- the to look up the value
public boolean hasBooleanKey(String fieldName)
ReflectiveDataProvider
hasBooleanKey
in interface DataProvider
hasBooleanKey
in class ReflectiveDataProvider
fieldName
- the name of the field to use for reflection
public boolean hasImageKey(String fieldName)
ReflectiveDataProvider
hasImageKey
in interface DataProvider
hasImageKey
in class ReflectiveDataProvider
fieldName
- the name of the field to use for reflection
public boolean hasStringKey(String fieldName)
ReflectiveDataProvider
hasStringKey
in interface DataProvider
hasStringKey
in class ReflectiveDataProvider
fieldName
- the name of the field to use for reflection
public String toStringPretty()
ReflectiveDataProvider
toStringPretty
in interface DataProvider
toStringPretty
in class ReflectiveDataProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |