/** Set the tagged value for the tag given. */ public void taggedValue(String tag, String value) { Collection<TaggedValue> cTV = eaClassElement.GetTaggedValues(); TaggedValue tv = cTV.GetByName(tag); if (tv == null && value != null) { tv = cTV.AddNew(tag, value); tv.Update(); } else if (tv != null) { if (value == null) value = ""; if (!tv.GetValue().equals(value)) { tv.SetValue(value); tv.Update(); } } // invalidate cache taggedValuesCache = null; } // taggedValue()