[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Xml/XPath XmlCaseOrder.cs,NON
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Xml/XPath XmlCaseOrder.cs,NONE,1.1 XmlDataType.cs,NONE,1.1 XmlSortOrder.cs,NONE,1.1 XPathDocument.cs,NONE,1.1 XPathException.cs,NONE,1.1 XPathExpression.cs,NONE,1.1 XPathNamespaceScope.cs,NONE,1.1 XPathNodeIterator.cs,NONE,1.1 XPathNodeType.cs,NONE,1.1 XPathResultType.cs,NONE,1.1 XPathNavigator.cs,1.1,1.2 |
Date: |
Mon, 26 May 2003 12:33:49 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Xml/XPath
In directory subversions:/tmp/cvs-serv19811/System.Xml/XPath
Modified Files:
XPathNavigator.cs
Added Files:
XmlCaseOrder.cs XmlDataType.cs XmlSortOrder.cs
XPathDocument.cs XPathException.cs XPathExpression.cs
XPathNamespaceScope.cs XPathNodeIterator.cs XPathNodeType.cs
XPathResultType.cs
Log Message:
Stub out most of the public classes and enums in System.Xml.XPath namespace
--- NEW FILE ---
/*
* XmlCaseOrder.cs - Implementation of "System.Xml.XPath.XmlCaseOrder" enum
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
namespace System.Xml.XPath
{
#if ECMA_COMPAT
internal
#else
public
#endif
enum XmlCaseOrder
{
None = 0x00,
UpperFirst = 0x01,
LowerFirst = 0x02
}
}//namespace
--- NEW FILE ---
/*
* XmlDataType.cs - Implementation of "System.Xml.XPath.XmlDataType" enum.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
namespace System.Xml.XPath
{
#if ECMA_COMPAT
internal
#else
public
#endif
enum XmlDataType
{
Text = 0x01,
Number = 0x02
}
}//namespace
--- NEW FILE ---
/*
* XmlSortOrder.cs - Implementation of "System.Xml.XPath.XmlSortOrder" enum
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
namespace System.Xml.XPath
{
#if !ECMA_COMPAT
internal
#else
public
#endif
enum XmlSortOrder
{
Ascending = 0x01,
Descending = 0x02
}
}//namespace
--- NEW FILE ---
/*
* XPathDocument.cs - Implementation of "System.Xml.XPath.XPathDocument" class
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
using System.IO;
using System.Xml;
namespace System.Xml.XPath
{
#if ECMA_COMPAT
internal
#else
public
#endif
class XPathDocument : Object, IXPathNavigable
{
[TODO]
public XPathDocument(XmlReader reader, XmlSpace space)
{
throw new NotImplementedException("ctor");
}
[TODO]
public XPathDocument(XmlReader reader)
{
throw new NotImplementedException("ctor");
}
[TODO]
public XPathDocument(TextReader reader)
{
throw new NotImplementedException("ctor");
}
[TODO]
public XPathDocument(Stream stream)
{
throw new NotImplementedException("ctor");
}
[TODO]
public XPathDocument(String uri)
{
throw new NotImplementedException("ctor");
}
[TODO]
public XPathDocument(String uri, XmlSpace space)
{
throw new NotImplementedException("ctor");
}
[TODO]
public virtual XPathNavigator CreateNavigator()
{
throw new NotImplementedException("CreateNavigator");
}
}
}//namespace
--- NEW FILE ---
/*
* XPathException.cs - Implementation of "System.Xml.XPath.XPathException"
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
namespace System.Xml.XPath
{
[Serializable]
#if ECMA_COMPAT
internal
#else
public
#endif
class XPathException : SystemException
{
public XPathException(String message, Exception innerException)
: base(message, innerException) {}
}
}//namespace
--- NEW FILE ---
/*
* XPathExpression.cs - Implementation of "System.Xml.XPath.XPathExpression"
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
using System.Xml;
using System.Collections;
namespace System.Xml.XPath
{
#if ECMA_COMPAT
internal
#else
public
#endif
abstract class XPathExpression
{
public abstract void AddSort(Object expr, IComparer comparer);
public abstract void AddSort(Object expr, XmlSortOrder order,
XmlCaseOrder
caseOrder,
String lang,
XmlDataType dataType);
public abstract XPathExpression Clone();
public abstract void SetContext(XmlNamespaceManager nsManager);
public abstract String Expression
{
get;
}
public abstract XPathResultType ReturnType
{
get;
}
}
}//namespace
--- NEW FILE ---
/*
* XPathNamespaceScope.cs - Implementation of
* "System.Xml.XPath.XPathNamespaceScope"
enum.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
namespace System.Xml.XPath
{
#if ECMA_COMPAT
internal
#else
public
#endif
enum XPathNamespaceScope
{
All = 0x00,
ExcludeXml = 0x01,
Local = 0x02,
}
}//namespace
--- NEW FILE ---
/*
* XPathNodeIterator.cs - Implementation of
*
"System.Xml.XPath.XPathNodeIterator" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
namespace System.Xml.XPath
{
#if ECMA_COMPAT
internal
#else
public
#endif
abstract class XPathNodeIterator : ICloneable
{
public abstract Object Clone();
public abstract bool MoveNext();
[TODO]
public virtual int Count
{
get
{
throw new NotImplementedException("Count");
}
}
public abstract XPathNavigator Current
{
get;
}
public abstract int CurrentPosition
{
get;
}
}
}//namespace
--- NEW FILE ---
/*
* XPathNodeType.cs - Implementation of "System.Xml.XPath.XPathNodeType" enum
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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
*/
using System;
namespace System.Xml.XPath
{
#if ECMA_COMPAT
internal
#else
public
#endif
enum XPathNodeType
{
Root = 0x00,
Element = 0x01,
Attribute = 0x02,
Namespace = 0x03,
Text =0x04,
SignificantWhitespace =0x05,
Whitespace =0x06,
ProcessingInstruction =0x07,
Comment =0x08,
All = 0x09
}
}//namespace
--- NEW FILE ---
/*
* XPathResultType.cs - Implementation of
* "System.Xml.XPath.XPathResultType" enum
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* Contributed by Gopal.V
*
* 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.Xml.XPath
{
#if ECMA_COMPAT
internal
#else
public
#endif
enum XPathResultType
{
Number = 0x00,
String = 0x01,
Boolean = 0x02,
NodeSet = 0x03,
Navigator = String,
Any = 0x05,
Error = 0x06
}
}//namespace
Index: XPathNavigator.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Xml/XPath/XPathNavigator.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XPathNavigator.cs 27 Jul 2002 09:42:59 -0000 1.1
--- XPathNavigator.cs 26 May 2003 16:33:47 -0000 1.2
***************
*** 19,23 ****
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
!
namespace System.Xml.XPath
{
--- 19,26 ----
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
!
! using System;
! using System.Xml;
!
namespace System.Xml.XPath
{
***************
*** 38,41 ****
--- 41,262 ----
// Implement the ICloneable interface.
public abstract Object Clone();
+
+ [TODO]
+ public virtual XmlNodeOrder ComparePosition(XPathNavigator nav)
+ {
+ throw new NotImplementedException("ComparePosition");
+ }
+
+ [TODO]
+ public virtual XPathExpression Compile(String xpath)
+ {
+ throw new NotImplementedException("Compile");
+ }
+
+ [TODO]
+ public virtual Object Evaluate(XPathExpression expr)
+ {
+ throw new NotImplementedException("Evaluate");
+ }
+
+ [TODO]
+ public virtual Object Evaluate(XPathExpression expr,
+
XPathNodeIterator context)
+ {
+ throw new NotImplementedException("Evaluate");
+ }
+
+ [TODO]
+ public virtual Object Evaluate(String xpath)
+ {
+ throw new NotImplementedException("Evaluate");
+ }
+
+ public abstract String GetAttribute(String localName, String
namespaceURI);
+
+ public abstract String GetNamespace(String name);
+
+ [TODO]
+ public virtual bool IsDescendant(XPathNavigator nav)
+ {
+ throw new NotImplementedException("IsDescendant");
+ }
+
+ public abstract bool IsSamePosition(XPathNavigator other);
+
+ [TODO]
+ public virtual bool Matches(XPathExpression expr)
+ {
+ throw new NotImplementedException("Matches");
+ }
+
+ [TODO]
+ public virtual bool Matches(String xpath)
+ {
+ throw new NotImplementedException("Matches");
+ }
+
+ public abstract bool MoveTo(XPathNavigator other);
+
+ public abstract bool MoveToAttribute(String localName, String
namespaceURI);
+
+ public abstract bool MoveToFirst();
+
+ public abstract bool MoveToFirstAttribute();
+
+ public abstract bool MoveToFirstChild();
+
+ [TODO]
+ public bool MoveToFirstNamespace()
+ {
+ throw new NotImplementedException("MoveToFirstNamespace");
+ }
+
+ public abstract bool MoveToFirstNamespace(
+
XPathNamespaceScope namespaceScope);
+
+ public abstract bool MoveToId(String id);
+
+ public abstract bool MoveToNamespace(String name);
+
+ public abstract bool MoveToNext();
+
+ public abstract bool MoveToNextAttribute();
+
+ [TODO]
+ public bool MoveToNextNamespace()
+ {
+ throw new NotImplementedException("MoveToNextNamespace");
+ }
+
+ public abstract bool MoveToNextNamespace(XPathNamespaceScope
namespaceScope);
+
+ public abstract bool MoveToParent();
+
+ public abstract bool MoveToPrevious();
+
+ public abstract void MoveToRoot();
+
+ [TODO]
+ public virtual XPathNodeIterator Select(XPathExpression expr)
+ {
+ throw new NotImplementedException("Select");
+ }
+
+ [TODO]
+ public virtual XPathNodeIterator Select(String xpath)
+ {
+ throw new NotImplementedException("Select");
+ }
+
+ [TODO]
+ public virtual XPathNodeIterator SelectAncestors(XPathNodeType type,
+
bool matchSelf)
+ {
+ throw new NotImplementedException("SelectAncestors");
+ }
+
+ [TODO]
+ public virtual XPathNodeIterator SelectAncestors(String name,
+
String namespaceURI,
+
bool matchSelf)
+ {
+ throw new NotImplementedException("SelectAncestors");
+ }
+
+ [TODO]
+ public virtual XPathNodeIterator SelectChildren(XPathNodeType type)
+ {
+ throw new NotImplementedException("SelectChildren");
+ }
+
+ [TODO]
+ public virtual XPathNodeIterator SelectChildren(String name,
+
String namespaceURI)
+ {
+ throw new NotImplementedException("SelectChildren");
+ }
+
+ [TODO]
+ public virtual XPathNodeIterator SelectDescendants(XPathNodeType type,
+
bool matchSelf)
+ {
+ throw new NotImplementedException("SelectDescendants");
+ }
+
+ [TODO]
+ public virtual XPathNodeIterator SelectDescendants(String name,
+
String namespaceURI,
+
bool matchSelf)
+ {
+ throw new NotImplementedException("SelectDescendants");
+ }
+
+ [TODO]
+ public override String ToString()
+ {
+ throw new NotImplementedException("ToString");
+ }
+
+ public abstract String BaseURI
+ {
+ get;
+ }
+
+ public abstract bool HasAttributes
+ {
+ get;
+ }
+
+ public abstract bool HasChildren
+ {
+ get;
+ }
+
+ public abstract bool IsEmptyElement
+ {
+ get;
+ }
+
+ public abstract String LocalName
+ {
+ get;
+ }
+
+ public abstract String Name
+ {
+ get;
+ }
+
+ public abstract XmlNameTable NameTable
+ {
+ get;
+ }
+
+ public abstract String NamespaceURI
+ {
+ get;
+ }
+
+ public abstract XPathNodeType NodeType
+ {
+ get;
+ }
+
+ public abstract String Prefix
+ {
+ get;
+ }
+
+ public abstract String Value
+ {
+ get;
+ }
+
+ public abstract String XmlLang
+ {
+ get;
+ }
+
}; // class XPathNavigator
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Xml/XPath XmlCaseOrder.cs,NONE,1.1 XmlDataType.cs,NONE,1.1 XmlSortOrder.cs,NONE,1.1 XPathDocument.cs,NONE,1.1 XPathException.cs,NONE,1.1 XPathExpression.cs,NONE,1.1 XPathNamespaceScope.cs,NONE,1.1 XPathNodeIterator.cs,NONE,1.1 XPathNodeType.cs,NONE,1.1 XPathResultType.cs,NONE,1.1 XPathNavigator.cs,1.1,1.2,
Gopal.V <address@hidden> <=