Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaFacet.cs / 1 / XmlSchemaFacet.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.ComponentModel; using System.Xml.Serialization; internal enum FacetType { None, Length, MinLength, MaxLength, Pattern, Whitespace, Enumeration, MinExclusive, MinInclusive, MaxExclusive, MaxInclusive, TotalDigits, FractionDigits, } ///public abstract class XmlSchemaFacet : XmlSchemaAnnotated { string value; bool isFixed; FacetType facetType; /// [XmlAttribute("value")] public string Value { get { return this.value; } set { this.value = value; } } /// [XmlAttribute("fixed"), DefaultValue(false)] public virtual bool IsFixed { get { return isFixed; } set { if (!(this is XmlSchemaEnumerationFacet) && !(this is XmlSchemaPatternFacet)) { isFixed = value; } } } internal FacetType FacetType { get { return facetType; } set { facetType = value; } } } /// public abstract class XmlSchemaNumericFacet : XmlSchemaFacet { } /// public class XmlSchemaLengthFacet : XmlSchemaNumericFacet { public XmlSchemaLengthFacet() { FacetType = FacetType.Length; } } /// public class XmlSchemaMinLengthFacet : XmlSchemaNumericFacet { public XmlSchemaMinLengthFacet() { FacetType = FacetType.MinLength; } } /// public class XmlSchemaMaxLengthFacet : XmlSchemaNumericFacet { public XmlSchemaMaxLengthFacet() { FacetType = FacetType.MaxLength; } } /// public class XmlSchemaPatternFacet : XmlSchemaFacet { public XmlSchemaPatternFacet() { FacetType = FacetType.Pattern; } } /// public class XmlSchemaEnumerationFacet : XmlSchemaFacet { public XmlSchemaEnumerationFacet() { FacetType = FacetType.Enumeration; } } /// public class XmlSchemaMinExclusiveFacet : XmlSchemaFacet { public XmlSchemaMinExclusiveFacet() { FacetType = FacetType.MinExclusive; } } /// public class XmlSchemaMinInclusiveFacet : XmlSchemaFacet { public XmlSchemaMinInclusiveFacet() { FacetType = FacetType.MinInclusive; } } /// public class XmlSchemaMaxExclusiveFacet : XmlSchemaFacet { public XmlSchemaMaxExclusiveFacet() { FacetType = FacetType.MaxExclusive; } } /// public class XmlSchemaMaxInclusiveFacet : XmlSchemaFacet { public XmlSchemaMaxInclusiveFacet() { FacetType = FacetType.MaxInclusive; } } /// public class XmlSchemaTotalDigitsFacet : XmlSchemaNumericFacet { public XmlSchemaTotalDigitsFacet() { FacetType = FacetType.TotalDigits; } } /// public class XmlSchemaFractionDigitsFacet : XmlSchemaNumericFacet { public XmlSchemaFractionDigitsFacet() { FacetType = FacetType.FractionDigits; } } /// public class XmlSchemaWhiteSpaceFacet : XmlSchemaFacet { public XmlSchemaWhiteSpaceFacet() { FacetType = FacetType.Whitespace; } } } // 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
- ClientSettingsProvider.cs
- StringFunctions.cs
- PathGradientBrush.cs
- BaseServiceProvider.cs
- ColorTransformHelper.cs
- HtmlTextArea.cs
- RowCache.cs
- ColorComboBox.cs
- InstallerTypeAttribute.cs
- MemoryRecordBuffer.cs
- Canvas.cs
- NotifyParentPropertyAttribute.cs
- ClientSession.cs
- HwndMouseInputProvider.cs
- RenderContext.cs
- HttpModuleActionCollection.cs
- Calendar.cs
- ServiceActivationException.cs
- SqlDataRecord.cs
- FrameworkObject.cs
- ResourceBinder.cs
- RSACryptoServiceProvider.cs
- IgnoreFileBuildProvider.cs
- CultureNotFoundException.cs
- GridViewDeletedEventArgs.cs
- DateTimeFormatInfoScanner.cs
- SecurityTokenAttachmentMode.cs
- SiteOfOriginContainer.cs
- XNodeValidator.cs
- TextBoxBase.cs
- CustomCategoryAttribute.cs
- MonitorWrapper.cs
- CatalogPartDesigner.cs
- ListViewItemCollectionEditor.cs
- _TransmitFileOverlappedAsyncResult.cs
- XXXOnTypeBuilderInstantiation.cs
- TemplateParser.cs
- InteropEnvironment.cs
- MediaTimeline.cs
- ObjectStateFormatter.cs
- FixedTextContainer.cs
- X509ChainPolicy.cs
- CollectionDataContract.cs
- COM2TypeInfoProcessor.cs
- ObjectViewListener.cs
- AttachInfo.cs
- ToolBarButtonDesigner.cs
- XPathNodeIterator.cs
- ByteStack.cs
- BindingCompleteEventArgs.cs
- RichTextBoxAutomationPeer.cs
- XmlTextReaderImpl.cs
- SemaphoreFullException.cs
- ProcessModelSection.cs
- RootBrowserWindow.cs
- _FixedSizeReader.cs
- HyperLinkColumn.cs
- DataControlFieldHeaderCell.cs
- TextSegment.cs
- LayoutSettings.cs
- StringArrayConverter.cs
- login.cs
- DataExpression.cs
- Item.cs
- XXXInfos.cs
- IdentifierService.cs
- ControlAdapter.cs
- ProfileManager.cs
- EventToken.cs
- NavigationHelper.cs
- IntSecurity.cs
- LowerCaseStringConverter.cs
- ControlEvent.cs
- HttpVersion.cs
- WorkflowRuntimeServiceElement.cs
- AstNode.cs
- ExceptionUtil.cs
- StreamingContext.cs
- ToolStripRenderEventArgs.cs
- RtfControls.cs
- DetailsViewRow.cs
- SqlStatistics.cs
- Expander.cs
- FixedSOMLineCollection.cs
- Set.cs
- MsmqAppDomainProtocolHandler.cs
- SoapSchemaExporter.cs
- DataGridViewCellStyle.cs
- Math.cs
- EntityTemplateUserControl.cs
- AddInIpcChannel.cs
- Vector3DAnimationBase.cs
- ButtonChrome.cs
- ScrollEvent.cs
- ButtonFieldBase.cs
- FontStyle.cs
- KeyGestureValueSerializer.cs
- XmlBindingWorker.cs
- Input.cs
- DecoratedNameAttribute.cs