Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- InvalidOperationException.cs
- UIElementHelper.cs
- WindowsPrincipal.cs
- InternalSafeNativeMethods.cs
- Exception.cs
- xml.cs
- InvalidWMPVersionException.cs
- PointCollection.cs
- MessageBox.cs
- WeakEventTable.cs
- DbExpressionVisitor.cs
- DynamicDataResources.Designer.cs
- VariantWrapper.cs
- WebServiceClientProxyGenerator.cs
- Typography.cs
- ContentFilePart.cs
- GraphicsContext.cs
- SiteMapDataSourceView.cs
- SAPIEngineTypes.cs
- WebHttpDispatchOperationSelector.cs
- IPAddress.cs
- CharAnimationUsingKeyFrames.cs
- MeasureItemEvent.cs
- DrawingCollection.cs
- SID.cs
- MonthCalendar.cs
- SHA1Managed.cs
- PassportAuthentication.cs
- Sentence.cs
- PageBreakRecord.cs
- EnumerableRowCollection.cs
- ReadOnlyDictionary.cs
- PrintPageEvent.cs
- TransportElement.cs
- TransactionProxy.cs
- SmiEventSink_DeferedProcessing.cs
- HiddenFieldPageStatePersister.cs
- PhonemeEventArgs.cs
- MSAANativeProvider.cs
- XmlIgnoreAttribute.cs
- GregorianCalendar.cs
- TimeSpanSecondsConverter.cs
- StorageEntitySetMapping.cs
- LineVisual.cs
- UriTemplateLiteralPathSegment.cs
- CustomErrorsSectionWrapper.cs
- TableRowCollection.cs
- LeaseManager.cs
- ArrayExtension.cs
- UpdatableWrapper.cs
- RootBuilder.cs
- XmlSchemaGroupRef.cs
- UnsafeNativeMethods.cs
- FocusTracker.cs
- ClassImporter.cs
- OuterGlowBitmapEffect.cs
- URI.cs
- RenderDataDrawingContext.cs
- ConfigXmlReader.cs
- MailMessage.cs
- PropertyCollection.cs
- DocumentSequence.cs
- OleAutBinder.cs
- ActionNotSupportedException.cs
- ObjectViewEntityCollectionData.cs
- AttachmentCollection.cs
- XNodeValidator.cs
- PopupRootAutomationPeer.cs
- DataGridViewTextBoxEditingControl.cs
- DockPattern.cs
- ChangeConflicts.cs
- ExpressionBuilder.cs
- Html32TextWriter.cs
- XmlSchemaSimpleContent.cs
- GraphicsContext.cs
- DataTableReaderListener.cs
- ProxyOperationRuntime.cs
- IBuiltInEvidence.cs
- PointAnimationUsingPath.cs
- DoubleLinkList.cs
- BrowserCapabilitiesCompiler.cs
- DataGridViewCheckBoxCell.cs
- StyleModeStack.cs
- ThousandthOfEmRealPoints.cs
- PropertySegmentSerializer.cs
- ValidatorCollection.cs
- XmlElementAttribute.cs
- GridViewSelectEventArgs.cs
- XmlQueryContext.cs
- BitmapEncoder.cs
- ListBox.cs
- validation.cs
- FixedSOMTableCell.cs
- ContextMenuStrip.cs
- Point4DConverter.cs
- Header.cs
- HttpModuleAction.cs
- FormViewModeEventArgs.cs
- SqlDataReaderSmi.cs
- DesignRelationCollection.cs