XNGR XML Browser

org.xngr
Class XUrl

java.lang.Object
  extended byorg.xngr.XUrl

public class XUrl
extends Object

The representaion of a URL in the Xngr system. This url allows to uniquely specify an element within the 'browser application'.

Version:
$Revision: 1.1.1.1 $, $Date: 2002/02/16 16:12:54 $
Author:
Edwin Dankert

Constructor Summary
XUrl(URL url, String xpath)
          Constructs a Exchanger Url with the document-url and element-xpath supplied.
 
Method Summary
 boolean equals(Object object)
          Checks wether this XUrl is equal to the object supplied.
 URL getURL()
          Returns the url to the document on disk.
 String getXPath()
          Returns the path to the element within a document.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XUrl

public XUrl(URL url,
            String xpath)
Constructs a Exchanger Url with the document-url and element-xpath supplied.

Parameters:
url - the URL for the document.
xpath - the XPath expression for the element.
Method Detail

getURL

public URL getURL()
Returns the url to the document on disk.

Returns:
the url to the document.

getXPath

public String getXPath()
Returns the path to the element within a document.

Returns:
the path to the element.

equals

public boolean equals(Object object)
Checks wether this XUrl is equal to the object supplied.

Parameters:
object - the object that needs to be compared.
Returns:
true when equal.

XNGR XML Browser

Copyright © 2002 - 2005, Edwin Dankert, All Rights Reserved