dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Meta


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001 SoapDateTime.cs,NONE,1.1 SoapDay.cs,NONE,1.1 SoapDuration.cs,NONE,1.1 SoapEntities.cs,NONE,1.1 SoapEntity.cs,NONE,1.1 SoapHexBinary.cs,NONE,1.1 SoapId.cs,NONE,1.1 SoapIdref.cs,NONE,1.1 SoapIdrefs.cs,NONE,1.1 SoapInteger.cs,NONE,1.1 SoapLanguage.cs,NONE,1.1 SoapMonth.cs,NONE,1.1 SoapMonthDay.cs,NONE,1.1 SoapName.cs,NONE,1.1 SoapNcName.cs,NONE,1.1 SoapNegativeInteger.cs,NONE,1.1 SoapNmtoken.cs,NONE,1.1 SoapNmtokens.cs,NONE,1.1 SoapNonNegativeInteger.cs,NONE,1.1 SoapNonPositiveInteger.cs,NONE,1.1 SoapNormalizedString.cs,NONE,1.1 SoapNotation.cs,NONE,1.1 SoapPositiveInteger.cs,NONE,1.1 SoapQName.cs,NONE,1.1 SoapTime.cs,NONE,1.1 SoapToken.cs,NONE,1.1 SoapYear.cs,NONE,1.1 SoapYearMonth.cs,NONE,1.1 SoapDate.cs,1.1,1.2
Date: Sat, 19 Apr 2003 03:15:41 -0400

Update of 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001
In directory 
subversions:/tmp/cvs-serv15432/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001

Modified Files:
        SoapDate.cs 
Added Files:
        SoapDateTime.cs SoapDay.cs SoapDuration.cs SoapEntities.cs 
        SoapEntity.cs SoapHexBinary.cs SoapId.cs SoapIdref.cs 
        SoapIdrefs.cs SoapInteger.cs SoapLanguage.cs SoapMonth.cs 
        SoapMonthDay.cs SoapName.cs SoapNcName.cs 
        SoapNegativeInteger.cs SoapNmtoken.cs SoapNmtokens.cs 
        SoapNonNegativeInteger.cs SoapNonPositiveInteger.cs 
        SoapNormalizedString.cs SoapNotation.cs SoapPositiveInteger.cs 
        SoapQName.cs SoapTime.cs SoapToken.cs SoapYear.cs 
        SoapYearMonth.cs 
Log Message:


Stub the remainder of the "System.Remoting" namespace.


--- NEW FILE ---
/*
 * SoapDateTime.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDateTime" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

public sealed class SoapDateTime
{
        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "dateTime";
                                }
                        }

        // Parse a value into a DateTime instance.
        [TODO]
        public static DateTime Parse(String value)
                        {
                                // TODO
                                return new DateTime(0);
                        }

        // Convert a date into a string.
        [TODO]
        public static String ToString(DateTime value)
                        {
                                // TODO
                                return null;
                        }

}; // class SoapDateTime

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapDay.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDay" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapDay : ISoapXsd
{
        // Internal state.
        private DateTime value;

        // Constructors.
        public SoapDay() {}
        public SoapDay(DateTime value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public DateTime Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "gDay";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        [TODO]
        public static SoapDay Parse(String value)
                        {
                                // TODO
                                return null;
                        }

        // Convert this object into a string.
        [TODO]
        public override String ToString()
                        {
                                // TODO
                                return null;
                        }

}; // class SoapDay

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapDuration.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDuration" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

public sealed class SoapDuration
{
        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "duration";
                                }
                        }

        // Parse a value into a TimeSpan instance.
        [TODO]
        public static TimeSpan Parse(String value)
                        {
                                // TODO
                                return new TimeSpan(0);
                        }

        // Convert a time span into a string.
        [TODO]
        public static String ToString(TimeSpan value)
                        {
                                // TODO
                                return null;
                        }

}; // class SoapDuration

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapEntities.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapEntities" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapEntities : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapEntities() {}
        public SoapEntities(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "ENTITIES";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapEntities Parse(String value)
                        {
                                return new SoapEntities(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapEntities

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapEntity.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapEntity" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapEntity : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapEntity() {}
        public SoapEntity(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "ENTITY";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapEntity Parse(String value)
                        {
                                return new SoapEntity(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapEntity

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapHexBinary.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapHexBinary" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

using System.Text;

[Serializable]
public sealed class SoapHexBinary : ISoapXsd
{
        // Internal state.
        private byte[] value;

        // Constructors.
        public SoapHexBinary() {}
        public SoapHexBinary(byte[] value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public byte[] Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "hexBinary";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapHexBinary Parse(String value)
                        {
                                if(value == null)
                                {
                                        return new SoapHexBinary();
                                }
                                else
                                {
                                        // TODO
                                        return null;
                                }
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                if(value == null)
                                {
                                        return null;
                                }
                                // TODO
                                return null;
                        }

}; // class SoapHexBinary

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapId.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapId" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapId : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapId() {}
        public SoapId(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "ID";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapId Parse(String value)
                        {
                                return new SoapId(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapId

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapIdref.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapIdref" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapIdref : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapIdref() {}
        public SoapIdref(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "IDREF";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapIdref Parse(String value)
                        {
                                return new SoapIdref(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapIdref

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapIdrefs.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapIdrefs" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapIdrefs : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapIdrefs() {}
        public SoapIdrefs(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "IDREFS";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapIdrefs Parse(String value)
                        {
                                return new SoapIdrefs(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapIdrefs

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapInteger.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapInteger" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

using System.Globalization;

[Serializable]
public sealed class SoapInteger : ISoapXsd
{
        // Internal state.
        private Decimal value;

        // Constructors.
        public SoapInteger() {}
        public SoapInteger(Decimal value)
                        {
                                this.value = Decimal.Truncate(value);
                        }

        // Get or set this object's value.
        public Decimal Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = Decimal.Truncate(value);
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "integer";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapInteger Parse(String value)
                        {
                                return new SoapInteger
                                        (Decimal.Parse(value, 
NumberStyles.Integer,
                                                                   
CultureInfo.InvariantCulture));
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return 
value.ToString(CultureInfo.InvariantCulture);
                        }

}; // class SoapInteger

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapLanguage.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapLanguage" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapLanguage : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapLanguage() {}
        public SoapLanguage(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "language";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapLanguage Parse(String value)
                        {
                                return new SoapLanguage(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapLanguage

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---

/*
 * SoapMonth.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapMonth" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapMonth : ISoapXsd
{
        // Internal state.
        private DateTime value;

        // Constructors.
        public SoapMonth() {}
        public SoapMonth(DateTime value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public DateTime Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "gMonth";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        [TODO]
        public static SoapMonth Parse(String value)
                        {
                                // TODO
                                return null;
                        }

        // Convert this object into a string.
        [TODO]
        public override String ToString()
                        {
                                // TODO
                                return null;
                        }

}; // class SoapMonth

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapMonthDay.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapMonthDay" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapMonthDay : ISoapXsd
{
        // Internal state.
        private DateTime value;

        // Constructors.
        public SoapMonthDay() {}
        public SoapMonthDay(DateTime value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public DateTime Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "gMonthDay";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        [TODO]
        public static SoapMonthDay Parse(String value)
                        {
                                // TODO
                                return null;
                        }

        // Convert this object into a string.
        [TODO]
        public override String ToString()
                        {
                                // TODO
                                return null;
                        }

}; // class SoapMonthDay

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapName.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapName" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapName : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapName() {}
        public SoapName(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "Name";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapName Parse(String value)
                        {
                                return new SoapName(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapName

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapNcName.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNcName" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapNcName : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapNcName() {}
        public SoapNcName(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "NCName";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapNcName Parse(String value)
                        {
                                return new SoapNcName(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapNcName

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapNegativeInteger.cs - Implementation of the
 *      "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNegativeInteger" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

using System.Globalization;

[Serializable]
public sealed class SoapNegativeInteger : ISoapXsd
{
        // Internal state.
        private Decimal value;

        // Constructors.
        public SoapNegativeInteger() {}
        public SoapNegativeInteger(Decimal value)
                        {
                                Value = value;
                        }

        // Get or set this object's value.
        public Decimal Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = Decimal.Truncate(value);
                                        if(value > Decimal.MinusOne)
                                        {
                                                throw new RemotingException
                                                        
(_("ArgRange_Negative"));
                                        }
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "negativeInteger";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapNegativeInteger Parse(String value)
                        {
                                return new SoapNegativeInteger
                                        (Decimal.Parse(value, 
NumberStyles.Integer,
                                                                   
CultureInfo.InvariantCulture));
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return 
value.ToString(CultureInfo.InvariantCulture);
                        }

}; // class SoapNegativeInteger

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapNmtoken.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNmtoken" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapNmtoken : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapNmtoken() {}
        public SoapNmtoken(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "NMTOKEN";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapNmtoken Parse(String value)
                        {
                                return new SoapNmtoken(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapNmtoken

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapNmtokens.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNmtokens" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapNmtokens : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapNmtokens() {}
        public SoapNmtokens(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "NMTOKENS";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapNmtokens Parse(String value)
                        {
                                return new SoapNmtokens(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapNmtokens

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapNonNegativeInteger.cs - Implementation of the
 *      "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonNegativeInteger" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

using System.Globalization;

[Serializable]
public sealed class SoapNonNegativeInteger : ISoapXsd
{
        // Internal state.
        private Decimal value;

        // Constructors.
        public SoapNonNegativeInteger() {}
        public SoapNonNegativeInteger(Decimal value)
                        {
                                Value = value;
                        }

        // Get or set this object's value.
        public Decimal Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        if(value < Decimal.Zero)
                                        {
                                                throw new RemotingException
                                                        
(_("ArgRange_NonNegative"));
                                        }
                                        this.value = Decimal.Truncate(value);
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "nonNegativeInteger";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapNonNegativeInteger Parse(String value)
                        {
                                return new SoapNonNegativeInteger
                                        (Decimal.Parse(value, 
NumberStyles.Integer,
                                                                   
CultureInfo.InvariantCulture));
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return 
value.ToString(CultureInfo.InvariantCulture);
                        }

}; // class SoapNonNegativeInteger

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---

/*
 * SoapNonPositiveInteger.cs - Implementation of the
 *      "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonPositiveInteger" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

using System.Globalization;

[Serializable]
public sealed class SoapNonPositiveInteger : ISoapXsd
{
        // Internal state.
        private Decimal value;

        // Constructors.
        public SoapNonPositiveInteger() {}
        public SoapNonPositiveInteger(Decimal value)
                        {
                                Value = value;
                        }

        // Get or set this object's value.
        public Decimal Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = Decimal.Truncate(value);
                                        if(value > Decimal.Zero)
                                        {
                                                throw new RemotingException
                                                        
(_("ArgRange_NegativeOrZero"));
                                        }
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "nonPositiveInteger";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapNonPositiveInteger Parse(String value)
                        {
                                return new SoapNonPositiveInteger
                                        (Decimal.Parse(value, 
NumberStyles.Integer,
                                                                   
CultureInfo.InvariantCulture));
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return 
value.ToString(CultureInfo.InvariantCulture);
                        }

}; // class SoapNonPositiveInteger

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapNormalizedString.cs - Implementation of the
 *      "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNormalizedString" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

using System.Text;

[Serializable]
public sealed class SoapNormalizedString : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapNormalizedString() {}
        public SoapNormalizedString(String value)
                        {
                                this.Value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        if(value != null)
                                        {
                                                if(value.IndexOfAny(new char [] 
{'\n', '\r', '\t'})
                                                                != -1)
                                                {
                                                        throw new 
RemotingException
                                                                
(_("Arg_InvalidSoapValue"));
                                                }
                                        }
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "normalizedString";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapNormalizedString Parse(String value)
                        {
                                return new SoapNormalizedString(value);
                        }

        // Escape problematic characters in a string.
        internal static String Escape(String str)
                        {
                                if(str == null)
                                {
                                        return String.Empty;
                                }
                                StringBuilder builder = new StringBuilder();
                                foreach(char ch in str)
                                {
                                        switch(ch)
                                        {
                                                case '<':
                                                case '>':
                                                case '&':
                                                case '\'':
                                                case '"':
                                                case '\0':
                                                {
                                                        builder.Append('&');
                                                        builder.Append('#');
                                                        
builder.Append(((int)ch).ToString());
                                                        builder.Append(';');
                                                }
                                                break;

                                                default:
                                                {
                                                        builder.Append(ch);
                                                }
                                                break;
                                        }
                                }
                                return builder.ToString();
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return Escape(value);
                        }

}; // class SoapNormalizedString

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapNotation.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNotation" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapNotation : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapNotation() {}
        public SoapNotation(String value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "NOTATION";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapNotation Parse(String value)
                        {
                                return new SoapNotation(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return value;
                        }

}; // class SoapNotation

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapPositiveInteger.cs - Implementation of the
 *              
"System.Runtime.Remoting.Metadata.W3cXsd2001.SoapPositiveInteger" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

using System.Globalization;

[Serializable]
public sealed class SoapPositiveInteger : ISoapXsd
{
        // Internal state.
        private Decimal value;

        // Constructors.
        public SoapPositiveInteger() {}
        public SoapPositiveInteger(Decimal value)
                        {
                                Value = value;
                        }

        // Get or set this object's value.
        public Decimal Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        if(value < Decimal.One)
                                        {
                                                throw new RemotingException
                                                        
(_("ArgRange_PositiveNonZero"));
                                        }
                                        this.value = Decimal.Truncate(value);
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "positiveInteger";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapPositiveInteger Parse(String value)
                        {
                                return new SoapPositiveInteger
                                        (Decimal.Parse(value, 
NumberStyles.Integer,
                                                                   
CultureInfo.InvariantCulture));
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return 
value.ToString(CultureInfo.InvariantCulture);
                        }

}; // class SoapPositiveInteger

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapQName.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapQName : ISoapXsd
{
        // Internal state.
        private String key;
        private String name;
        private String namespaceValue;

        // Constructors.
        public SoapQName() {}
        public SoapQName(String value)
                        {
                                this.name = value;
                        }
        public SoapQName(String key, String name)
                        {
                                this.key = key;
                                this.name = name;
                        }
        public SoapQName(String key, String name, String namespaceValue)
                        {
                                this.key = key;
                                this.name = name;
                                this.namespaceValue = namespaceValue;
                        }

        // Get or set this object's value.
        public String Key
                        {
                                get
                                {
                                        return key;
                                }
                                set
                                {
                                        this.key = value;
                                }
                        }
        public String Name
                        {
                                get
                                {
                                        return name;
                                }
                                set
                                {
                                        this.name = value;
                                }
                        }
        public String Namespace
                        {
                                get
                                {
                                        return namespaceValue;
                                }
                                set
                                {
                                        this.namespaceValue = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "SoapQName";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapQName Parse(String value)
                        {
                                if(value == null)
                                {
                                        return new SoapQName();
                                }
                                else
                                {
                                        int index = value.IndexOf(':');
                                        if(index != -1)
                                        {
                                                return new SoapQName
                                                        (value.Substring(0, 
index),
                                                         value.Substring(index 
+ 1));
                                        }
                                        else
                                        {
                                                return new 
SoapQName(String.Empty, value);
                                        }
                                }
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                if(key == null || key == String.Empty)
                                {
                                        return name;
                                }
                                else
                                {
                                        return key + ":" + name;
                                }
                        }

}; // class SoapQName

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapTime.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapTime" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapTime : ISoapXsd
{
        // Internal state.
        private DateTime value;

        // Constructors.
        public SoapTime() {}
        public SoapTime(DateTime value)
                        {
                                this.value = value;
                        }

        // Get or set this object's value.
        public DateTime Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "time";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        [TODO]
        public static SoapTime Parse(String value)
                        {
                                // TODO
                                return null;
                        }

        // Convert this object into a string.
        [TODO]
        public override String ToString()
                        {
                                // TODO
                                return null;
                        }

}; // class SoapTime

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapToken.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapToken" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapToken : ISoapXsd
{
        // Internal state.
        private String value;

        // Constructors.
        public SoapToken() {}
        public SoapToken(String value)
                        {
                                this.Value = value;
                        }

        // Get or set this object's value.
        public String Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        if(value != null)
                                        {
                                                if(value.IndexOfAny(new char [] 
{'\r', '\t'}) != -1)
                                                {
                                                        throw new 
RemotingException
                                                                
(_("Arg_InvalidSoapValue"));
                                                }
                                                if(value.Length > 0 &&
                                                   (Char.IsWhiteSpace(value[0]) 
||
                                                    
Char.IsWhiteSpace(value[value.Length - 1])))
                                                {
                                                        throw new 
RemotingException
                                                                
(_("Arg_InvalidSoapValue"));
                                                }
                                        }
                                        this.value = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "token";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        public static SoapToken Parse(String value)
                        {
                                return new SoapToken(value);
                        }

        // Convert this object into a string.
        public override String ToString()
                        {
                                return SoapNormalizedString.Escape(value);
                        }

}; // class SoapToken

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapYear.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapYear" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapYear : ISoapXsd
{
        // Internal state.
        private DateTime value;
        private int sign;

        // Constructors.
        public SoapYear()
                        {
                                this.value = DateTime.MinValue;
                                this.sign = 0;
                        }
        public SoapYear(DateTime value)
                        {
                                this.value = value;
                                this.sign = 0;
                        }
        public SoapYear(DateTime value, int sign)
                        {
                                this.value = value;
                                this.sign = sign;
                        }

        // Get or set this object's value.
        public DateTime Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get or set this object's sign.
        public int Sign
                        {
                                get
                                {
                                        return sign;
                                }
                                set
                                {
                                        sign = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "gYear";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        [TODO]
        public static SoapYear Parse(String value)
                        {
                                // TODO
                                return null;
                        }

        // Convert this object into a string.
        [TODO]
        public override String ToString()
                        {
                                // TODO
                                return null;
                        }

}; // class SoapYear

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

--- NEW FILE ---
/*
 * SoapYearMonth.cs - Implementation of the
 *              "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapYearMonth" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Metadata.W3cXsd2001
{

#if CONFIG_REMOTING

[Serializable]
public sealed class SoapYearMonth : ISoapXsd
{
        // Internal state.
        private DateTime value;
        private int sign;

        // Constructors.
        public SoapYearMonth()
                        {
                                this.value = DateTime.MinValue;
                                this.sign = 0;
                        }
        public SoapYearMonth(DateTime value)
                        {
                                this.value = value;
                                this.sign = 0;
                        }
        public SoapYearMonth(DateTime value, int sign)
                        {
                                this.value = value;
                                this.sign = sign;
                        }

        // Get or set this object's value.
        public DateTime Value
                        {
                                get
                                {
                                        return value;
                                }
                                set
                                {
                                        this.value = value;
                                }
                        }

        // Get or set this object's sign.
        public int Sign
                        {
                                get
                                {
                                        return sign;
                                }
                                set
                                {
                                        sign = value;
                                }
                        }

        // Get the schema type for this class.
        public static String XsdType
                        {
                                get
                                {
                                        return "gYearMonth";
                                }
                        }

        // Implement the ISoapXsd interface.
        public String GetXsdType()
                        {
                                return XsdType;
                        }

        // Parse a value into an instance of this class.
        [TODO]
        public static SoapYearMonth Parse(String value)
                        {
                                // TODO
                                return null;
                        }

        // Convert this object into a string.
        [TODO]
        public override String ToString()
                        {
                                // TODO
                                return null;
                        }

}; // class SoapYearMonth

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001

Index: SoapDate.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001/SoapDate.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SoapDate.cs 17 Apr 2003 10:36:10 -0000      1.1
--- SoapDate.cs 19 Apr 2003 07:15:38 -0000      1.2
***************
*** 99,102 ****
--- 99,103 ----
  
        // Convert this object into a string.
+       [TODO]
        public override String ToString()
                        {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]