[Top][All Lists]
[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 ISoapXsd.cs,NONE,1.1 Makefile,NONE,1.1 SoapAnyUri.cs,NONE,1.1 SoapBase64Binary.cs,NONE,1.1 SoapDate.cs,NONE,1.1 |
Date: |
Thu, 17 Apr 2003 06:36:12 -0400 |
Update of
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001
In directory
subversions:/tmp/cvs-serv31157/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001
Added Files:
ISoapXsd.cs Makefile SoapAnyUri.cs SoapBase64Binary.cs
SoapDate.cs
Log Message:
Stub out a large number of classes under the "System.Runtime.Remoting"
namespace; add the "CONFIG_REMOTING" define to selection compilation of
remoting.
--- NEW FILE ---
/*
* ISoapXsd.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd"
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 interface ISoapXsd
{
// Get this XSD type name for this object.
String GetXsdType();
}; // interface ISoapXsd
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001
--- NEW FILE ---
# The build is done in "runtime", so cd up and use that Makefile.
all:
(cd ../../../../..;make)
--- NEW FILE ---
/*
* SoapAnyUri.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapAnyUri" 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 SoapAnyUri : ISoapXsd
{
// Internal state.
private String value;
// Constructors.
public SoapAnyUri() {}
public SoapAnyUri(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 "anyUri";
}
}
// Implement the ISoapXsd interface.
public String GetXsdType()
{
return XsdType;
}
// Parse a value into an instance of this class.
public static SoapAnyUri Parse(String value)
{
return new SoapAnyUri(value);
}
// Convert this object into a string.
public override String ToString()
{
return value;
}
}; // class SoapAnyUri
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001
--- NEW FILE ---
/*
* SoapBase64Binary.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapBase64Binary"
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 SoapBase64Binary : ISoapXsd
{
// Internal state.
private byte[] value;
// Constructors.
public SoapBase64Binary() {}
public SoapBase64Binary(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 "base64Binary";
}
}
// Implement the ISoapXsd interface.
public String GetXsdType()
{
return XsdType;
}
// Parse a value into an instance of this class.
public static SoapBase64Binary Parse(String value)
{
if(value == null)
{
return new SoapBase64Binary();
}
else
{
return new SoapBase64Binary
(Convert.FromBase64String(value));
}
}
// Convert this object into a string.
public override String ToString()
{
if(value == null)
{
return null;
}
String result = Convert.ToBase64String(value);
StringBuilder builder = new
StringBuilder(result);
int posn = 79;
while(posn < builder.Length)
{
// Split the value into multiple lines.
builder.Insert(posn, '\n');
posn += 80;
}
return builder.ToString();
}
}; // class SoapBase64Binary
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001
--- NEW FILE ---
/*
* SoapDate.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDate" 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 SoapDate : ISoapXsd
{
// Internal state.
private DateTime value;
private int sign;
// Constructors.
public SoapDate()
{
this.value = DateTime.MinValue;
this.sign = 0;
}
public SoapDate(DateTime value)
{
this.value = value;
this.sign = 0;
}
public SoapDate(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 "date";
}
}
// Implement the ISoapXsd interface.
public String GetXsdType()
{
return XsdType;
}
// Parse a value into an instance of this class.
[TODO]
public static SoapDate Parse(String value)
{
// TODO
return null;
}
// Convert this object into a string.
public override String ToString()
{
// TODO
return null;
}
}; // class SoapDate
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata.W3cXsd2001
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001 ISoapXsd.cs,NONE,1.1 Makefile,NONE,1.1 SoapAnyUri.cs,NONE,1.1 SoapBase64Binary.cs,NONE,1.1 SoapDate.cs,NONE,1.1,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Proxies Makefile,NONE,1.1 ProxyAttribute.cs,NONE,1.1 RealProxy.cs,NONE,1.1
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Lifetime ClientSponsor.cs,NONE,1.1 ILease.cs,NONE,1.1 ISponsor.cs,NONE,1.1 LeaseState.cs,NONE,1.1 Makefile,NONE,1.1
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Proxies Makefile,NONE,1.1 ProxyAttribute.cs,NONE,1.1 RealProxy.cs,NONE,1.1
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Lifetime ClientSponsor.cs,NONE,1.1 ILease.cs,NONE,1.1 ISponsor.cs,NONE,1.1 LeaseState.cs,NONE,1.1 Makefile,NONE,1.1
- Index(es):