Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //[....] //----------------------------------------------------------------------------- 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
- SessionStateSection.cs
- OracleCommandSet.cs
- DataListAutoFormat.cs
- SelectedCellsCollection.cs
- BufferBuilder.cs
- DotExpr.cs
- FieldNameLookup.cs
- HttpWebResponse.cs
- XmlSchemaSequence.cs
- ContainerControlDesigner.cs
- SoapReflectionImporter.cs
- WinInet.cs
- SectionRecord.cs
- CursorConverter.cs
- PerfService.cs
- ItemTypeToolStripMenuItem.cs
- TypedElement.cs
- MonthChangedEventArgs.cs
- SqlServer2KCompatibilityAnnotation.cs
- basecomparevalidator.cs
- SqlBuffer.cs
- PolyBezierSegment.cs
- SharedPersonalizationStateInfo.cs
- CodePrimitiveExpression.cs
- XmlDataCollection.cs
- SmiEventSink_DeferedProcessing.cs
- DecimalAverageAggregationOperator.cs
- CopyNamespacesAction.cs
- AlgoModule.cs
- ExtendedPropertiesHandler.cs
- SqlBulkCopy.cs
- Process.cs
- PolicyStatement.cs
- TableLayoutSettings.cs
- ModifiableIteratorCollection.cs
- BulletedList.cs
- EventBuilder.cs
- TargetPerspective.cs
- TableItemPatternIdentifiers.cs
- XmlSerializableServices.cs
- DefaultSection.cs
- PrinterResolution.cs
- Switch.cs
- SchemaInfo.cs
- UTF7Encoding.cs
- MexTcpBindingElement.cs
- hresults.cs
- CollectionsUtil.cs
- HMACMD5.cs
- XmlTypeMapping.cs
- EntityViewGenerator.cs
- ByteFacetDescriptionElement.cs
- RightsManagementEncryptionTransform.cs
- Rfc2898DeriveBytes.cs
- IODescriptionAttribute.cs
- CacheSection.cs
- PeerPresenceInfo.cs
- WorkflowInstanceRecord.cs
- AuthenticatingEventArgs.cs
- URLMembershipCondition.cs
- TypeElement.cs
- TypefaceMap.cs
- WindowsSlider.cs
- FastEncoderWindow.cs
- NavigatingCancelEventArgs.cs
- BulletChrome.cs
- ErrorInfoXmlDocument.cs
- Int64KeyFrameCollection.cs
- _ScatterGatherBuffers.cs
- PermissionSet.cs
- XmlSchemaGroupRef.cs
- GridViewSortEventArgs.cs
- DetailsViewModeEventArgs.cs
- BinaryMethodMessage.cs
- DataBindingsDialog.cs
- RecognizerStateChangedEventArgs.cs
- ConfigXmlElement.cs
- StorageComplexPropertyMapping.cs
- AttributeQuery.cs
- ValueSerializer.cs
- XpsStructure.cs
- SchemaType.cs
- CmsInterop.cs
- InArgumentConverter.cs
- OdbcException.cs
- XmlAttributeCollection.cs
- TextEffect.cs
- QilPatternVisitor.cs
- ObjectItemCollection.cs
- Privilege.cs
- XmlSchemaChoice.cs
- LifetimeServices.cs
- DataListItemCollection.cs
- WhitespaceRule.cs
- ModelFactory.cs
- AutoScrollExpandMessageFilter.cs
- ListViewHitTestInfo.cs
- UIElementCollection.cs
- BitmapEffectGroup.cs
- ScriptingSectionGroup.cs