Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- wgx_exports.cs
- CacheMode.cs
- MaskedTextProvider.cs
- ScrollEventArgs.cs
- FontStretches.cs
- InfiniteTimeSpanConverter.cs
- WebPartUserCapability.cs
- FontEmbeddingManager.cs
- TextPatternIdentifiers.cs
- CompilationUtil.cs
- FormViewUpdatedEventArgs.cs
- WorkflowInvoker.cs
- QilLoop.cs
- ReadOnlyNameValueCollection.cs
- XamlParser.cs
- wgx_sdk_version.cs
- AbandonedMutexException.cs
- GridViewAutomationPeer.cs
- RuntimeCompatibilityAttribute.cs
- NGCPageContentCollectionSerializerAsync.cs
- AutomationPropertyChangedEventArgs.cs
- Clock.cs
- SynchronizationValidator.cs
- ItemCollection.cs
- ADMembershipUser.cs
- AgileSafeNativeMemoryHandle.cs
- DataGridRow.cs
- UserPrincipalNameElement.cs
- FactoryGenerator.cs
- DependencyProperty.cs
- FixedElement.cs
- Label.cs
- ManifestSignedXml.cs
- RtType.cs
- XmlSerializerNamespaces.cs
- BrowserCapabilitiesFactoryBase.cs
- PopupRoot.cs
- UTF7Encoding.cs
- AutomationPatternInfo.cs
- SystemIPInterfaceStatistics.cs
- WebPartEditorOkVerb.cs
- AdornerLayer.cs
- StoreItemCollection.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- DiscoveryEndpoint.cs
- ControlPager.cs
- RemoteWebConfigurationHostServer.cs
- SqlDataRecord.cs
- sqlinternaltransaction.cs
- VerificationException.cs
- WindowsScrollBar.cs
- ISAPIWorkerRequest.cs
- TextTreeNode.cs
- SimpleWebHandlerParser.cs
- AddInDeploymentState.cs
- SessionPageStateSection.cs
- Label.cs
- EntityProxyFactory.cs
- Visual3DCollection.cs
- GeometryDrawing.cs
- DataRow.cs
- Compilation.cs
- DataList.cs
- XmlSignatureProperties.cs
- PrinterResolution.cs
- Command.cs
- PaperSource.cs
- ModelItem.cs
- SchemaCreator.cs
- RegistryPermission.cs
- FocusTracker.cs
- ListBindingConverter.cs
- ElementHostAutomationPeer.cs
- SamlAssertionKeyIdentifierClause.cs
- DataGridItemCollection.cs
- XmlSecureResolver.cs
- Stackframe.cs
- LogStream.cs
- CommonRemoteMemoryBlock.cs
- BreakRecordTable.cs
- AuthenticatingEventArgs.cs
- UriScheme.cs
- ObjectCloneHelper.cs
- PrincipalPermission.cs
- XmlSchemaObject.cs
- ErrorRuntimeConfig.cs
- PrePrepareMethodAttribute.cs
- SystemWebCachingSectionGroup.cs
- LinqDataSourceStatusEventArgs.cs
- ByteRangeDownloader.cs
- GlobalizationSection.cs
- MemberDomainMap.cs
- WSFederationHttpSecurityMode.cs
- HttpApplicationFactory.cs
- Mappings.cs
- StandardBindingReliableSessionElement.cs
- DataBindingCollection.cs
- IIS7WorkerRequest.cs
- WindowsListViewItemStartMenu.cs
- Calendar.cs