|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbabase.db.RankingIdentifier
public class RankingIdentifier
RankingIdentifier uniquely identifies a "ranking" in Babase.
This identifier can be used to retrieve or store a ranking in Babase. As an
indentifer, instances of this class do not carry actual ranking contents
(i.e., which individual is ranked at what position).
| Field Summary | |
|---|---|
java.util.Date |
endDate
The ranking end date (inclusive). |
Group |
group
The group that this ranking is for. |
RankType |
rankType
The type of the ranking. |
java.util.Date |
startDate
The ranking start date (inclusive). |
| Constructor Summary | |
|---|---|
RankingIdentifier(Group group,
RankType rankType,
java.util.Date startDate)
A convenience constructor. |
|
RankingIdentifier(Group group,
RankType rankType,
java.util.Date startDate,
java.util.Date endDate)
Constructor. |
|
| Method Summary | |
|---|---|
static RankingIdentifier |
fromXML(org.w3c.dom.Element e)
|
java.lang.String |
toString()
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Document d)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Group group
public final RankType rankType
public final java.util.Date startDate
public final java.util.Date endDate
| Constructor Detail |
|---|
public RankingIdentifier(Group group,
RankType rankType,
java.util.Date startDate,
java.util.Date endDate)
group - rankType - startDate - Since Date is mutable, this constructor will a
copy of the input object.endDate - Since Date is mutable, this constructor will a
copy of the input object.
public RankingIdentifier(Group group,
RankType rankType,
java.util.Date startDate)
endDate will be automatically
set to the last day of the month of startDate.
group - rankType - startDate - Since Date is mutable, this constructor will a
copy of the input object.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic org.w3c.dom.Element toXML(org.w3c.dom.Document d)
public static RankingIdentifier fromXML(org.w3c.dom.Element e)
throws Babase.LoadFromXMLException
Babase.LoadFromXMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||