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
- GridViewDeletedEventArgs.cs
- HandlerBase.cs
- Unit.cs
- CapabilitiesSection.cs
- NullableDecimalSumAggregationOperator.cs
- ChildDocumentBlock.cs
- TagNameToTypeMapper.cs
- PixelShader.cs
- HttpCacheParams.cs
- WeakReferenceKey.cs
- InlineCollection.cs
- ErrorRuntimeConfig.cs
- UInt64Storage.cs
- DataFieldEditor.cs
- SoapFormatter.cs
- SecurityState.cs
- srgsitem.cs
- HMACSHA512.cs
- UnescapedXmlDiagnosticData.cs
- PropertyEmitter.cs
- LabelLiteral.cs
- AuthenticationConfig.cs
- CheckBoxBaseAdapter.cs
- UnmanagedBitmapWrapper.cs
- Button.cs
- SurrogateChar.cs
- HashMembershipCondition.cs
- CodeStatement.cs
- KeyboardNavigation.cs
- XamlVector3DCollectionSerializer.cs
- SortKey.cs
- WeakEventTable.cs
- CodeDOMUtility.cs
- Logging.cs
- TypedAsyncResult.cs
- HttpWebResponse.cs
- InvalidProgramException.cs
- IgnoreSection.cs
- ArithmeticException.cs
- SecurityResources.cs
- ClickablePoint.cs
- HostedImpersonationContext.cs
- FeatureSupport.cs
- SqlDataSourceQueryEditorForm.cs
- NumericUpDownAcceleration.cs
- LogEntryUtils.cs
- InstanceView.cs
- StreamSecurityUpgradeInitiator.cs
- ApplicationActivator.cs
- ObjectDataSourceEventArgs.cs
- ScrollContentPresenter.cs
- BackgroundFormatInfo.cs
- HwndHostAutomationPeer.cs
- SiteMapNodeCollection.cs
- objectquery_tresulttype.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- PropertyCondition.cs
- UniqueIdentifierService.cs
- ResourceProviderFactory.cs
- WorkflowViewStateService.cs
- MatrixIndependentAnimationStorage.cs
- SQLCharsStorage.cs
- TreeNodeBinding.cs
- AsymmetricCryptoHandle.cs
- XmlCollation.cs
- ToolBar.cs
- NativeCompoundFileAPIs.cs
- CreateUserWizard.cs
- TagPrefixAttribute.cs
- StateMachineWorkflow.cs
- TemplateXamlParser.cs
- X509CertificateCollection.cs
- UrlMappingsSection.cs
- ManifestResourceInfo.cs
- XmlText.cs
- IItemProperties.cs
- WindowsListView.cs
- WebServiceEnumData.cs
- ItemList.cs
- BulletedList.cs
- EndSelectCardRequest.cs
- xamlnodes.cs
- FilterableAttribute.cs
- TimeSpanOrInfiniteConverter.cs
- BitVector32.cs
- InputBuffer.cs
- mil_sdk_version.cs
- StreamingContext.cs
- LinkedList.cs
- PageTheme.cs
- XmlDataSource.cs
- WebPartCatalogCloseVerb.cs
- StorageEntityTypeMapping.cs
- SocketElement.cs
- TypePresenter.xaml.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- WmfPlaceableFileHeader.cs
- XamlSerializerUtil.cs
- Substitution.cs
- bidPrivateBase.cs