Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs')
-rwxr-xr-xmcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs98
1 files changed, 0 insertions, 98 deletions
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs
deleted file mode 100755
index 119c335b3c0..00000000000
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-// Author: Dwivedi, Ajay kumar
-// Adwiv@Yahoo.com
-using System;
-using System.Xml.Serialization;
-
-namespace System.Xml.Schema
-{
- /// <summary>
- /// Summary description for XmlSchemaParticle.
- /// </summary>
- public abstract class XmlSchemaParticle : XmlSchemaAnnotated
- {
- decimal minOccurs, maxOccurs;
- string minstr, maxstr;
-
- protected XmlSchemaParticle()
- {
- minOccurs = decimal.One;
- maxOccurs = decimal.One;
- }
-
- #region Attributes
-
- [System.Xml.Serialization.XmlAttribute("minOccurs")]
- public string MinOccursString
- {
- get{ return minstr; }
- set
- {
- decimal val = decimal.Parse(value);
- if(val >= 0 && (val == Decimal.Truncate(val)))
- {
- minOccurs = val;
- minstr = val.ToString();
- }
- else
- {
- throw new XmlSchemaException
- ("MinOccursString must be a non-negative number",null);
- }
- }
- }
-
- [System.Xml.Serialization.XmlAttribute("maxOccurs")]
- public string MaxOccursString
- {
- get{ return maxstr; }
- set
- {
- if(value == "unbounded")
- {
- maxstr = value;
- maxOccurs = decimal.MaxValue;
- }
- else
- {
- decimal val = decimal.Parse(value);
- if(val >= 0 && (val == Decimal.Truncate(val)))
- {
- maxOccurs = val;
- maxstr = val.ToString();
- }
- else
- {
- throw new XmlSchemaException
- ("MaxOccurs must be a non-negative integer",null);
- }
- }
- }
- }
-
- #endregion
-
- #region XmlIgnore
-
- [XmlIgnore]
- public decimal MinOccurs
- {
- get{ return minOccurs; }
- set
- {
- MinOccursString = value.ToString();
- }
- }
-
- [XmlIgnore]
- public decimal MaxOccurs
- {
- get{ return maxOccurs; }
- set
- {
- MaxOccursString = value.ToString();
- }
- }
-
- #endregion
- }
-} \ No newline at end of file