|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.model.wrappers.Gender
public class Gender
A gender wrapper.
| Field Summary | |
|---|---|
static byte |
FEMALE
Female gender. |
static byte |
MALE
Male gender. |
static byte |
NUM_GENDERS
Number of genders. |
static byte |
UNCERTAIN_MIXED_OR_UNKNOWN
Uncertain, mixed, or unknown gender. |
| Constructor Summary | |
|---|---|
Gender()
Creates a new gender wrapper. |
|
Gender(byte gender)
Creates a new gender wrapper. |
|
| Method Summary | |
|---|---|
void |
appendDescription(TextLine line,
FontInfo romanFontInfo,
FontInfo[] fontInfo)
Appends a description to a text line. |
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
byte |
getGender()
Gets the gender. |
Spelling |
getGroupingSpelling(int numHits)
Gets the spelling of the grouping object. |
java.lang.Class |
getJoinClass()
Gets the join class. |
java.lang.String |
getReportPhrase()
Gets the report phrase. |
java.lang.String |
getWhereClause()
Gets the Hibernate where clause. |
int |
hashCode()
Returns a hash code for the object. |
void |
setArg(org.hibernate.Query q,
org.hibernate.Session session)
Sets the Hibernate query argument. |
java.lang.String |
toString()
Returns a string representation of the gender. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte MALE
public static final byte FEMALE
public static final byte UNCERTAIN_MIXED_OR_UNKNOWN
public static final byte NUM_GENDERS
| Constructor Detail |
|---|
public Gender()
public Gender(byte gender)
gender - The gender. | Method Detail |
|---|
public byte getGender()
public java.lang.Class getJoinClass()
getJoinClass in interface SearchCriterionpublic java.lang.String getWhereClause()
getWhereClause in interface SearchCriterion
public void setArg(org.hibernate.Query q,
org.hibernate.Session session)
setArg in interface SearchCriterionq - Hibernate query.session - Hibernate session.
public void appendDescription(TextLine line,
FontInfo romanFontInfo,
FontInfo[] fontInfo)
appendDescription in interface SearchCriterionline - Text line.romanFontInfo - Roman font info.fontInfo - Array of font info indexed by character
set. public java.lang.String getReportPhrase()
getReportPhrase in interface GroupingObjectpublic Spelling getGroupingSpelling(int numHits)
getGroupingSpelling in interface GroupingObjectnumHits - Number of hits.
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface GroupingObjectequals in class java.lang.Objectobj - The other object.
public int hashCode()
hashCode in interface GroupingObjecthashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||