internal AttributeMappingData(FeatureMappingData aMap, AttributeData sourceA, AttributeData destA)
{
this.serialNumber = aMap.serialNumber;
this.srcFC = aMap.srcFC;
this.destFC = aMap.destFC;
if (sourceA.Name != "")
{
this.srcAtt = sourceA.Name;
this.srcDT = sourceA.dataType;
this.srcLen = sourceA.charLength;
this.srcEnum = sourceA.enumName;
}
else
{
this.srcAtt = "Constant";
this.srcDT = esriFieldType.esriFieldTypeBlob;
this.srcLen = 0;
this.srcEnum = "";
}
this.destAtt = destA.Name;
this.destDT = destA.dataType;
this.destLen = destA.charLength;
this.destEnum = destA.enumName;
this.transform = MiscProcs.getTransformNumber(this.srcDT, this.destDT);
if (destA.dataType == esriFieldType.esriFieldTypeString && destA.charLength < this.srcLen) { this.transform = 4; }
if (destA.enumName != "") { this.transform = 20; }
this.valueCount = 0;
this.dataLoss = 0;
this.constant = "";
this.results = "";
this.theConversions = null;
this.Parent = aMap;
}