add stage to add entity attribute values

Description

We need a stage which can add a format/attribute/value triple to the entity attributes on an entity.

It would need to handle the case where there was no existing container element (EntityAttributes) and also the case where there was no existing Extensions container for that.

It should probably add the given value to an existing Attribute in preference to creating a second Attribute with the same format/attribute.

We should give some thought to whether it should add the same format/attribute/value a second time, if it is already present. I'd suggest it's probably better not to (at least by default) as value duplication in attributes does tend to surprise people. If we're already doing the work to locate an existing format/attribute container, this doesn't seem like a big additional work increment.

Environment

None

Activity

Show:

Ian Young June 28, 2017 at 4:17 PM

Imported, tweaked for local conventions, and documented.

Ian Young January 26, 2015 at 11:01 AM

I have an implementation of EntityAttributeAddingStage in the ukf-mda project. It's based on the Container system I put together there, so it even produces reasonably pretty output.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created November 7, 2011 at 2:53 PM
Updated May 16, 2024 at 12:20 PM
Resolved June 28, 2017 at 4:18 PM