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
- GridViewColumnCollectionChangedEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- XmlArrayItemAttribute.cs
- OfTypeExpression.cs
- TextRunTypographyProperties.cs
- ActivationArguments.cs
- ToolStripContainer.cs
- PartialTrustVisibleAssembliesSection.cs
- GeometryHitTestParameters.cs
- SchemaImporter.cs
- ChannelPoolSettings.cs
- CategoryEditor.cs
- SizeConverter.cs
- ReadOnlyDataSource.cs
- ServiceInstanceProvider.cs
- OdbcPermission.cs
- BuildProvider.cs
- LambdaValue.cs
- MediaScriptCommandRoutedEventArgs.cs
- DateTimeFormat.cs
- SelectionListDesigner.cs
- PaintValueEventArgs.cs
- HttpProfileBase.cs
- DownloadProgressEventArgs.cs
- CodeArrayCreateExpression.cs
- DataSourceDescriptorCollection.cs
- PenLineCapValidation.cs
- InkCanvas.cs
- Schema.cs
- FontUnitConverter.cs
- Executor.cs
- HwndSource.cs
- Accessors.cs
- elementinformation.cs
- DataGridViewTopRowAccessibleObject.cs
- WebResourceAttribute.cs
- SmtpFailedRecipientsException.cs
- FunctionNode.cs
- SqlIdentifier.cs
- SByte.cs
- AuthorizationRuleCollection.cs
- SemanticResultValue.cs
- XmlDomTextWriter.cs
- InlineUIContainer.cs
- ConstraintConverter.cs
- ScriptRegistrationManager.cs
- DecimalConstantAttribute.cs
- XmlRawWriterWrapper.cs
- ResourcePool.cs
- _RequestLifetimeSetter.cs
- QueryOutputWriter.cs
- SqlConnectionString.cs
- AssociationTypeEmitter.cs
- MembershipPasswordException.cs
- Or.cs
- StatusBar.cs
- PrintPreviewGraphics.cs
- NetworkStream.cs
- StrongName.cs
- Size.cs
- NativeRightsManagementAPIsStructures.cs
- PeerInvitationResponse.cs
- DateTimeUtil.cs
- MetadataConversionError.cs
- CommonProperties.cs
- DoubleCollectionConverter.cs
- UrlMapping.cs
- Rule.cs
- CapacityStreamGeometryContext.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TextBoxLine.cs
- UIElement3DAutomationPeer.cs
- QilGenerator.cs
- XPathNodeIterator.cs
- CustomWebEventKey.cs
- TextDecorationCollection.cs
- DataGridColumn.cs
- NameNode.cs
- SqlWorkflowInstanceStore.cs
- DataGridItemAttachedStorage.cs
- VirtualPath.cs
- ThreadStartException.cs
- SafeRegistryHandle.cs
- XdrBuilder.cs
- Int16AnimationUsingKeyFrames.cs
- ProgressBarAutomationPeer.cs
- AllowedAudienceUriElement.cs
- WebReferencesBuildProvider.cs
- WorkflowLayouts.cs
- WindowsTokenRoleProvider.cs
- PrintingPermissionAttribute.cs
- ApplicationHost.cs
- PeerObject.cs
- GridViewRowPresenter.cs
- NumericUpDownAccelerationCollection.cs
- TemplateBindingExtensionConverter.cs
- GrammarBuilder.cs
- SQLSingleStorage.cs
- CollectionChangeEventArgs.cs
- StreamGeometryContext.cs