Beispiel #1
0
        private XMLSchema()
        {
            _schema     = new XmlSchema();
            Components  = new XSComponentFixedList();
            Annotations = new XSComponentFixedList();

            Directives           = new XSComponentList();
            Directives.Inserted += DirectivesInserted;
            Directives.Cleared  += DirectivesCleared;

            Content           = new XSComponentList();
            Content.Inserted += ContentInserted;
            Content.Cleared  += ContentCleared;

            BlockDefault = new XSDisallowedSubstitutionsUnion();
            FinalDefault = new XSSchemaFinalUnion();

            AttributeDeclarations         = new XSNamedComponentMap();
            AttributeGroupDefinitions     = new XSNamedComponentMap();
            NotationDeclarations          = new XSNamedComponentMap();
            ElementDeclarations           = new XSNamedComponentMap();
            ModelGroupDefinitions         = new XSNamedComponentMap();
            IdentityConstraintDefinitions = new XSNamedComponentMap();
            TypeDefinitions = new XSNamedComponentMap();
        }
Beispiel #2
0
 private XSComplexTypeDefinition()
 {
     _type                = new XmlSchemaComplexType();
     Components           = new XSComponentFixedList();
     Attributes           = new XSComponentList();
     Attributes.Inserted += Attributes_Inserted;
     Attributes.Cleared  += Attributes_Cleared;
 }
        private XSAttributeGroupDefinition()
        {
            _attributeGroup = new XmlSchemaAttributeGroup();

            Components        = new XSComponentFixedList();
            Content           = new XSComponentList();
            Content.Inserted += Content_Inserted;
            Content.Cleared  += Content_Cleared;
        }
        private XSRedefine()
        {
            _redefine  = new XmlSchemaRedefine();
            Components = new XSComponentFixedList();

            Content           = new XSComponentList();
            Content.Inserted += Content_Inserted;
            Content.Cleared  += Content_Cleared;
        }
        private XSModelGroup()
        {
            _compositor = XSCompositor.Sequence;
            _group      = new XmlSchemaSequence();

            Components          = new XSComponentFixedList();
            Particles           = new XSComponentList();
            Particles.Inserted += Particles_Inserted;
            Particles.Cleared  += Particles_Cleared;
        }
        private XSIdentityConstraintDefinition()
        {
            _constraint = new XmlSchemaKey();
            _category   = XSIdentityConstraintCategory.Key;

            Components       = new XSComponentFixedList();
            Fields           = new XSComponentList();
            Fields.Inserted += Fields_Inserted;
            Fields.Cleared  += Fields_Cleared;
        }
        private XSAnnotation()
        {
            InternalObject = new XmlSchemaAnnotation();

            Content           = new XSComponentList();
            Content.Cleared  += Content_Cleared;
            Content.Inserted += Content_Inserted;

            Components = new XSComponentFixedList();
        }
        private XSSimpleTypeDefinition()
        {
            _type            = new XmlSchemaSimpleType();
            Facets           = new XSComponentList();
            Facets.Inserted += Facets_Inserted;
            Facets.Cleared  += Facets_Cleared;

            MemberTypeDefinitions           = new XSComponentList();
            MemberTypeDefinitions.Inserted += MemberTypeDefinitions_Inserted;
            MemberTypeDefinitions.Cleared  += MemberTypeDefinitions_Cleared;

            Components = new XSComponentFixedList();
            Variety    = XSSimpleTypeVariety.Atomic;
        }