Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- InkCanvasSelectionAdorner.cs
- SignedXml.cs
- TreeNodeBindingCollection.cs
- EncodingNLS.cs
- StringWriter.cs
- PixelFormat.cs
- NameValueCollection.cs
- PropertyBuilder.cs
- ApplicationServiceHelper.cs
- StrokeNode.cs
- IndicShape.cs
- EncryptedPackageFilter.cs
- AsnEncodedData.cs
- DesignerForm.cs
- CubicEase.cs
- ObjectDataProvider.cs
- DateTimeParse.cs
- assemblycache.cs
- ValidationPropertyAttribute.cs
- SendKeys.cs
- TabletDevice.cs
- DbLambda.cs
- WindowsListViewGroupSubsetLink.cs
- SpecularMaterial.cs
- ViewService.cs
- EmptyWithCancelationCheckWorkItem.cs
- DiscardableAttribute.cs
- CaretElement.cs
- MemoryMappedViewStream.cs
- StrokeNodeData.cs
- ThousandthOfEmRealPoints.cs
- InternalTypeHelper.cs
- UpDownEvent.cs
- ReliabilityContractAttribute.cs
- FixedPageAutomationPeer.cs
- Missing.cs
- DataKeyArray.cs
- SpecialTypeDataContract.cs
- ListQueryResults.cs
- ManagementOperationWatcher.cs
- DrawingAttributeSerializer.cs
- CommandDevice.cs
- AssemblyInfo.cs
- SystemColors.cs
- PointConverter.cs
- ParameterReplacerVisitor.cs
- CfgArc.cs
- QuaternionAnimation.cs
- SymmetricAlgorithm.cs
- EdmProviderManifest.cs
- MtomMessageEncoder.cs
- SqlCacheDependency.cs
- SemanticAnalyzer.cs
- ACE.cs
- ClrPerspective.cs
- AstNode.cs
- BaseInfoTable.cs
- ContextProperty.cs
- GradientBrush.cs
- TextAnchor.cs
- EntityContainer.cs
- SQLDoubleStorage.cs
- ManagedFilter.cs
- GeometryGroup.cs
- InvalidContentTypeException.cs
- CryptographicAttribute.cs
- CompositeActivityTypeDescriptorProvider.cs
- BaseParser.cs
- DataGridCellAutomationPeer.cs
- ApplicationSettingsBase.cs
- ResourceReferenceKeyNotFoundException.cs
- UnsafeNativeMethods.cs
- IdentityManager.cs
- FusionWrap.cs
- ObjectSelectorEditor.cs
- UrlSyndicationContent.cs
- WebHttpEndpointElement.cs
- AstTree.cs
- ListBoxChrome.cs
- AttributeCollection.cs
- DbConnectionStringBuilder.cs
- VerificationException.cs
- ManualResetEventSlim.cs
- ToolStripDropDownButton.cs
- FormView.cs
- CodePageUtils.cs
- ObservableCollection.cs
- Listbox.cs
- StreamMarshaler.cs
- PlatformCulture.cs
- TemplateContentLoader.cs
- RenderTargetBitmap.cs
- SafeThemeHandle.cs
- IntMinMaxAggregationOperator.cs
- wgx_render.cs
- XmlSchemas.cs
- PreservationFileReader.cs
- ListViewCommandEventArgs.cs
- DefaultValueAttribute.cs
- ImageListStreamer.cs