fmeobjects.FMEFeature.setSequencedAttribute

FMEFeature.setSequencedAttribute(attrName, attrValue)

Supply a new attribute for the feature, but in such a way that the sequence is remembered. This is needed for schema features, to preserve the order of attributes.

For a list attribute, if the attribute already exists and contains more elements than the new list, the resulting list will be made up of the new list elements plus the old list elements that were not overwritten. Call removeAttribute first to avoid this behavior.

Parameters:
  • attrName (str) – The name of the attribute to set.

  • attrValue (str, list[str]) – The new value for the attribute.

Return type:

None