Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
///
///
/// [To be supplied.]
///
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; }
}
///
[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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MouseGestureValueSerializer.cs
- XmlWriterTraceListener.cs
- EncoderParameter.cs
- ListItemCollection.cs
- storepermission.cs
- PackageController.cs
- TextParagraphCache.cs
- BindingGroup.cs
- LingerOption.cs
- LogWriteRestartAreaState.cs
- _NestedSingleAsyncResult.cs
- CellParaClient.cs
- KeyValueSerializer.cs
- XmlDownloadManager.cs
- GenerateTemporaryAssemblyTask.cs
- PeerNameRecordCollection.cs
- SamlSubjectStatement.cs
- ProjectionRewriter.cs
- SingleKeyFrameCollection.cs
- IsolatedStorage.cs
- MessagePartDescription.cs
- HttpProfileGroupBase.cs
- CookielessHelper.cs
- TextEndOfSegment.cs
- IndependentlyAnimatedPropertyMetadata.cs
- InternalPolicyElement.cs
- relpropertyhelper.cs
- AnnotationResourceCollection.cs
- LassoHelper.cs
- RelatedCurrencyManager.cs
- SubstitutionDesigner.cs
- ContainsSearchOperator.cs
- DbUpdateCommandTree.cs
- SubpageParagraph.cs
- DataGridViewImageCell.cs
- ReadWriteControlDesigner.cs
- tabpagecollectioneditor.cs
- ToolStripDropDownClosedEventArgs.cs
- FileFormatException.cs
- MouseDevice.cs
- BlurBitmapEffect.cs
- Identifier.cs
- ParsedAttributeCollection.cs
- ComplexObject.cs
- WebPartRestoreVerb.cs
- GenericTextProperties.cs
- WebException.cs
- FrameworkContentElement.cs
- MsmqElementBase.cs
- BaseTreeIterator.cs
- WindowsImpersonationContext.cs
- NamedObject.cs
- InputLanguageCollection.cs
- AngleUtil.cs
- PassportAuthentication.cs
- StartUpEventArgs.cs
- Variable.cs
- IndentedWriter.cs
- HttpDateParse.cs
- Certificate.cs
- LogAppendAsyncResult.cs
- View.cs
- KeyValueSerializer.cs
- ChtmlTextWriter.cs
- FileLogRecordEnumerator.cs
- PackageRelationshipSelector.cs
- ProtectedConfiguration.cs
- XmlSchemaRedefine.cs
- PerformanceCounterPermissionAttribute.cs
- ExtendedPropertyDescriptor.cs
- ToolStripRendererSwitcher.cs
- SystemDropShadowChrome.cs
- BadImageFormatException.cs
- IdentityModelDictionary.cs
- RemotingSurrogateSelector.cs
- PersonalizationStateInfo.cs
- RectAnimationBase.cs
- UnitySerializationHolder.cs
- Listbox.cs
- ToolStripDesignerAvailabilityAttribute.cs
- updatecommandorderer.cs
- ToolStripRenderEventArgs.cs
- PresentationTraceSources.cs
- ExpressionNode.cs
- CancelRequestedQuery.cs
- SmiRequestExecutor.cs
- ServiceProviders.cs
- TextChange.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XamlTreeBuilder.cs
- EmptyCollection.cs
- ApplicationException.cs
- ToolBarButton.cs
- UrlSyndicationContent.cs
- ToolStripDesignerAvailabilityAttribute.cs
- MatrixStack.cs
- Substitution.cs
- MethodExpr.cs
- TypeCodeDomSerializer.cs
- AuthenticatedStream.cs