edu.iastate.jtm.jmed
Class Limits

java.lang.Object
  extended by edu.iastate.jtm.jmed.Limits

public class Limits
extends java.lang.Object

Encapsulate PubMed interface's limits.

Author:
Jing Ding

Field Summary
static int ABSTRACT
           
static int ACC
           
static int AFFILIATION
           
static int ALLFIELD
           
static int ASN
           
static int AUTHOR
           
static int BRIEF
           
static int CHR
           
static int CITATION
           
static int COUNT
           
static java.lang.String DEF_MAXDATE
           
static java.lang.String DEF_MINDATE
           
static int DEFAULT
           
static int DOCSET
           
static int ECRN
           
static int ENTREZDATE
           
static int EST
           
static int FASTA
           
static int FILTER
           
static int FLT
           
static int FULL
           
static int GB
           
static int GBC
           
static int GBWITHPARTS
           
static int GP
           
static int GPC
           
static int GSS
           
static int HTML
           
static int ISSUE
           
static int JOURNAL
           
static int LAST10YEAR
           
static int LAST1MONTH
           
static int LAST1WEEK
           
static int LAST1YEAR
           
static int LAST2MONTH
           
static int LAST2WEEK
           
static int LAST2YEAR
           
static int LAST3MONTH
           
static int LAST3WEEK
           
static int LAST4WEEK
           
static int LAST5YEAR
           
static int LAST6MONTH
           
static int LNG
           
static int MAJOR
           
static int MDATE
           
static int MEDLINE
           
static int MESH
           
static int NATIVE
           
static int PAGE
           
static int PDATE
           
static int PTYPE
           
static int PUBDATE
           
static int RSR
           
static int SEQID
           
static int SID
           
static int SUBHEADING
           
static int SUBSTANCE
           
static int TEXT
           
static int TITLE
           
static int TITLEABS
           
static int TXT
           
static int uid
           
static int UILIST
           
static int VOLUME
           
static int XML
           
 
Constructor Summary
Limits()
           
Limits(Limits lim)
           
 
Method Summary
 void clear()
           
 java.lang.String getField()
           
 boolean historyUsed()
           
 void setComplexity(int c)
          Gi is often a part of a biological blob, containing other gis.
 void setDateType(int dt)
           
 void setField(int f)
           
 void setFromDate(java.lang.String fd)
           
 void setQueryKey(java.lang.String key)
           
 void setRelativeDate(int d)
           
 void setRetrieveCount(int count)
           
 void setRetrieveMode(int rm)
           
 void setRetrieveStartNum(int num)
           
 void setRetrieveType(int rt)
           
 void setSeqStart(int s)
          Show sequence starting from this base number.
 void setSeqStop(int s)
          Show sequence ending on this base number.
 void setStrand(int s)
          What strand of DNA to show (1=plus or 2=minus).
 void setToDate(java.lang.String td)
           
 void setUseHistory(boolean use)
           
 void setWebEnv(java.lang.String we)
           
 java.lang.String toString()
           
 void updateHistory(org.dom4j.Document result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

DEF_MINDATE

public static final java.lang.String DEF_MINDATE
See Also:
Constant Field Values

DEF_MAXDATE

public static final java.lang.String DEF_MAXDATE

ALLFIELD

public static final int ALLFIELD
See Also:
Constant Field Values

AFFILIATION

public static final int AFFILIATION
See Also:
Constant Field Values

AUTHOR

public static final int AUTHOR
See Also:
Constant Field Values

ECRN

public static final int ECRN
See Also:
Constant Field Values

JOURNAL

public static final int JOURNAL
See Also:
Constant Field Values

ISSUE

public static final int ISSUE
See Also:
Constant Field Values

MESH

public static final int MESH
See Also:
Constant Field Values

MAJOR

public static final int MAJOR
See Also:
Constant Field Values

MDATE

public static final int MDATE
See Also:
Constant Field Values

PAGE

public static final int PAGE
See Also:
Constant Field Values

PDATE

public static final int PDATE
See Also:
Constant Field Values

PTYPE

public static final int PTYPE
See Also:
Constant Field Values

SID

public static final int SID
See Also:
Constant Field Values

SUBSTANCE

public static final int SUBSTANCE
See Also:
Constant Field Values

SUBHEADING

public static final int SUBHEADING
See Also:
Constant Field Values

TITLEABS

public static final int TITLEABS
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

TITLE

public static final int TITLE
See Also:
Constant Field Values

LNG

public static final int LNG
See Also:
Constant Field Values

uid

public static final int uid
See Also:
Constant Field Values

FILTER

public static final int FILTER
See Also:
Constant Field Values

VOLUME

public static final int VOLUME
See Also:
Constant Field Values

LAST1WEEK

public static final int LAST1WEEK
See Also:
Constant Field Values

LAST2WEEK

public static final int LAST2WEEK
See Also:
Constant Field Values

LAST3WEEK

public static final int LAST3WEEK
See Also:
Constant Field Values

LAST4WEEK

public static final int LAST4WEEK
See Also:
Constant Field Values

LAST1MONTH

public static final int LAST1MONTH
See Also:
Constant Field Values

LAST2MONTH

public static final int LAST2MONTH
See Also:
Constant Field Values

LAST3MONTH

public static final int LAST3MONTH
See Also:
Constant Field Values

LAST6MONTH

public static final int LAST6MONTH
See Also:
Constant Field Values

LAST1YEAR

public static final int LAST1YEAR
See Also:
Constant Field Values

LAST2YEAR

public static final int LAST2YEAR
See Also:
Constant Field Values

LAST5YEAR

public static final int LAST5YEAR
See Also:
Constant Field Values

LAST10YEAR

public static final int LAST10YEAR
See Also:
Constant Field Values

PUBDATE

public static final int PUBDATE
See Also:
Constant Field Values

ENTREZDATE

public static final int ENTREZDATE
See Also:
Constant Field Values

XML

public static final int XML
See Also:
Constant Field Values

HTML

public static final int HTML
See Also:
Constant Field Values

TXT

public static final int TXT
See Also:
Constant Field Values

ASN

public static final int ASN
See Also:
Constant Field Values

COUNT

public static final int COUNT
See Also:
Constant Field Values

UILIST

public static final int UILIST
See Also:
Constant Field Values

ABSTRACT

public static final int ABSTRACT
See Also:
Constant Field Values

CITATION

public static final int CITATION
See Also:
Constant Field Values

MEDLINE

public static final int MEDLINE
See Also:
Constant Field Values

FULL

public static final int FULL
See Also:
Constant Field Values

NATIVE

public static final int NATIVE
See Also:
Constant Field Values

FASTA

public static final int FASTA
See Also:
Constant Field Values

GB

public static final int GB
See Also:
Constant Field Values

GBC

public static final int GBC
See Also:
Constant Field Values

GBWITHPARTS

public static final int GBWITHPARTS
See Also:
Constant Field Values

EST

public static final int EST
See Also:
Constant Field Values

GSS

public static final int GSS
See Also:
Constant Field Values

GP

public static final int GP
See Also:
Constant Field Values

GPC

public static final int GPC
See Also:
Constant Field Values

SEQID

public static final int SEQID
See Also:
Constant Field Values

ACC

public static final int ACC
See Also:
Constant Field Values

CHR

public static final int CHR
See Also:
Constant Field Values

FLT

public static final int FLT
See Also:
Constant Field Values

RSR

public static final int RSR
See Also:
Constant Field Values

BRIEF

public static final int BRIEF
See Also:
Constant Field Values

DOCSET

public static final int DOCSET
See Also:
Constant Field Values
Constructor Detail

Limits

public Limits()

Limits

public Limits(Limits lim)
Method Detail

setField

public void setField(int f)

getField

public java.lang.String getField()

setUseHistory

public void setUseHistory(boolean use)

historyUsed

public boolean historyUsed()

setWebEnv

public void setWebEnv(java.lang.String we)

setQueryKey

public void setQueryKey(java.lang.String key)

setRelativeDate

public void setRelativeDate(int d)

setFromDate

public void setFromDate(java.lang.String fd)

setToDate

public void setToDate(java.lang.String td)

setDateType

public void setDateType(int dt)

setRetrieveStartNum

public void setRetrieveStartNum(int num)

setRetrieveCount

public void setRetrieveCount(int count)

setStrand

public void setStrand(int s)
What strand of DNA to show (1=plus or 2=minus). Other value clears the property.

Parameters:
s -

setSeqStart

public void setSeqStart(int s)
Show sequence starting from this base number. Negative number clears the property.

Parameters:
s -

setSeqStop

public void setSeqStop(int s)
Show sequence ending on this base number. Negative number clears the property.

Parameters:
s -

setComplexity

public void setComplexity(int c)
Gi is often a part of a biological blob, containing other gis. Complexity regulates the display: 0 - get the whole blob 1 - get the bioseq for gi of interest (default in Entrez) 2 - get the minimal bioseq-set containing the gi of interest 3 - get the minimal nuc-prot containing the gi of interest 4 - get the minimal pub-set containing the gi of interest Other values clear the property.

Parameters:
c -

setRetrieveMode

public void setRetrieveMode(int rm)

setRetrieveType

public void setRetrieveType(int rt)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clear

public void clear()

updateHistory

public void updateHistory(org.dom4j.Document result)