<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Mon Jun 09 23:45:36 GMT+03:30 1997 -->
<title>
  Class w3c.xmlOnline.xptr.Xptr
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-w3c.xmlOnline.xptr.html">This Package</a>  <a href="Package-w3c.xmlOnline.xptr.html">Previous</a>  <a href="Package-w3c.xmlOnline.xptr.html">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class w3c.xmlOnline.xptr.Xptr
</h1>
<pre>
java.lang.Object
   |
   +----w3c.xmlOnline.xptr.Xptr
</pre>
<hr>
<dl>
  <dt> public class <b>Xptr</b>
  <dt> extends Object
</dl>
A class that implements TEI XPTR's. Create an instance of this
 class with Xptr("ROOT,CHILD(1)(ALL,*,DIR,*)") or any Xpointer
 string, than apply it to a node in an XML tree, with
 apply(node). The return value is an array of nodes that satisfy the
 query.
 <p>The current algorithms are not very efficient. Some work remains
 to be done here.
<p>
<dl>
  <dt> <b>Version:</b>
  <dd> $Id: w3c.xmlOnline.xptr.Xptr.html,v 1.6 1997/06/09 22:26:38 bbos Exp $
  <dt> <b>Author:</b>
  <dd> Bert Bos
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Xptr(java.lang.String)"><b>Xptr</b></a>(String)
  <dd>  Create an Xptr instance from the given string.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#apply(w3c.xmlOnline.tree.Node)"><b>apply</b></a>(Node)
  <dd>  Apply an Xptr to a node in an XML tree, returning the array of
 Nodes that is addressed by this Xptr.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Return the string representation of the Xptr.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Xptr"></a>
<a name="Xptr(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Xptr</b>
<pre>
 public Xptr(String xptr) throws <a href="w3c.xmlOnline.xptr.IllegalXptrException.html#_top_">IllegalXptrException</a>
</pre>
<dl>
  <dd> Create an Xptr instance from the given string.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> new Xptr
    <dt> <b>Throws:</b> <a href="w3c.xmlOnline.xptr.IllegalXptrException.html#_top_">IllegalXptrException</a>
    <dd> when the xptr is syntactically incorrect
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="apply(w3c.xmlOnline.tree.Node)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="apply"><b>apply</b></a>
<pre>
 public <a href="w3c.xmlOnline.tree.Node.html#_top_">Node</a>[] apply(<a href="w3c.xmlOnline.tree.Node.html#_top_">Node</a> here)
</pre>
<dl>
  <dd> Apply an Xptr to a node in an XML tree, returning the array of
 Nodes that is addressed by this Xptr.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> here - a starting node in the tree
    <dt> <b>Returns:</b>
    <dd> the array of matched nodes
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public String toString()
</pre>
<dl>
  <dd> Return the string representation of the Xptr.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the string representation of the Xptr
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class Object
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-w3c.xmlOnline.xptr.html">This Package</a>  <a href="Package-w3c.xmlOnline.xptr.html">Previous</a>  <a href="Package-w3c.xmlOnline.xptr.html">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
