Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ScriptingAuthenticationServiceSection.cs
- XPathMultyIterator.cs
- StylusPoint.cs
- XmlMapping.cs
- SystemParameters.cs
- PropertyBuilder.cs
- FileDialog_Vista_Interop.cs
- OracleDataReader.cs
- WorkflowValidationFailedException.cs
- TextSelectionProcessor.cs
- FixedSOMSemanticBox.cs
- Missing.cs
- ToolStripRenderer.cs
- Suspend.cs
- Win32Exception.cs
- ContextMenuStripGroupCollection.cs
- ResolveNameEventArgs.cs
- M3DUtil.cs
- Attributes.cs
- TransformProviderWrapper.cs
- SqlBinder.cs
- TextEditorTyping.cs
- smtppermission.cs
- UpdatePanelControlTrigger.cs
- PathData.cs
- HotSpot.cs
- NetworkInformationPermission.cs
- FlagsAttribute.cs
- SQLInt16.cs
- ComponentEditorForm.cs
- ChannelTerminatedException.cs
- Normalization.cs
- ColorConvertedBitmap.cs
- DesignerSerializationOptionsAttribute.cs
- X509CertificateChain.cs
- ParallelQuery.cs
- ContentOnlyMessage.cs
- SchemaAttDef.cs
- SignatureHelper.cs
- TextTrailingCharacterEllipsis.cs
- SqlCommandBuilder.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ViewPort3D.cs
- Drawing.cs
- WizardSideBarListControlItem.cs
- SiteMapNodeItem.cs
- WmlTextBoxAdapter.cs
- BindingOperations.cs
- DeferredSelectedIndexReference.cs
- ChangeBlockUndoRecord.cs
- AttributeTableBuilder.cs
- PermissionSet.cs
- RoleService.cs
- SecurityRuntime.cs
- DtdParser.cs
- IDataContractSurrogate.cs
- ConfigurationHelpers.cs
- SatelliteContractVersionAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- IdentifierService.cs
- ToolStripDropTargetManager.cs
- XmlChildNodes.cs
- PrintPreviewDialog.cs
- SourceFileBuildProvider.cs
- LocalizationParserHooks.cs
- FrameworkPropertyMetadata.cs
- SqlDataReader.cs
- PassportAuthentication.cs
- ActivitiesCollection.cs
- LocalBuilder.cs
- DataColumn.cs
- HiddenFieldPageStatePersister.cs
- SpeakCompletedEventArgs.cs
- InfoCardSymmetricCrypto.cs
- LinqTreeNodeEvaluator.cs
- DocumentAutomationPeer.cs
- SecurityTokenAuthenticator.cs
- Int64.cs
- SerializationHelper.cs
- TemplateLookupAction.cs
- DocumentSequence.cs
- ProgressChangedEventArgs.cs
- SharedConnectionListener.cs
- DiscoveryOperationContext.cs
- mda.cs
- ReflectPropertyDescriptor.cs
- XmlCharCheckingWriter.cs
- MethodSignatureGenerator.cs
- MenuStrip.cs
- DataControlFieldCell.cs
- X509Certificate.cs
- TypefaceCollection.cs
- RuntimeEnvironment.cs
- DebugView.cs
- TypeBuilder.cs
- Graph.cs
- Stacktrace.cs
- TcpAppDomainProtocolHandler.cs
- XPathDocument.cs
- Vector3DCollection.cs