Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaAttributeGroup.cs / 1 / 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
- X509ChainPolicy.cs
- SoapException.cs
- XhtmlBasicImageAdapter.cs
- DataGridViewCellConverter.cs
- httpserverutility.cs
- TextClipboardData.cs
- ParenthesizePropertyNameAttribute.cs
- GridViewAutomationPeer.cs
- PropertyInfoSet.cs
- Rect.cs
- BehaviorEditorPart.cs
- XmlDictionaryWriter.cs
- WindowsSecurityToken.cs
- TargetParameterCountException.cs
- Color.cs
- PropertyPathConverter.cs
- InteropBitmapSource.cs
- Dynamic.cs
- XmlSchemaComplexContent.cs
- PagerStyle.cs
- CookieHandler.cs
- HttpCacheParams.cs
- StrongNameMembershipCondition.cs
- ConfigurationValidatorBase.cs
- TextTreePropertyUndoUnit.cs
- TypeBuilderInstantiation.cs
- Evidence.cs
- MimeObjectFactory.cs
- JulianCalendar.cs
- OLEDB_Enum.cs
- PrePrepareMethodAttribute.cs
- QuadraticBezierSegment.cs
- Set.cs
- TaiwanLunisolarCalendar.cs
- XmlSchemaAppInfo.cs
- bidPrivateBase.cs
- MemoryRecordBuffer.cs
- XmlDataSource.cs
- SqlDeflator.cs
- SingleConverter.cs
- SqlDependencyListener.cs
- ColumnWidthChangingEvent.cs
- WindowsUpDown.cs
- EastAsianLunisolarCalendar.cs
- PublisherIdentityPermission.cs
- XamlToRtfWriter.cs
- MsmqOutputMessage.cs
- MoveSizeWinEventHandler.cs
- TextServicesProperty.cs
- TableLayoutColumnStyleCollection.cs
- Point3DAnimation.cs
- SecurityTokenException.cs
- CharacterMetricsDictionary.cs
- EncodingNLS.cs
- BindingMemberInfo.cs
- MenuItem.cs
- BmpBitmapDecoder.cs
- DetailsViewPagerRow.cs
- NativeMethodsCLR.cs
- RegionInfo.cs
- HttpProfileGroupBase.cs
- SqlColumnizer.cs
- ProjectionPlan.cs
- ByteArrayHelperWithString.cs
- Selection.cs
- BitmapVisualManager.cs
- XmlAttributeAttribute.cs
- GeneralTransform2DTo3D.cs
- DataKey.cs
- CodeArrayCreateExpression.cs
- SafeHandle.cs
- IntAverageAggregationOperator.cs
- ToolTip.cs
- FreezableCollection.cs
- UniqueCodeIdentifierScope.cs
- DataContractSerializer.cs
- BodyGlyph.cs
- JoinGraph.cs
- ProxyManager.cs
- ValidatingPropertiesEventArgs.cs
- AdPostCacheSubstitution.cs
- DeleteIndexBinder.cs
- InternalBufferOverflowException.cs
- EventLogPropertySelector.cs
- XmlNodeComparer.cs
- FastEncoder.cs
- ManagementPath.cs
- GroupBoxRenderer.cs
- ResXResourceSet.cs
- LocatorPartList.cs
- DataControlFieldTypeEditor.cs
- DataGridCellsPresenter.cs
- arabicshape.cs
- COSERVERINFO.cs
- DataBoundControl.cs
- QilGeneratorEnv.cs
- WebPartAddingEventArgs.cs
- WindowsToolbarItemAsMenuItem.cs
- DefaultExpression.cs
- WorkflowElementDialog.cs