public class MappedDataFieldCollection
extends java.lang.Object
implements java.lang.Iterable
To learn more, visit the Mail Merge and Reporting documentation article.
This is implemented as a collection of string keys into string values. The keys are the names of mail merge fields in the document and the values are the names of fields in your data source.
MailMerge,
MailMerge.getMappedDataFields()| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String documentFieldName,
java.lang.String dataSourceFieldName)
Adds a new field mapping.
|
void |
clear()
Removes all elements from the collection.
|
boolean |
containsKey(java.lang.String documentFieldName)
Determines whether a mapping from the specified field in the document exists in the collection.
|
boolean |
containsValue(java.lang.String dataSourceFieldName)
Determines whether a mapping from the specified field in the data source exists in the collection.
|
java.lang.String |
get(java.lang.String documentFieldName)
Gets the name of the field in the data source associated with the specified mail merge field.
|
int |
getCount()
Gets the number of elements contained in the collection.
|
java.util.Iterator |
iterator()
Returns a dictionary iterator object that can be used to iterate over all items in the collection.
|
void |
remove(java.lang.String documentFieldName)
Removes a field mapping.
|
void |
set(java.lang.String documentFieldName,
java.lang.String value)
Sets the name of the field in the data source associated with the specified mail merge field.
|
public int getCount()
public java.lang.String get(java.lang.String documentFieldName)
public void set(java.lang.String documentFieldName,
java.lang.String value)
value - The name of the field in the data source associated with the specified mail merge field.public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic void add(java.lang.String documentFieldName,
java.lang.String dataSourceFieldName)
documentFieldName - Case-sensitive name of the mail merge field in the document.dataSourceFieldName - Case-sensitive name of the field in the data source.public boolean containsKey(java.lang.String documentFieldName)
documentFieldName - Case-sensitive name of the mail merge field in the document.public boolean containsValue(java.lang.String dataSourceFieldName)
dataSourceFieldName - Case-sensitive name of the field in the data source.public void remove(java.lang.String documentFieldName)
documentFieldName - Case-sensitive name of the mail merge field in the document.public void clear()