Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- __Filters.cs
- RuleConditionDialog.cs
- ModuleConfigurationInfo.cs
- ActivationServices.cs
- RankException.cs
- ProcessHost.cs
- IgnoreDataMemberAttribute.cs
- TraceContext.cs
- GenericRootAutomationPeer.cs
- QilReference.cs
- _UriSyntax.cs
- BindStream.cs
- LinkDescriptor.cs
- RijndaelManagedTransform.cs
- MappingException.cs
- GeometryHitTestParameters.cs
- Int64.cs
- FixedTextView.cs
- MsmqException.cs
- TextTabProperties.cs
- ContextBase.cs
- ZipIOLocalFileDataDescriptor.cs
- ImageCodecInfoPrivate.cs
- XmlSchemaComplexContentExtension.cs
- CrossContextChannel.cs
- DocumentApplicationJournalEntry.cs
- ExternalException.cs
- RoutedEventValueSerializer.cs
- Material.cs
- BypassElementCollection.cs
- CategoryGridEntry.cs
- XDRSchema.cs
- IndexedSelectQueryOperator.cs
- RestClientProxyHandler.cs
- ValidatingCollection.cs
- HttpCapabilitiesSectionHandler.cs
- Ops.cs
- AmbiguousMatchException.cs
- HtmlLink.cs
- GeneralTransformGroup.cs
- ColumnPropertiesGroup.cs
- SqlTrackingQuery.cs
- CreateUserWizardDesigner.cs
- HtmlInputHidden.cs
- ZipIOExtraFieldZip64Element.cs
- KeyInterop.cs
- RenderContext.cs
- ContainerSelectorActiveEvent.cs
- Fonts.cs
- TextBox.cs
- BridgeDataRecord.cs
- AlternateViewCollection.cs
- LongMinMaxAggregationOperator.cs
- ChildDocumentBlock.cs
- EntityContainerAssociationSetEnd.cs
- WebPartConnectionsCancelVerb.cs
- PointAnimation.cs
- MatrixTransform.cs
- XamlReader.cs
- SqlCacheDependencyDatabaseCollection.cs
- FaultHandlingFilter.cs
- StylusCaptureWithinProperty.cs
- Token.cs
- TypeLibConverter.cs
- ConfigurationManagerInternalFactory.cs
- PersonalizationProviderCollection.cs
- DataObjectPastingEventArgs.cs
- FontFamilyIdentifier.cs
- GuidelineSet.cs
- CodeMemberField.cs
- MsmqIntegrationValidationBehavior.cs
- TreeView.cs
- SslStream.cs
- SoapException.cs
- shaperfactoryquerycachekey.cs
- ObjectItemNoOpAssemblyLoader.cs
- ScaleTransform.cs
- DbConnectionStringBuilder.cs
- Switch.cs
- BaseComponentEditor.cs
- ClientRequest.cs
- LinqDataSource.cs
- EventArgs.cs
- DataGridColumnFloatingHeader.cs
- DocumentReference.cs
- ServiceHostFactory.cs
- ListViewCancelEventArgs.cs
- CodeSnippetTypeMember.cs
- TrackingValidationObjectDictionary.cs
- TextRangeProviderWrapper.cs
- Shared.cs
- BinaryNode.cs
- PropertyValueUIItem.cs
- DictionaryBase.cs
- SchemaImporterExtension.cs
- ParsedAttributeCollection.cs
- PointLightBase.cs
- RawStylusInputCustomData.cs
- XsltContext.cs
- SchemaNamespaceManager.cs