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
- ScriptingAuthenticationServiceSection.cs
- DbConnectionPoolOptions.cs
- TabItem.cs
- filewebrequest.cs
- Item.cs
- FunctionCommandText.cs
- StickyNote.cs
- StateItem.cs
- MSAANativeProvider.cs
- CharConverter.cs
- TypeBuilder.cs
- Grant.cs
- SchemaTableOptionalColumn.cs
- Baml6Assembly.cs
- SchemaMapping.cs
- Span.cs
- EventHandlersStore.cs
- RoleGroupCollection.cs
- TrustManagerPromptUI.cs
- ResolvedKeyFrameEntry.cs
- ServiceContractDetailViewControl.cs
- Point3D.cs
- InfoCardTraceRecord.cs
- LayoutEvent.cs
- PasswordRecovery.cs
- SimpleHandlerBuildProvider.cs
- DataSourceExpression.cs
- ScriptingAuthenticationServiceSection.cs
- RSAOAEPKeyExchangeFormatter.cs
- ParameterBuilder.cs
- FormattedTextSymbols.cs
- AssemblyBuilder.cs
- WindowsTooltip.cs
- CanExecuteRoutedEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- Vector3DAnimationUsingKeyFrames.cs
- ChannelServices.cs
- UdpDiscoveryEndpointElement.cs
- WindowsListViewItemCheckBox.cs
- OledbConnectionStringbuilder.cs
- DataComponentNameHandler.cs
- MenuRendererClassic.cs
- ConfigXmlElement.cs
- InvokeProviderWrapper.cs
- LiteralSubsegment.cs
- QueryException.cs
- QilTernary.cs
- SafeCryptoHandles.cs
- DbMetaDataColumnNames.cs
- AsymmetricKeyExchangeFormatter.cs
- _UriTypeConverter.cs
- Task.cs
- ContextMenuStripGroupCollection.cs
- TemplateBindingExpression.cs
- StringOutput.cs
- OleDbRowUpdatingEvent.cs
- SingleConverter.cs
- Win32.cs
- SqlBulkCopyColumnMapping.cs
- ScriptReferenceEventArgs.cs
- DataObjectAttribute.cs
- BitmapEffectInputConnector.cs
- ChannelManager.cs
- PixelFormat.cs
- FrameSecurityDescriptor.cs
- SQLDecimalStorage.cs
- SmtpReplyReader.cs
- SecUtil.cs
- SkipQueryOptionExpression.cs
- CompositeCollectionView.cs
- TreeView.cs
- DivideByZeroException.cs
- RegisteredExpandoAttribute.cs
- mil_sdk_version.cs
- DatagridviewDisplayedBandsData.cs
- ExceptionHandler.cs
- CombinedGeometry.cs
- MobileContainerDesigner.cs
- CodeTypeOfExpression.cs
- WebPartsSection.cs
- Parameter.cs
- CodeTypeParameterCollection.cs
- DataGridViewAccessibleObject.cs
- RegionInfo.cs
- XmlAnyElementAttribute.cs
- EnglishPluralizationService.cs
- SetterBase.cs
- DomainUpDown.cs
- MetadataUtilsSmi.cs
- ResourceDisplayNameAttribute.cs
- ParseElement.cs
- LinkConverter.cs
- SrgsSemanticInterpretationTag.cs
- UserControlDocumentDesigner.cs
- XslNumber.cs
- SdlChannelSink.cs
- XmlQueryContext.cs
- KeyGesture.cs
- ContentPosition.cs
- DataSourceControl.cs