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 |
{ |
{ |
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 |
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 |
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 |