Skip to main content

MGCLatticeDmfMappingSourceFieldContract

One field of an entity line's source format (DMFDefinitionGroupEntityXMLFields), as a specification carries it.

Methods​

construct​

Creates a new instance of the MGCLatticeDmfMappingSourceFieldContract class.

  • Visibility: public
  • Returns: MGCLatticeDmfMappingSourceFieldContract A new instance.

No parameters.

parmName​

Gets or sets the source field name.

  • Visibility: public
  • Returns: str The name.
NameTypeOptionalDescription
_namestrYesThe name.

parmType​

Gets or sets the field type as data management names it, for example String or Enum.

  • Visibility: public
  • Returns: str The type.
NameTypeOptionalDescription
_fieldTypestrYesThe type.

parmSize​

Gets or sets the field size.

  • Visibility: public
  • Returns: int The size.
NameTypeOptionalDescription
_fieldSizeintYesThe size.

parmPosition​

Gets or sets the field's position in the source format.

  • Visibility: public
  • Returns: int The position.
NameTypeOptionalDescription
_positionintYesThe position.

parmMandatory​

Gets or sets whether the field is mandatory in the source.

  • Visibility: public
  • Returns: boolean Whether the field is mandatory.
NameTypeOptionalDescription
_mandatorybooleanYesWhether the field is mandatory.

parmDisabled​

Gets or sets whether the field is switched off in the source format.

  • Visibility: public
  • Returns: boolean Whether the field is disabled.
NameTypeOptionalDescription
_disabledbooleanYesWhether the field is disabled.

copy​

Creates a copy of this field.

  • Visibility: public
  • Returns: MGCLatticeDmfMappingSourceFieldContract The copy.

No parameters.

describe​

Describes this field in one line, for a difference report.

  • Visibility: public
  • Returns: str The description.

No parameters.