[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 Makefile,NONE,1.1 SoapAttribute.cs,NONE,1.1 SoapFieldAttribute.cs,NONE,1.1 SoapMethodAttribute.cs,NONE,1.1 SoapOption.cs,NONE,1.1 SoapParameterAttribute.cs,NONE,1.1 SoapTypeAttribute.cs,NONE,1.1 XmlFieldOrderOption.cs,NONE,1.1 |
Date: |
Thu, 17 Apr 2003 06:36:12 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/Remoting/Metadata
In directory
subversions:/tmp/cvs-serv31157/runtime/System/Runtime/Remoting/Metadata
Added Files:
Makefile SoapAttribute.cs SoapFieldAttribute.cs
SoapMethodAttribute.cs SoapOption.cs SoapParameterAttribute.cs
SoapTypeAttribute.cs XmlFieldOrderOption.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 ---
# The build is done in "runtime", so cd up and use that Makefile.
all:
(cd ../../../..;make)
--- NEW FILE ---
/*
* SoapAttribute.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.SoapAttribute" 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
{
#if CONFIG_REMOTING
public class SoapAttribute : Attribute
{
// Internal state.
private bool embedded;
private bool useAttribute;
internal bool flag; // Used by SoapFieldAttribute.
protected String ProtXmlNamespace;
protected Object ReflectInfo;
// Constructor.
public SoapAttribute() {}
// Get or set the attribute's properties.
public virtual bool Embedded
{
get
{
return embedded;
}
set
{
embedded = value;
}
}
public virtual bool UseAttribute
{
get
{
return useAttribute;
}
set
{
useAttribute = value;
}
}
public virtual String XmlNamespace
{
get
{
return ProtXmlNamespace;
}
set
{
ProtXmlNamespace = value;
}
}
}; // class SoapAttribute
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata
--- NEW FILE ---
/*
* SoapFieldAttribute.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.SoapFieldAttribute"
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
{
#if CONFIG_REMOTING
[AttributeUsage(AttributeTargets.Field)]
public sealed class SoapFieldAttribute : SoapAttribute
{
// Internal state.
private int order;
private String xmlElementName;
// Constructor.
public SoapFieldAttribute() {}
// Get or set the attribute's properties.
public int Order
{
get
{
return order;
}
set
{
order = value;
}
}
public String XmlElementName
{
get
{
return xmlElementName;
}
set
{
xmlElementName = value;
flag = true;
}
}
// Determine if this attribute contains interop information.
public bool IsInteropXmlElement()
{
return flag;
}
}; // class SoapFieldAttribute
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata
--- NEW FILE ---
/*
* SoapMethodAttribute.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.SoapMethodAttribute"
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
{
#if CONFIG_REMOTING
[AttributeUsage(AttributeTargets.Method)]
public sealed class SoapMethodAttribute : SoapAttribute
{
// Internal state.
private String responseXmlElementName;
private String responseXmlNamespace;
private String returnXmlElementName;
private String soapAction;
// Constructor.
public SoapMethodAttribute() {}
// Get or set the attribute's properties.
[TODO]
public String ResponseXmlElementName
{
get
{
// TODO: default element name handling.
return responseXmlElementName;
}
set
{
responseXmlElementName = value;
}
}
public String ResponseXmlNamespace
{
get
{
if(responseXmlNamespace != null)
{
return responseXmlNamespace;
}
else
{
return XmlNamespace;
}
}
set
{
responseXmlNamespace = value;
}
}
public String ReturnXmlElementName
{
get
{
if(returnXmlElementName == null)
{
return "__return";
}
return returnXmlElementName;
}
set
{
returnXmlElementName = value;
}
}
[TODO]
public String SoapAction
{
get
{
// TODO: default action handling
return soapAction;
}
set
{
soapAction = value;
}
}
public override bool UseAttribute
{
get
{
return false;
}
set
{
throw new RemotingException
(_("NotSupp_SetRemotingValue"));
}
}
public override String XmlNamespace
{
get
{
// TODO: default namespace handling
return ProtXmlNamespace;
}
set
{
ProtXmlNamespace = value;
}
}
}; // class SoapMethodAttribute
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata
--- NEW FILE ---
/*
* SoapOption.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.SoapOption" 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
{
#if CONFIG_REMOTING
[Serializable]
[Flags]
public enum SoapOption
{
None = 0x0000,
AlwaysIncludeTypes = 0x0001,
XsdString = 0x0002,
EmbedAll = 0x0004,
Option1 = 0x0008,
Option2 = 0x0010
}; // enum SoapOption
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata
--- NEW FILE ---
/*
* SoapParameterAttribute.cs - Implementation of the
*
"System.Runtime.Remoting.Metadata.SoapParameterAttribute" 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
{
#if CONFIG_REMOTING
[AttributeUsage(AttributeTargets.Parameter)]
public sealed class SoapParameterAttribute : SoapAttribute
{
// Constructor.
public SoapParameterAttribute() {}
}; // class SoapParameterAttribute
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata
--- NEW FILE ---
/*
* SoapTypeAttribute.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.SoapTypeAttribute"
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
{
#if CONFIG_REMOTING
[AttributeUsage(AttributeTargets.Class |
AttributeTargets.Struct |
AttributeTargets.Enum |
AttributeTargets.Interface)]
public sealed class SoapTypeAttribute : SoapAttribute
{
// Internal state.
private SoapOption soapOptions;
private String xmlElementName;
private String xmlTypeName;
private String xmlTypeNamespace;
// Constructor.
public SoapTypeAttribute() {}
// Get or set the attribute's properties.
public SoapOption SoapOptions
{
get
{
return soapOptions;
}
set
{
soapOptions = value;
}
}
public override bool UseAttribute
{
get
{
return false;
}
set
{
throw new RemotingException
(_("NotSupp_SetRemotingValue"));
}
}
public String XmlElementName
{
get
{
// TODO: default element name handling
return xmlElementName;
}
set
{
xmlElementName = value;
}
}
public override String XmlNamespace
{
get
{
// TODO: default namespace handling
return ProtXmlNamespace;
}
set
{
ProtXmlNamespace = value;
}
}
public String XmlTypeName
{
get
{
// TODO: default type name handling
return xmlTypeName;
}
set
{
xmlTypeName = value;
}
}
public String XmlTypeNamespace
{
get
{
// TODO: default type namespace handling
return xmlTypeNamespace;
}
set
{
xmlTypeNamespace = value;
}
}
}; // class SoapTypeAttribute
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata
--- NEW FILE ---
/*
* XmlFieldOrderOption.cs - Implementation of the
* "System.Runtime.Remoting.Metadata.XmlFieldOrderOption"
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
{
#if CONFIG_REMOTING
[Serializable]
public enum XmlFieldOrderOption
{
All = 0,
Sequence = 1,
Choice = 2
}; // enum XmlFieldOrderOption
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Metadata
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Metadata Makefile,NONE,1.1 SoapAttribute.cs,NONE,1.1 SoapFieldAttribute.cs,NONE,1.1 SoapMethodAttribute.cs,NONE,1.1 SoapOption.cs,NONE,1.1 SoapParameterAttribute.cs,NONE,1.1 SoapTypeAttribute.cs,NONE,1.1 XmlFieldOrderOption.cs,NONE,1.1,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Messaging CallContext.cs,NONE,1.1 Header.cs,NONE,1.1 HeaderHandler.cs,NONE,1.1 ILogicalThreadAffinative.cs,NONE,1.1 IMessage.cs,NONE,1.1 IMessageCtrl.cs,NONE,1.1 IMessageSink.cs,NONE,1.1 IMethodCallMessage.cs,NONE,1.1 IMethodMessage.cs,NONE,1.1 IMethodReturnMessage.cs,NONE,1.1 IRemotingFormatter.cs,NONE,1.1 LogicalCallContext.cs,NONE,1.1 MessageSurrogateFilter.cs,NONE,1.1 OneWayAttribute.cs,NONE,1.1 RemotingSurrogateSelector.cs,NONE,1.1 ReturnMessage.cs,NONE,1.1
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.857,1.858
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Messaging CallContext.cs,NONE,1.1 Header.cs,NONE,1.1 HeaderHandler.cs,NONE,1.1 ILogicalThreadAffinative.cs,NONE,1.1 IMessage.cs,NONE,1.1 IMessageCtrl.cs,NONE,1.1 IMessageSink.cs,NONE,1.1 IMethodCallMessage.cs,NONE,1.1 IMethodMessage.cs,NONE,1.1 IMethodReturnMessage.cs,NONE,1.1 IRemotingFormatter.cs,NONE,1.1 LogicalCallContext.cs,NONE,1.1 MessageSurrogateFilter.cs,NONE,1.1 OneWayAttribute.cs,NONE,1.1 RemotingSurrogateSelector.cs,NONE,1.1 ReturnMessage.cs,NONE,1.1
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.857,1.858
- Index(es):