Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaInfo.cs / 1 / XmlSchemaInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Xml; using System.Collections; namespace System.Xml.Schema { ///public class XmlSchemaInfo : IXmlSchemaInfo { bool isDefault; bool isNil; XmlSchemaElement schemaElement; XmlSchemaAttribute schemaAttribute; XmlSchemaType schemaType; XmlSchemaSimpleType memberType; XmlSchemaValidity validity; XmlSchemaContentType contentType; public XmlSchemaInfo() { Clear(); } internal XmlSchemaInfo(XmlSchemaValidity validity) : this() { this.validity = validity; } public XmlSchemaValidity Validity { get { return validity; } set { validity = value; } } public bool IsDefault { get { return isDefault; } set { isDefault = value; } } public bool IsNil { get { return isNil; } set { isNil = value; } } public XmlSchemaSimpleType MemberType { get { return memberType; } set { memberType = value; } } public XmlSchemaType SchemaType { get { return schemaType; } set { schemaType = value; if (schemaType != null) { //Member type will not change its content type contentType = schemaType.SchemaContentType; } else { contentType = XmlSchemaContentType.Empty; } } } public XmlSchemaElement SchemaElement { get { return schemaElement; } set { schemaElement = value; if (value != null) { //Setting non-null SchemaElement means SchemaAttribute should be null schemaAttribute = null; } } } public XmlSchemaAttribute SchemaAttribute { get { return schemaAttribute; } set { schemaAttribute = value; if (value != null) { //Setting non-null SchemaAttribute means SchemaElement should be null schemaElement = null; } } } public XmlSchemaContentType ContentType { get { return contentType; } set { contentType = value; } } internal XmlSchemaType XmlType { get { if (memberType != null) { return memberType; } return schemaType; } } internal bool HasDefaultValue { get { return schemaElement != null && schemaElement.ElementDecl.DefaultValueTyped != null; } } internal bool IsUnionType { get { if (schemaType == null || schemaType.Datatype == null) { return false; } return schemaType.Datatype.Variety == XmlSchemaDatatypeVariety.Union; } } internal void Clear() { isNil = false; isDefault = false; schemaType = null; schemaElement = null; schemaAttribute = null; memberType = null; validity = XmlSchemaValidity.NotKnown; contentType = XmlSchemaContentType.Empty; } } } // 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
- SmiEventSink.cs
- Size.cs
- Location.cs
- Message.cs
- NumberAction.cs
- SpecialFolderEnumConverter.cs
- RewritingValidator.cs
- ContentTextAutomationPeer.cs
- NodeLabelEditEvent.cs
- DocumentScope.cs
- CatalogZone.cs
- TextCharacters.cs
- EventSinkHelperWriter.cs
- DataGridViewTopRowAccessibleObject.cs
- MobileListItemCollection.cs
- BypassElement.cs
- HttpCookiesSection.cs
- ZipIOLocalFileDataDescriptor.cs
- ReadWriteSpinLock.cs
- EventLogSession.cs
- DataGridCell.cs
- XPathParser.cs
- DataControlFieldCollection.cs
- PersistChildrenAttribute.cs
- GrammarBuilderDictation.cs
- QueryHandler.cs
- DesignerAttributeInfo.cs
- CodeDomDesignerLoader.cs
- HwndHostAutomationPeer.cs
- LocatorManager.cs
- KerberosSecurityTokenAuthenticator.cs
- ExceptionUtil.cs
- SiteMapNodeCollection.cs
- ConstantCheck.cs
- Emitter.cs
- NetworkInterface.cs
- TypefaceCollection.cs
- ByteAnimationUsingKeyFrames.cs
- StylusDevice.cs
- TabControlDesigner.cs
- InvalidEnumArgumentException.cs
- CompatibleComparer.cs
- DateTimeParse.cs
- XmlSchemaImporter.cs
- Menu.cs
- ToolZone.cs
- RayHitTestParameters.cs
- PersistChildrenAttribute.cs
- RenderContext.cs
- UrlAuthorizationModule.cs
- BlobPersonalizationState.cs
- Image.cs
- FixedSOMGroup.cs
- FileSystemInfo.cs
- OleDbMetaDataFactory.cs
- TextElementAutomationPeer.cs
- HatchBrush.cs
- DelegatedStream.cs
- MdiWindowListStrip.cs
- HostingPreferredMapPath.cs
- ParseNumbers.cs
- QueryAccessibilityHelpEvent.cs
- GifBitmapEncoder.cs
- MergeExecutor.cs
- precedingquery.cs
- SharedPersonalizationStateInfo.cs
- Duration.cs
- TreeViewAutomationPeer.cs
- AsyncContentLoadedEventArgs.cs
- CodeSnippetExpression.cs
- ProcessThreadCollection.cs
- GenericAuthenticationEventArgs.cs
- QueryCursorEventArgs.cs
- PrimarySelectionAdorner.cs
- VisualStyleRenderer.cs
- Pen.cs
- DataGridViewColumnStateChangedEventArgs.cs
- Window.cs
- ServicePrincipalNameElement.cs
- DataTableNameHandler.cs
- PerformanceCounterPermissionAttribute.cs
- DomainLiteralReader.cs
- Button.cs
- ObjectSet.cs
- RedistVersionInfo.cs
- AudioFormatConverter.cs
- XmlSchemaAnyAttribute.cs
- CacheMemory.cs
- AccessibleObject.cs
- WebPartCatalogCloseVerb.cs
- StrokeDescriptor.cs
- NotifyParentPropertyAttribute.cs
- HGlobalSafeHandle.cs
- IsolationInterop.cs
- XmlArrayItemAttribute.cs
- ByteArrayHelperWithString.cs
- SymLanguageType.cs
- DocumentViewerBase.cs
- DbDataAdapter.cs
- ToolStripDropDownClosingEventArgs.cs