de.unidu.is.retrieval
Class XMLDoc

java.lang.Object
  extended byde.unidu.is.retrieval.XMLDoc

public class XMLDoc
extends java.lang.Object

A (document ID,xml document) pair.

Since:
2004-03-15
Version:
$Revision: 1.7 $, $Date: 2005/03/14 17:33:13 $
Author:
Henrik Nottelmann

Field Summary
protected  ProbDoc doc
          The ID and weight of the document.
protected  org.w3c.dom.Document xml
          The XML document.
 
Constructor Summary
XMLDoc()
          Creates a new, empty instance.
XMLDoc(ProbDoc doc, org.w3c.dom.Document xml)
          Creates a new instance.
XMLDoc(java.lang.String docID, org.w3c.dom.Document xml)
          Creates a new instance.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 ProbDoc getProbDoc()
          Returns the ID of the document.
 org.w3c.dom.Document getXML()
          Returns the XML document.
 int hashCode()
           
 void setProbDoc(ProbDoc doc)
          Sets the ID and weight of the document.
 void setXML(org.w3c.dom.Document xml)
          Sets the XML document.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

doc

protected ProbDoc doc
The ID and weight of the document.


xml

protected org.w3c.dom.Document xml
The XML document.

Constructor Detail

XMLDoc

public XMLDoc()
Creates a new, empty instance.


XMLDoc

public XMLDoc(java.lang.String docID,
              org.w3c.dom.Document xml)
Creates a new instance.

Parameters:
docID - ID of the document
xml - XML content

XMLDoc

public XMLDoc(ProbDoc doc,
              org.w3c.dom.Document xml)
Creates a new instance.

Parameters:
doc - document
xml - XML content
Method Detail

getProbDoc

public ProbDoc getProbDoc()
Returns the ID of the document.

Returns:
ID and weight of the document

setProbDoc

public void setProbDoc(ProbDoc doc)
Sets the ID and weight of the document.

Parameters:
doc - ID and weight of the document.

getXML

public org.w3c.dom.Document getXML()
Returns the XML document.

Returns:
XML document

setXML

public void setXML(org.w3c.dom.Document xml)
Sets the XML document.

Parameters:
xml - XML document

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

toString

public java.lang.String toString()