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
- PeerObject.cs
- TemplateNameScope.cs
- xmlsaver.cs
- Zone.cs
- ThemeInfoAttribute.cs
- GregorianCalendarHelper.cs
- Splitter.cs
- Trigger.cs
- EntityDataSourceEntityTypeFilterItem.cs
- SapiRecoInterop.cs
- WebServiceHandler.cs
- HeaderCollection.cs
- TextDecorationUnitValidation.cs
- BaseWebProxyFinder.cs
- RankException.cs
- DbMetaDataFactory.cs
- DbProviderServices.cs
- BamlResourceDeserializer.cs
- PermissionSetEnumerator.cs
- externdll.cs
- System.Data.OracleClient_BID.cs
- AnimatedTypeHelpers.cs
- UnsettableComboBox.cs
- XPathAxisIterator.cs
- NativeMethods.cs
- Completion.cs
- CommandHelper.cs
- EntityDesignPluralizationHandler.cs
- XmlElementCollection.cs
- VirtualPathProvider.cs
- PipelineModuleStepContainer.cs
- RegionInfo.cs
- InheritanceContextHelper.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- HtmlButton.cs
- Faults.cs
- ExternalDataExchangeClient.cs
- PointIndependentAnimationStorage.cs
- Border.cs
- EventListenerClientSide.cs
- ComponentRenameEvent.cs
- ProfessionalColorTable.cs
- DependentList.cs
- FormViewInsertedEventArgs.cs
- Parameter.cs
- HttpDictionary.cs
- WhitespaceRuleLookup.cs
- DragAssistanceManager.cs
- RawStylusActions.cs
- ConfigurationSectionGroup.cs
- RtType.cs
- BitArray.cs
- Rectangle.cs
- messageonlyhwndwrapper.cs
- HttpRequest.cs
- StringReader.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- Constants.cs
- XsltArgumentList.cs
- PackageDigitalSignatureManager.cs
- Metafile.cs
- X509SecurityTokenParameters.cs
- QilXmlWriter.cs
- QilScopedVisitor.cs
- RegexCode.cs
- contentDescriptor.cs
- iisPickupDirectory.cs
- TextRunProperties.cs
- ScrollEventArgs.cs
- SecurityValidationBehavior.cs
- CompiledWorkflowDefinitionContext.cs
- AnnotationResource.cs
- CapacityStreamGeometryContext.cs
- DynamicILGenerator.cs
- StringFunctions.cs
- TdsEnums.cs
- UIElementHelper.cs
- ParentControlDesigner.cs
- ResourceExpressionBuilder.cs
- GregorianCalendarHelper.cs
- ProtocolReflector.cs
- ValidatingReaderNodeData.cs
- ListControl.cs
- EmptyTextWriter.cs
- PeerNameResolver.cs
- DataObjectMethodAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XmlKeywords.cs
- RadioButtonRenderer.cs
- ClientTargetCollection.cs
- AuthenticatingEventArgs.cs
- ParentUndoUnit.cs
- VirtualizingStackPanel.cs
- COM2ExtendedUITypeEditor.cs
- SAPIEngineTypes.cs
- FixedSOMTable.cs
- ValidateNames.cs
- COAUTHINFO.cs
- PrintEvent.cs
- ItemType.cs