protected override BdtConSpec SpecifyCON()
 {
     return(new BdtConSpec
     {
         Name = "Content",
         BasicType = new BasicType(FindPRIM(NDR.ConvertXsdTypeNameToBasicTypeName(ContentComponentXsdTypeName)))
     });
 }
 protected IEnumerable <BdtSupSpec> SpecifySUPs(XmlSchemaObjectCollection xsdAttributes)
 {
     foreach (XmlSchemaAttribute attribute in xsdAttributes)
     {
         string basicTypeName = NDR.ConvertXsdTypeNameToBasicTypeName(attribute.SchemaTypeName.Name);
         yield return(new BdtSupSpec
         {
             Name = attribute.Name.Minus(basicTypeName),
             BasicType = new BasicType(FindPRIM(basicTypeName)),
         });
     }
 }
        protected override IEnumerable <BdtSupSpec> SpecifySUPs()
        {
            var extension = (XmlSchemaSimpleContentExtension)ComplexType.ContentModel.Content;

            foreach (XmlSchemaAttribute attribute in extension.Attributes)
            {
                string basicTypeName = NDR.ConvertXsdTypeNameToBasicTypeName(attribute.SchemaTypeName.Name);
                yield return(new BdtSupSpec
                {
                    Name = attribute.Name.Minus(basicTypeName),
                    BasicType = new BasicType(FindPRIM(basicTypeName)),
                });
            }
        }
        protected override BdtConSpec SpecifyCON()
        {
            BdtConSpec conSpec;
            BDTXsdType parent = Parent;

            if (parent != null)
            {
                conSpec = BdtConSpec.CloneBdtCon(parent.BDT.Con);
            }
            else
            {
                conSpec = new BdtConSpec
                {
                    Name      = "Content",
                    BasicType = new BasicType(FindPRIM(NDR.ConvertXsdTypeNameToBasicTypeName(ContentComponentXsdTypeName)))
                };
            }
            return(ApplyCONRestrictions(conSpec));
        }