com.aspose.words

Class OdsoFieldMapData

  • java.lang.Object
    • com.aspose.words.OdsoFieldMapData
  • All Implemented Interfaces:
    java.lang.Cloneable
    public class OdsoFieldMapData 
    extends java.lang.Object

Specifies how a column in the external data source shall be mapped to the predefined merge fields within the document.

Microsoft Word provides some predefined merge field names that it allows to insert into a document as MERGEFIELD or use in the ADDRESSBLOCK or GREETINGLINE fields. The information specified in OdsoFieldMapData allows to map one column in the external data source to a single predefined merge field.

See Also:
OdsoFieldMapDataCollection, Odso

Constructor Summary
 
Property Getters/Setters Summary
intgetColumn()
void
setColumn(intvalue)
           Specifies the zero-based index of the column within an external data source which shall be mapped to the local name of a specific MERGEFIELD field. The default value is 0.
java.lang.StringgetMappedName()
void
setMappedName(java.lang.Stringvalue)
           Specifies the predefined merge field name which shall be mapped to the column number specified by the Column property within this field mapping. The default value is an empty string.
java.lang.StringgetName()
void
setName(java.lang.Stringvalue)
           Specifies the column name within an external data source for the column whose index is specified by the Column property. The default value is an empty string.
intgetType()
void
setType(intvalue)
           Specifies if a given mail merge field has been mapped to a column in the given external data source or not. The default value is OdsoFieldMappingType.DEFAULT. The value of the property is OdsoFieldMappingType integer constant.
 
Method Summary
OdsoFieldMapDatadeepClone()
Returns a deep clone of this object.
 

    • Constructor Detail

      • OdsoFieldMapData

        public OdsoFieldMapData()
    • Property Getters/Setters Detail

      • getColumn/setColumn

        public int getColumn() / public void setColumn(int value)
        
        Specifies the zero-based index of the column within an external data source which shall be mapped to the local name of a specific MERGEFIELD field. The default value is 0.
      • getMappedName/setMappedName

        public java.lang.String getMappedName() / public void setMappedName(java.lang.String value)
        
        Specifies the predefined merge field name which shall be mapped to the column number specified by the Column property within this field mapping. The default value is an empty string.
      • getName/setName

        public java.lang.String getName() / public void setName(java.lang.String value)
        
        Specifies the column name within an external data source for the column whose index is specified by the Column property. The default value is an empty string.
      • getType/setType

        public int getType() / public void setType(int value)
        
        Specifies if a given mail merge field has been mapped to a column in the given external data source or not. The default value is OdsoFieldMappingType.DEFAULT. The value of the property is OdsoFieldMappingType integer constant.
    • Method Detail

      • deepClone

        public OdsoFieldMapData deepClone()
        Returns a deep clone of this object.