/// <summary> /// Creates a PRIM based on the given <paramref name="specification"/>. /// <param name="specification">A specification for a PRIM.</param> /// <returns>The newly created PRIM.</returns> /// </summary> public IPrim CreatePrim(PrimSpec specification) { return(new UpccPrim(UmlPackage.CreateDataType(PrimSpecConverter.Convert(specification)))); }
/// <summary> /// Updates a PRIM to match the given <paramref name="specification"/>. /// <param name="prim">A PRIM.</param> /// <param name="specification">A new specification for the given PRIM.</param> /// <returns>The updated PRIM. Depending on the implementation, this might be the same updated instance or a new instance!</returns> /// </summary> public IPrim UpdatePrim(IPrim prim, PrimSpec specification) { return(new UpccPrim(UmlPackage.UpdateDataType(((UpccPrim)prim).UmlDataType, PrimSpecConverter.Convert(specification)))); }