Exemplo n.º 1
0
        public override AmlCollection ToAml()
        {
            var element = new InternalElement
            {
                Name = "Features",
                Id   = "Features"
            };

            element.Attributes.Add(CreateAttribute("blockParameter", "xs:boolean", BlockParameter.ToString()));
            element.Attributes.Add(CreateAttribute("dataStorage", "xs:boolean", DataStorage.ToString()));

            if (SupportedAccessLocks == null)
            {
                return(AmlCollection.Of(element));
            }

            var accessLocksElement = SupportedAccessLocks.ToAml().Cast <InternalElement>();

            element.InternalElements.AddRange(accessLocksElement);

            return(AmlCollection.Of(element));
        }