Code:
/ DotNET / DotNET / 8.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
- PrintPreviewDialog.cs
- FixedNode.cs
- ScriptControl.cs
- ListControlConvertEventArgs.cs
- InputLanguageSource.cs
- Matrix3D.cs
- AuthenticationException.cs
- TypefaceMetricsCache.cs
- DatePickerDateValidationErrorEventArgs.cs
- DataSourceXmlTextReader.cs
- coordinatorfactory.cs
- ByteConverter.cs
- ReadOnlyCollection.cs
- ConfigurationValue.cs
- TextElement.cs
- SqlAliasesReferenced.cs
- ProtectedConfigurationProviderCollection.cs
- SelectedDatesCollection.cs
- SponsorHelper.cs
- GCHandleCookieTable.cs
- QueryCacheManager.cs
- RepeaterDataBoundAdapter.cs
- ChannelManagerHelpers.cs
- HttpCapabilitiesBase.cs
- DebugManager.cs
- SmtpReplyReaderFactory.cs
- TreeNodeEventArgs.cs
- WebUtil.cs
- TableRowCollection.cs
- SqlInternalConnectionTds.cs
- WmlPageAdapter.cs
- RawAppCommandInputReport.cs
- ClipboardProcessor.cs
- PasswordDeriveBytes.cs
- ManipulationDelta.cs
- RegistrationServices.cs
- IxmlLineInfo.cs
- XmlWrappingReader.cs
- MessageQueueAccessControlEntry.cs
- ParserStreamGeometryContext.cs
- XPathQilFactory.cs
- CryptoApi.cs
- assertwrapper.cs
- XmlSchemaSubstitutionGroup.cs
- Perspective.cs
- DefaultValueMapping.cs
- MethodCallTranslator.cs
- EventArgs.cs
- SqlAliaser.cs
- DataGridColumn.cs
- ExceptionUtility.cs
- QueryIntervalOp.cs
- ContextBase.cs
- sqlcontext.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RemoteWebConfigurationHost.cs
- ApplicationGesture.cs
- SimpleType.cs
- CursorConverter.cs
- OleAutBinder.cs
- Model3D.cs
- XmlSerializableReader.cs
- initElementDictionary.cs
- OracleCommandBuilder.cs
- FontDialog.cs
- SelectionChangedEventArgs.cs
- Exceptions.cs
- TextElementEnumerator.cs
- BrushConverter.cs
- BaseDataListDesigner.cs
- HitTestDrawingContextWalker.cs
- TypeConverterAttribute.cs
- TreeNodeStyle.cs
- MsmqIntegrationBindingElement.cs
- EditorAttribute.cs
- SqlDataSourceSelectingEventArgs.cs
- DeferredTextReference.cs
- Options.cs
- SchemaNamespaceManager.cs
- CommentEmitter.cs
- TcpConnectionPool.cs
- TailCallAnalyzer.cs
- MeasurementDCInfo.cs
- Cursors.cs
- fixedPageContentExtractor.cs
- SmiContext.cs
- RotationValidation.cs
- CreateUserWizard.cs
- SqlParameterCollection.cs
- ConnectionPointCookie.cs
- XamlTypeMapper.cs
- OutputCacheEntry.cs
- TypeUtil.cs
- ResourceWriter.cs
- serverconfig.cs
- SendKeys.cs
- LinearGradientBrush.cs
- DataSourceCache.cs
- XmlCharCheckingWriter.cs
- ConnectionManagementElement.cs