MGCLatticeDmfMappingSpecContract
The field mapping of one entity line of a data project, as a specification carries it (specification version 1.1).
Methods
construct
Creates a new instance of the MGCLatticeDmfMappingSpecContract class.
- Visibility:
public - Returns:
MGCLatticeDmfMappingSpecContractA new instance, in Default mode.
No parameters.
parmMode
Gets or sets the mapping mode: Default, DefaultWithOverrides or Explicit.
- Visibility:
public - Returns:
strThe mode.
| Name | Type | Optional | Description |
|---|---|---|---|
_mode | str | Yes | The mode. |
parmSourceFields
Gets or sets the source format's fields; empty for the generated source format.
- Visibility:
public - Returns:
ListThe source fields.
| Name | Type | Optional | Description |
|---|---|---|---|
_sourceFields | List | Yes | The source fields. |
parmOverrides
Gets or sets the mapping rows: overrides of the generated mapping, or the whole mapping in Explicit mode.
- Visibility:
public - Returns:
ListThe rows.
| Name | Type | Optional | Description |
|---|---|---|---|
_overrides | List | Yes | The rows. |
parmConversions
Gets or sets the line's value conversions.
- Visibility:
public - Returns:
ListThe conversions.
| Name | Type | Optional | Description |
|---|---|---|---|
_conversions | List | Yes | The conversions. |
parmTransforms
Gets or sets the line's XSLT transforms in sequence, as the file references the environment stores.
- Visibility:
public - Returns:
ListThe transforms.
| Name | Type | Optional | Description |
|---|---|---|---|
_transforms | List | Yes | The transforms. |
modeValue
The mapping mode as its enumeration value.
- Visibility:
public - Returns:
MGCLatticeDmfMappingModeThe mode; Default when the specification leaves it out.
No parameters.
setMode
Sets the mapping mode from its enumeration value.
- Visibility:
public - Returns:
void
| Name | Type | Optional | Description |
|---|---|---|---|
_mode | MGCLatticeDmfMappingMode | No | The mode. |
addSourceField
Adds a source field.
- Visibility:
public - Returns:
void
| Name | Type | Optional | Description |
|---|---|---|---|
_field | MGCLatticeDmfMappingSourceFieldContract | No | The field. |
addOverride
Adds a mapping row.
- Visibility:
public - Returns:
void
| Name | Type | Optional | Description |
|---|---|---|---|
_row | MGCLatticeDmfMappingOverrideContract | No | The row. |
addConversion
Adds a value conversion.
- Visibility:
public - Returns:
void
| Name | Type | Optional | Description |
|---|---|---|---|
_conversion | MGCLatticeDmfMappingConversionContract | No | The conversion. |
addTransform
Adds a transform, after the ones already there.
- Visibility:
public - Returns:
void
| Name | Type | Optional | Description |
|---|---|---|---|
_fileReference | str | No | The transform's file reference. |