/[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.1 by npg, Sat Jul 19 10:54:38 2003 UTC revision 1.1.2.2 by npg, Sun Jul 20 11:43:01 2003 UTC
# Line 31  namespace DotGNU.XmlRpc Line 31  namespace DotGNU.XmlRpc
31    // Nodes for detecting current scope of block-statements    // Nodes for detecting current scope of block-statements
32    internal abstract class XmlRpcNode    internal abstract class XmlRpcNode
33    {    {
34      protected string value;      protected object value;
35      protected string tag;      protected string tag;
36      protected XmlTextReader reader;      protected XmlTextReader reader;
37      protected XmlRpcNode parent;      protected XmlRpcNode parent;
38            
39      public string Value      public object Value
40      {      {
41        get {        get {
42          return this.value;          return this.value;
# Line 49  namespace DotGNU.XmlRpc Line 49  namespace DotGNU.XmlRpc
49      public string Tag      public string Tag
50      {      {
51        get {        get {
52          return this.reader.Name;          return this.tag;
53        }        }
54      }      }
55    
# Line 64  namespace DotGNU.XmlRpc Line 64  namespace DotGNU.XmlRpc
64      {      {
65        this.reader = _reader;        this.reader = _reader;
66        this.parent = _parent;        this.parent = _parent;
67          this.tag    = _reader.Name;
68      }      }
69    }    }
70    
# Line 139  namespace DotGNU.XmlRpc Line 140  namespace DotGNU.XmlRpc
140      public IntegerNode( XmlTextReader _reader, XmlRpcNode _parent ) : base( _reader, _parent )      public IntegerNode( XmlTextReader _reader, XmlRpcNode _parent ) : base( _reader, _parent )
141      {      {
142        if( parent is ValueNode ) {        if( parent is ValueNode ) {
         //Console.Out.WriteLine( "parent:" + parent);  
143        }        }
144        else {        else {
145          throw new XmlRpcInvalidStateException( "int|i4 has wrong parent node: " + parent.Tag, reader );          throw new XmlRpcInvalidStateException( "int|i4 has wrong parent node: " + parent.Tag, reader );
# Line 161  namespace DotGNU.XmlRpc Line 161  namespace DotGNU.XmlRpc
161    
162      public bool GetBoolean()      public bool GetBoolean()
163      {      {
164        if (Value == "true") {        if( (Value == "true") || (Value == "1") ) {
165          return true;          return true;
166        }        }
167        return false;        return false;

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

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