Exemple #1
0
        internal MAObjectHologram GetResourceWithAppliedChanges()
        {
            foreach (var property in this.Properties)
            {
                AcmaSchemaAttribute attribute = ActiveConfig.DB.GetAttribute(property.Name);

                if (attribute.IsReadOnlyInClass(this.Hologram.ObjectClass))
                {
                    continue;
                }

                if (attribute.Operation == AcmaAttributeOperation.AcmaInternalTemp)
                {
                    continue;
                }

                byte[] byteArray = property.Value as byte[];

                if (byteArray != null)
                {
                    this.SetSingleValuedAttribute(property, property.Value);
                }
                else
                {
                    IList resourceValues = property.Value as IList;

                    if (resourceValues != null)
                    {
                        this.SetMultivaluedAttribute(property, resourceValues);
                    }
                    else
                    {
                        this.SetSingleValuedAttribute(property, property.Value);
                    }
                }
            }

            return(this.Hologram);
        }