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 / 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
- PaperSize.cs
- RunWorkerCompletedEventArgs.cs
- AccessKeyManager.cs
- TypeInfo.cs
- WebPartHeaderCloseVerb.cs
- XmlnsDictionary.cs
- XmlNamespaceManager.cs
- WebHttpBehavior.cs
- CharAnimationUsingKeyFrames.cs
- ResourceDescriptionAttribute.cs
- RegionData.cs
- Debug.cs
- CodeDirectoryCompiler.cs
- ClassicBorderDecorator.cs
- UnsafeNativeMethods.cs
- IisHelper.cs
- XamlSerializerUtil.cs
- SqlDataSourceCommandEventArgs.cs
- WebZone.cs
- MULTI_QI.cs
- BindingContext.cs
- ConstraintStruct.cs
- EventItfInfo.cs
- PagerStyle.cs
- EditorZoneDesigner.cs
- ViewStateAttachedPropertyFeature.cs
- IPEndPoint.cs
- SqlDataSourceCommandEventArgs.cs
- MaskDescriptors.cs
- MessageSmuggler.cs
- JsonGlobals.cs
- InternalSendMessage.cs
- DirectoryGroupQuery.cs
- DataSourceGeneratorException.cs
- PackWebResponse.cs
- EmbeddedMailObjectsCollection.cs
- Random.cs
- DocumentPageTextView.cs
- Configuration.cs
- AutomationElementIdentifiers.cs
- Translator.cs
- PocoEntityKeyStrategy.cs
- PageBreakRecord.cs
- FixedPage.cs
- SafeNativeMethodsCLR.cs
- UnmanagedMarshal.cs
- KnownIds.cs
- ExtenderProviderService.cs
- tabpagecollectioneditor.cs
- ConsoleKeyInfo.cs
- ProxyAttribute.cs
- ValueCollectionParameterReader.cs
- MobileCapabilities.cs
- HttpGetProtocolImporter.cs
- InternalCache.cs
- ImageListUtils.cs
- OleDbConnectionFactory.cs
- cookiecollection.cs
- BamlLocalizableResource.cs
- SocketElement.cs
- DbParameterCollection.cs
- XmlValidatingReader.cs
- DesignTimeDataBinding.cs
- AutomationElementCollection.cs
- XamlClipboardData.cs
- TableAutomationPeer.cs
- UpdateRecord.cs
- TransformedBitmap.cs
- JournalNavigationScope.cs
- TargetConverter.cs
- RevocationPoint.cs
- BinaryMessageEncoder.cs
- DiscoveryService.cs
- ApplicationDirectory.cs
- XmlChildEnumerator.cs
- SqlDataSourceSelectingEventArgs.cs
- AsyncOperationManager.cs
- BlurBitmapEffect.cs
- PerspectiveCamera.cs
- Privilege.cs
- BooleanAnimationBase.cs
- ContractMapping.cs
- ValidationVisibilityAttribute.cs
- TableCellAutomationPeer.cs
- Application.cs
- DeviceFilterDictionary.cs
- ValidationHelper.cs
- TextRange.cs
- ServiceModelPerformanceCounters.cs
- OneOfTypeConst.cs
- XmlDataSourceNodeDescriptor.cs
- NetStream.cs
- ActivityExecutorOperation.cs
- JoinSymbol.cs
- XmlReaderSettings.cs
- ResourcePart.cs
- XmlSchemaSimpleContentRestriction.cs
- ImmutableObjectAttribute.cs
- CacheHelper.cs
- RequestQueue.cs