Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaAttributeGroup.cs / 1305376 / XmlSchemaAttributeGroup.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Collections; using System.Xml.Serialization; ////// /// public class XmlSchemaAttributeGroup : XmlSchemaAnnotated { string name; XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection(); XmlSchemaAnyAttribute anyAttribute; XmlQualifiedName qname = XmlQualifiedName.Empty; XmlSchemaAttributeGroup redefined; XmlSchemaObjectTable attributeUses; XmlSchemaAnyAttribute attributeWildcard; int selfReferenceCount; ///[To be supplied.] ////// /// [XmlAttribute("name")] public string Name { get { return name; } set { name = value; } } ///[To be supplied.] ////// /// [XmlElement("attribute", typeof(XmlSchemaAttribute)), XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))] public XmlSchemaObjectCollection Attributes { get { return attributes; } } ///[To be supplied.] ////// /// [XmlElement("anyAttribute")] public XmlSchemaAnyAttribute AnyAttribute { get { return anyAttribute; } set { anyAttribute = value; } } [XmlIgnore] public XmlQualifiedName QualifiedName { get { return qname; } } [XmlIgnore] internal XmlSchemaObjectTable AttributeUses { get { if (attributeUses == null) { attributeUses = new XmlSchemaObjectTable(); } return attributeUses; } } [XmlIgnore] internal XmlSchemaAnyAttribute AttributeWildcard { get { return attributeWildcard; } set { attributeWildcard = value; } } ///[To be supplied.] ///[XmlIgnore] public XmlSchemaAttributeGroup RedefinedAttributeGroup { get { return redefined; } } [XmlIgnore] internal XmlSchemaAttributeGroup Redefined { get { return redefined; } set { redefined = value; } } [XmlIgnore] internal int SelfReferenceCount { get { return selfReferenceCount; } set { selfReferenceCount = value; } } [XmlIgnore] internal override string NameAttribute { get { return Name; } set { Name = value; } } internal void SetQualifiedName(XmlQualifiedName value) { qname = value; } internal override XmlSchemaObject Clone() { XmlSchemaAttributeGroup newGroup = (XmlSchemaAttributeGroup)MemberwiseClone(); if (XmlSchemaComplexType.HasAttributeQNameRef(this.attributes)) { //If a ref/type name is present newGroup.attributes = XmlSchemaComplexType.CloneAttributes(this.attributes); //Clear compiled tables newGroup.attributeUses = null; } return newGroup; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Collections; using System.Xml.Serialization; ////// /// public class XmlSchemaAttributeGroup : XmlSchemaAnnotated { string name; XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection(); XmlSchemaAnyAttribute anyAttribute; XmlQualifiedName qname = XmlQualifiedName.Empty; XmlSchemaAttributeGroup redefined; XmlSchemaObjectTable attributeUses; XmlSchemaAnyAttribute attributeWildcard; int selfReferenceCount; ///[To be supplied.] ////// /// [XmlAttribute("name")] public string Name { get { return name; } set { name = value; } } ///[To be supplied.] ////// /// [XmlElement("attribute", typeof(XmlSchemaAttribute)), XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))] public XmlSchemaObjectCollection Attributes { get { return attributes; } } ///[To be supplied.] ////// /// [XmlElement("anyAttribute")] public XmlSchemaAnyAttribute AnyAttribute { get { return anyAttribute; } set { anyAttribute = value; } } [XmlIgnore] public XmlQualifiedName QualifiedName { get { return qname; } } [XmlIgnore] internal XmlSchemaObjectTable AttributeUses { get { if (attributeUses == null) { attributeUses = new XmlSchemaObjectTable(); } return attributeUses; } } [XmlIgnore] internal XmlSchemaAnyAttribute AttributeWildcard { get { return attributeWildcard; } set { attributeWildcard = value; } } ///[To be supplied.] ///[XmlIgnore] public XmlSchemaAttributeGroup RedefinedAttributeGroup { get { return redefined; } } [XmlIgnore] internal XmlSchemaAttributeGroup Redefined { get { return redefined; } set { redefined = value; } } [XmlIgnore] internal int SelfReferenceCount { get { return selfReferenceCount; } set { selfReferenceCount = value; } } [XmlIgnore] internal override string NameAttribute { get { return Name; } set { Name = value; } } internal void SetQualifiedName(XmlQualifiedName value) { qname = value; } internal override XmlSchemaObject Clone() { XmlSchemaAttributeGroup newGroup = (XmlSchemaAttributeGroup)MemberwiseClone(); if (XmlSchemaComplexType.HasAttributeQNameRef(this.attributes)) { //If a ref/type name is present newGroup.attributes = XmlSchemaComplexType.CloneAttributes(this.attributes); //Clear compiled tables newGroup.attributeUses = null; } return newGroup; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextModifier.cs
- ValidationError.cs
- TablePatternIdentifiers.cs
- Currency.cs
- StorageRoot.cs
- WebBrowserContainer.cs
- WSTransactionSection.cs
- BooleanToVisibilityConverter.cs
- TextContainer.cs
- DataGridAutomationPeer.cs
- WindowsGraphicsCacheManager.cs
- CheckedPointers.cs
- LogicalExpr.cs
- MulticastNotSupportedException.cs
- DefaultPerformanceCounters.cs
- CommandConverter.cs
- AddDataControlFieldDialog.cs
- DbMetaDataFactory.cs
- indexingfiltermarshaler.cs
- SafeRightsManagementPubHandle.cs
- _CommandStream.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MemberDescriptor.cs
- DataControlFieldCollection.cs
- CommentEmitter.cs
- shaperfactoryquerycacheentry.cs
- TextEffectCollection.cs
- nulltextnavigator.cs
- ListBox.cs
- ReadContentAsBinaryHelper.cs
- AspNetSynchronizationContext.cs
- SynthesizerStateChangedEventArgs.cs
- StateBag.cs
- LineServicesRun.cs
- AnimationException.cs
- SHA384.cs
- EntityDataSourceWizardForm.cs
- PasswordDeriveBytes.cs
- EntityContainerAssociationSet.cs
- CommandConverter.cs
- ClientSession.cs
- GeneralTransformGroup.cs
- Binding.cs
- ThreadPoolTaskScheduler.cs
- SystemIPv6InterfaceProperties.cs
- DiagnosticsConfiguration.cs
- Cursor.cs
- ContentTextAutomationPeer.cs
- Graph.cs
- AnimationLayer.cs
- SoapIgnoreAttribute.cs
- DrawingVisualDrawingContext.cs
- Point.cs
- VisualStyleTypesAndProperties.cs
- CustomError.cs
- TypefaceMap.cs
- COM2AboutBoxPropertyDescriptor.cs
- DataGridViewCheckBoxColumn.cs
- FontDialog.cs
- ProviderConnectionPoint.cs
- ApplicationSecurityManager.cs
- ColumnResult.cs
- counter.cs
- WindowAutomationPeer.cs
- TextTabProperties.cs
- MultipleViewPatternIdentifiers.cs
- Filter.cs
- SQLDateTimeStorage.cs
- SqlWorkflowInstanceStore.cs
- MatrixAnimationBase.cs
- Panel.cs
- ConfigWriter.cs
- PageAsyncTask.cs
- ProcessThreadCollection.cs
- JsonDataContract.cs
- CopyEncoder.cs
- TextDecorations.cs
- TemplateColumn.cs
- JsonWriterDelegator.cs
- MemberInfoSerializationHolder.cs
- DataControlFieldCell.cs
- IMembershipProvider.cs
- Page.cs
- DllHostedComPlusServiceHost.cs
- BStrWrapper.cs
- XmlLanguage.cs
- SubMenuStyleCollection.cs
- HuffCodec.cs
- StylusPlugin.cs
- MenuItemBinding.cs
- ObjectResult.cs
- SourceFileInfo.cs
- BindToObject.cs
- TypeResolvingOptions.cs
- ExtensionQuery.cs
- FormsAuthenticationUserCollection.cs
- TransformCollection.cs
- HashStream.cs
- ExceptionUtil.cs
- HTMLTagNameToTypeMapper.cs