/[dgee]/dgee/cslib/DotGNU/XmlRpc/XmlRpcNodes.cs
ViewVC logotype

Diff of /dgee/cslib/DotGNU/XmlRpc/XmlRpcNodes.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.2.2.3 by npg, Fri Jul 25 10:13:47 2003 UTC revision 1.1.2.2.2.4 by npg, Fri Jul 25 20:56:53 2003 UTC
# Line 84  namespace DotGNU.XmlRpc Line 84  namespace DotGNU.XmlRpc
84        
85    internal class MethodNameNode : XmlRpcNode    internal class MethodNameNode : XmlRpcNode
86    {    {
     internal string val;  
   
87      public MethodNameNode( XmlTextReader _reader, XmlRpcNode _parent )      public MethodNameNode( XmlTextReader _reader, XmlRpcNode _parent )
88        : base( _reader, _parent )        : base( _reader, _parent )
89      {      {
# Line 96  namespace DotGNU.XmlRpc Line 94  namespace DotGNU.XmlRpc
94            ( "methodName has wrong parent node: " + parent.Tag );            ( "methodName has wrong parent node: " + parent.Tag );
95        }        }
96      }          }    
   
     public string Value  
     {  
       get {  
         return this.val;  
       }  
       set {  
         this.val = value;  
       }  
     }  
97    }    }
98        
99    internal class ParameterListNode : XmlRpcNode    internal class ParameterListNode : XmlRpcNode
# Line 246  namespace DotGNU.XmlRpc Line 234  namespace DotGNU.XmlRpc
234    
235    internal class StructNode : XmlRpcNode    internal class StructNode : XmlRpcNode
236    {    {
237      private XmlRpcStruct structure;      internal XmlRpcStruct val = new XmlRpcStruct();
238    
239      public StructNode( XmlTextReader _reader, XmlRpcNode _parent )      public StructNode( XmlTextReader _reader, XmlRpcNode _parent )
240        : base( _reader, _parent )        : base( _reader, _parent )
241      {      {
242        if( parent is ValueNode ) {        if( parent is ValueNode ) {
         structure = new XmlRpcStruct();  
243        }        }
244        else {        else {
245          throw new XmlRpcInvalidStateException          throw new XmlRpcInvalidStateException
246            ( "struct has wrong parent node: " + parent.Tag );            ( "struct has wrong parent node: " + parent.Tag );
247        }        }
248      }      }
   
     public void Add( MemberNode node )  
     {  
       structure.Add( node.key, node.val );  
     }  
       
249    }    }
250    
251    internal class MemberNode : XmlRpcNode    internal class MemberNode : XmlRpcNode
# Line 304  namespace DotGNU.XmlRpc Line 285  namespace DotGNU.XmlRpc
285          return this.val;          return this.val;
286        }        }
287      }      }
288    
289        public void Commit()
290        {
291          ((StructNode)parent).val.Add( key, val );
292        }
293    }    }
294    
295    internal class NameNode : XmlRpcNode    internal class NameNode : XmlRpcNode

Legend:
Removed from v.1.1.2.2.2.3  
changed lines
  Added in v.1.1.2.2.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26