|
Docmosis API 4.9.0 | |||||||||
| 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 DataProvidergetDataProvider in class ReflectiveDataProviderfieldName - 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 DataProvidergetDataProviderCount in class ReflectiveDataProviderfieldName - the key (name) of the data providers to look for.
public boolean hasDataProviderKey(String fieldName)
ReflectiveDataProvider
hasDataProviderKey in interface DataProviderhasDataProviderKey in class ReflectiveDataProviderfieldName - the name of the field to use for reflection
public boolean getBoolean(String fieldName)
ReflectiveDataProvider
getBoolean in interface DataProvidergetBoolean in class ReflectiveDataProviderfieldName - the key to lookup
public InputStream getImage(String fieldName)
ReflectiveDataProvider
getImage in interface DataProvidergetImage in class ReflectiveDataProviderfieldName - the key under which to locate the image.
public String getString(String fieldName)
ReflectiveDataProvider
getString in interface DataProvidergetString in class ReflectiveDataProviderfieldName - the to look up the value
public boolean hasBooleanKey(String fieldName)
ReflectiveDataProvider
hasBooleanKey in interface DataProviderhasBooleanKey in class ReflectiveDataProviderfieldName - the name of the field to use for reflection
public boolean hasImageKey(String fieldName)
ReflectiveDataProvider
hasImageKey in interface DataProviderhasImageKey in class ReflectiveDataProviderfieldName - the name of the field to use for reflection
public boolean hasStringKey(String fieldName)
ReflectiveDataProvider
hasStringKey in interface DataProviderhasStringKey in class ReflectiveDataProviderfieldName - the name of the field to use for reflection
public String toStringPretty()
ReflectiveDataProvider
toStringPretty in interface DataProvidertoStringPretty in class ReflectiveDataProvider
|
Docmosis API 4.9.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||