edu.umd.cloud9.collection.medline
Class MedlineCitation

java.lang.Object
  extended by edu.umd.cloud9.collection.Indexable
      extended by edu.umd.cloud9.collection.medline.MedlineCitation
All Implemented Interfaces:
Writable

public class MedlineCitation
extends Indexable

Object representing a MEDLINE citation.

Author:
Jimmy Lin

Field Summary
static String XML_END_TAG
          End delimiter of the document, which is </MedlineCitation>.
static String XML_START_TAG
          Start delimiter of the document, which is <MedlineCitation (without closing angle bracket).
 
Constructor Summary
MedlineCitation()
          Creates an empty MedlineCitation object.
 
Method Summary
 String getAbstract()
          Returns the abstract of this citation.
 String getContent()
          Returns the content of this citation, which is the title and abstract.
 String getDocid()
          Returns the docid of this MEDLINE citation, which is its PMID.
 String getPmid()
          Returns the PMID of this MEDLINE citation.
 String getRawXML()
          Returns the raw XML of this citation.
 String getTitle()
          Returns the title of this MEDLINE citation.
static void readCitation(MedlineCitation citation, String s)
          Reads a raw XML string into a MedlineCitation object.
 void readFields(DataInput in)
          Serializes this object.
 void write(DataOutput out)
          Deserializes this object.
 
Methods inherited from class edu.umd.cloud9.collection.Indexable
getDisplayContent, getDisplayContentType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_START_TAG

public static final String XML_START_TAG
Start delimiter of the document, which is <MedlineCitation (without closing angle bracket).

See Also:
Constant Field Values

XML_END_TAG

public static final String XML_END_TAG
End delimiter of the document, which is </MedlineCitation>.

See Also:
Constant Field Values
Constructor Detail

MedlineCitation

public MedlineCitation()
Creates an empty MedlineCitation object.

Method Detail

write

public void write(DataOutput out)
           throws IOException
Deserializes this object.

Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Serializes this object.

Throws:
IOException

getDocid

public String getDocid()
Returns the docid of this MEDLINE citation, which is its PMID.

Specified by:
getDocid in class Indexable

getContent

public String getContent()
Returns the content of this citation, which is the title and abstract.

Specified by:
getContent in class Indexable

getPmid

public String getPmid()
Returns the PMID of this MEDLINE citation.


getTitle

public String getTitle()
Returns the title of this MEDLINE citation.


getAbstract

public String getAbstract()
Returns the abstract of this citation.


getRawXML

public String getRawXML()
Returns the raw XML of this citation.


readCitation

public static void readCitation(MedlineCitation citation,
                                String s)
Reads a raw XML string into a MedlineCitation object.

Parameters:
citation - the MedlineCitation object
s - raw XML string