Changeset 1735


Ignore:
Timestamp:
12/27/11 03:47:16 (5 months ago)
Author:
jharrop
Message:

comments only

Location:
trunk/docx4j/src/main/java/org/docx4j/model/fields/merge
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/model/fields/merge/DataFieldName.java

    r1734 r1735  
    44 * The name of the data field. 
    55 *  
    6  * When Word performs a mail merge, it treats this as case-insensitive. 
     6 * When Word performs a mail merge, it treats this as case-insensitive 
     7 * (and takes the first matching field). 
    78 *  
    8  * The purpose of this class is to do the same. 
     9 * The purpose of this class is to ensure the key provided is 
     10 * case-insensitive. 
    911 *  
    1012 * @author jharrop 
     
    1517        String name; 
    1618         
    17         DataFieldName(String name) { 
     19        public DataFieldName(String name) { 
    1820                 
    1921                this.name = name.toUpperCase(); 
  • trunk/docx4j/src/main/java/org/docx4j/model/fields/merge/MailMerger.java

    r1734 r1735  
    316316 
    317317                Map<DataFieldName, String> map = new HashMap<DataFieldName, String>(); 
     318                map.put( new DataFieldName("KundenNAme"), "Daffy duck"); 
    318319                map.put( new DataFieldName("Kundenname"), "Plutext"); 
    319320                map.put(new DataFieldName("Kundenstrasse"), "Bourke Street"); 
     
    326327                 
    327328                data.add(map);           
    328                 // Word matches irrespective of case, and takes the first matching field 
    329329                 
    330330                 
Note: See TracChangeset for help on using the changeset viewer.