Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaFacet.cs / 1305376 / 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
- ShimAsPublicXamlType.cs
- Cursors.cs
- PocoPropertyAccessorStrategy.cs
- ClientFormsIdentity.cs
- EventlogProvider.cs
- HttpAsyncResult.cs
- WinFormsSecurity.cs
- EntityAdapter.cs
- PasswordBox.cs
- FontSizeConverter.cs
- CodeGen.cs
- ScriptBehaviorDescriptor.cs
- TextParaClient.cs
- GroupBoxAutomationPeer.cs
- Int32Collection.cs
- Collection.cs
- HelpOperationInvoker.cs
- ToolStripRendererSwitcher.cs
- StackBuilderSink.cs
- CodeAttributeDeclarationCollection.cs
- ToolStripDropDownClosingEventArgs.cs
- ViewGenerator.cs
- StateBag.cs
- DSGeneratorProblem.cs
- MimeBasePart.cs
- EtwTrace.cs
- DoubleAnimation.cs
- SecurityCriticalDataForSet.cs
- RoleManagerEventArgs.cs
- XmlElementAttributes.cs
- Italic.cs
- ContentDisposition.cs
- SmtpNegotiateAuthenticationModule.cs
- TextModifierScope.cs
- BinHexEncoder.cs
- HMACSHA384.cs
- XmlJsonWriter.cs
- StateManagedCollection.cs
- EndpointDiscoveryMetadata11.cs
- OverflowException.cs
- WindowsRebar.cs
- SecurityContext.cs
- DeliveryRequirementsAttribute.cs
- SecurityTokenValidationException.cs
- BuildProvider.cs
- Win32Exception.cs
- ServiceSecurityContext.cs
- ExtenderProvidedPropertyAttribute.cs
- Pen.cs
- XmlCompatibilityReader.cs
- PeerApplicationLaunchInfo.cs
- BindingMAnagerBase.cs
- messageonlyhwndwrapper.cs
- HostDesigntimeLicenseContext.cs
- MappingSource.cs
- LocalizabilityAttribute.cs
- XmlArrayItemAttributes.cs
- XmlSerializerAssemblyAttribute.cs
- EraserBehavior.cs
- LineGeometry.cs
- ProviderIncompatibleException.cs
- TrailingSpaceComparer.cs
- ChannelFactoryBase.cs
- ReflectionTypeLoadException.cs
- DataPagerFieldCollection.cs
- PropertyGroupDescription.cs
- SystemSounds.cs
- DoubleLinkListEnumerator.cs
- DbParameterHelper.cs
- HitTestResult.cs
- RestHandlerFactory.cs
- DbConnectionHelper.cs
- RemotingSurrogateSelector.cs
- HostingEnvironmentSection.cs
- DecoderFallbackWithFailureFlag.cs
- ExclusiveCanonicalizationTransform.cs
- StatusBarItemAutomationPeer.cs
- DataObject.cs
- BindingListCollectionView.cs
- SqlFactory.cs
- NopReturnReader.cs
- StructuredTypeInfo.cs
- GB18030Encoding.cs
- ControlBindingsCollection.cs
- DependencyPropertyKey.cs
- SystemWebCachingSectionGroup.cs
- CollectionDataContractAttribute.cs
- baseaxisquery.cs
- TimeSpanConverter.cs
- BitVector32.cs
- HttpRequestCacheValidator.cs
- TreeNodeConverter.cs
- LicenseManager.cs
- SetStoryboardSpeedRatio.cs
- BinHexDecoder.cs
- ClientBuildManagerCallback.cs
- ScriptingWebServicesSectionGroup.cs
- QueryCacheKey.cs
- PropertyChangedEventArgs.cs
- SponsorHelper.cs