ASPOSE home

com.aspose.words
Class MappedDataFields

java.util.TreeMap
    extended by com.aspose.words.MappedDataFields

public class MappedDataFields
extends java.util.TreeMap

Allows to automatically map between names of fields in your data source and names of mail merge fields in the document.

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.

See Also:
MailMerge, MailMerge.MappedDataFields

Property Getters/Setters Summary
java.lang.Stringget(java.lang.String documentFieldName)
voidset(java.lang.String documentFieldName, java.lang.String value)
           Gets or sets the name of the field in the data source associated with the specified mail merge field.
 
Method Summary
voidadd(java.lang.String documentFieldName, java.lang.String dataSourceFieldName)
           Adds a new field mapping.
voidremove(java.lang.String documentFieldName)
           Removes a field mapping.
 

Property Getters/Setters Detail

get/set

public java.lang.String get(java.lang.String documentFieldName)

public void set(java.lang.String documentFieldName, java.lang.String value)
Gets or sets the name of the field in the data source associated with the specified mail merge field.

Method Detail

add

public void add(java.lang.String documentFieldName, java.lang.String dataSourceFieldName)
Adds a new field mapping.
Parameters:
documentFieldName - The name of the mail merge field in the document.
dataSourceFieldName - The name of the field in the data source.

remove

public void remove(java.lang.String documentFieldName)
Removes a field mapping.
Parameters:
documentFieldName - The name of the mail merge field in the document.

See Also:
          Wiki - the home page for the Aspose.Words Product Documentation that includes Programmer's Guide, Knowledge Base and other articles.
          Aspose.Words Support Forum - our preferred method of support.
          Aspose.Words Team - contact Aspose.Words Team.


ASPOSE home