1 // Author: Dwivedi, Ajay kumar
\r
5 using System.Xml.Serialization;
\r
6 using System.ComponentModel;
\r
8 namespace System.Xml.Schema
\r
12 /// Summary description for XmlSchemaFacet.
\r
14 public abstract class XmlSchemaFacet : XmlSchemaAnnotated
\r
17 internal protected enum Facet {
\r
28 minInclusive = 512,
\r
30 fractionDigits = 2048
\r
33 internal protected const Facet AllFacets =
\r
34 Facet.length | Facet.minLength | Facet.maxLength |
\r
35 Facet.minExclusive | Facet.maxExclusive |
\r
36 Facet.minInclusive | Facet.maxInclusive |
\r
37 Facet.pattern | Facet.enumeration | Facet.whiteSpace |
\r
38 Facet.totalDigits | Facet.fractionDigits;
\r
40 internal abstract Facet ThisFacet { get ; }
\r
42 private bool isFixed;
\r
45 protected XmlSchemaFacet()
\r
49 [System.Xml.Serialization.XmlAttribute("value")]
\r
56 [DefaultValue(false)]
\r
57 [System.Xml.Serialization.XmlAttribute("fixed")]
\r
58 public virtual bool IsFixed
\r
60 get{ return isFixed; }
\r
61 set{ isFixed = value; }
\r