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
- WindowExtensionMethods.cs
- RegexParser.cs
- QueryStringParameter.cs
- AttributeCollection.cs
- ParserStreamGeometryContext.cs
- WpfGeneratedKnownTypes.cs
- CapabilitiesPattern.cs
- AppLevelCompilationSectionCache.cs
- OAVariantLib.cs
- XmlTextWriter.cs
- EndEvent.cs
- Int16AnimationBase.cs
- CompositeActivityDesigner.cs
- TCEAdapterGenerator.cs
- PrimitiveCodeDomSerializer.cs
- CacheForPrimitiveTypes.cs
- PDBReader.cs
- GPPOINT.cs
- PermissionRequestEvidence.cs
- ItemsControlAutomationPeer.cs
- ValidationHelpers.cs
- ServiceKnownTypeAttribute.cs
- _DomainName.cs
- RequestCache.cs
- RectAnimationBase.cs
- HttpRuntimeSection.cs
- GetPageNumberCompletedEventArgs.cs
- NativeWrapper.cs
- MenuItemCollection.cs
- HttpClientChannel.cs
- UrlRoutingHandler.cs
- ELinqQueryState.cs
- SqlTrackingService.cs
- InstallerTypeAttribute.cs
- VariableDesigner.xaml.cs
- Panel.cs
- Listen.cs
- TaskSchedulerException.cs
- EntryIndex.cs
- _ScatterGatherBuffers.cs
- ResXResourceWriter.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- BaseDataList.cs
- TextCharacters.cs
- BulletChrome.cs
- Nullable.cs
- TransactionException.cs
- FixedFlowMap.cs
- SqlNodeAnnotation.cs
- TagMapInfo.cs
- DeferrableContent.cs
- activationcontext.cs
- RegexMatch.cs
- WorkflowDesigner.cs
- ProxyWebPartConnectionCollection.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- Trace.cs
- DataGridViewRowCancelEventArgs.cs
- DoubleLink.cs
- RequiredFieldValidator.cs
- ObfuscationAttribute.cs
- DefaultAsyncDataDispatcher.cs
- CodeTryCatchFinallyStatement.cs
- Mapping.cs
- ConfigXmlCDataSection.cs
- ResetableIterator.cs
- ApplicationDirectory.cs
- Vector3DAnimationUsingKeyFrames.cs
- BitmapEffectInputData.cs
- TextTreeUndo.cs
- HtmlMeta.cs
- GridEntry.cs
- PermissionListSet.cs
- TableItemStyle.cs
- SerializationFieldInfo.cs
- ServiceModelActivationSectionGroup.cs
- figurelength.cs
- DateTimeOffset.cs
- WorkerProcess.cs
- BrowserCapabilitiesCodeGenerator.cs
- dbdatarecord.cs
- VScrollBar.cs
- UpDownEvent.cs
- DataMemberFieldEditor.cs
- Util.cs
- HostSecurityManager.cs
- ByteStorage.cs
- PageAsyncTask.cs
- CodeDirectoryCompiler.cs
- ServerTooBusyException.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SqlServer2KCompatibilityAnnotation.cs
- RecordsAffectedEventArgs.cs
- linebase.cs
- DATA_BLOB.cs
- AutoResetEvent.cs
- ParserStreamGeometryContext.cs
- MachineKeySection.cs
- sqlser.cs
- UserPersonalizationStateInfo.cs