|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.model.WorkPart
edu.northwestern.at.wordhoard.model.Work
public class Work
A work.
Each work has the following attributes in addition to those defined
for work parts.
corpus to which the work belongs.
publication date(s), if known.
speakers.
authors.
| Constructor Summary | |
|---|---|
Work()
Creates a new work. |
|
| Method Summary | |
|---|---|
void |
addAuthor(Author author)
Adds an author. |
void |
addAuthors(Author[] authors)
Adds an array of authors. |
void |
addAuthors(java.util.Collection authors)
Adds a collection of authors. |
void |
addSpeaker(Speaker speaker)
Adds a speaker. |
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. |
java.util.Set |
getAuthors()
Gets the authors. |
Corpus |
getCorpus()
Gets the corpus. |
java.lang.String |
getFullTitleWithDate()
Gets the full title with date. |
GroupingObject |
getGroupingObject(int groupingOption)
Gets a grouping object. |
void |
getGroupingObjects(java.lang.Class groupBy,
java.util.List list)
Gets grouping objects. |
Spelling |
getGroupingSpelling(int numHits)
Gets the spelling of the grouping object. |
java.lang.Class |
getJoinClass()
Gets the join class. |
java.lang.Class |
getLemmaJoinClass()
|
java.lang.String |
getLemmaWhereClause()
|
java.util.List |
getParts()
Gets all the parts of the work. |
java.util.List |
getPartsWithText()
Gets all the parts of the work with text. |
PubYearRange |
getPubDate()
Gets the publication date(s). |
SearchCriterion |
getSearchDefault(java.lang.Class cls)
Gets a search criterion default value. |
java.lang.String |
getShortTitleWithDate()
Gets the short title with date. |
java.util.Set |
getSpeakers()
Gets the speakers. |
java.lang.String |
getWhereClause()
Gets the Hibernate where clause. |
int |
hashCode()
Returns a hash code for the object. |
void |
removeAuthor(Author author)
Removes an author. |
void |
setArg(org.hibernate.Query q,
org.hibernate.Session session)
Sets the Hibernate query argument. |
void |
setCorpus(Corpus corpus)
Sets the corpus. |
void |
setPubDate(PubYearRange pubDate)
Sets the publication date(s). |
java.lang.String |
toString()
Gets a string representation of the work. |
| Methods inherited from class edu.northwestern.at.wordhoard.model.WorkPart |
|---|
addChild, addTranslation, appendDescendants, appendDescendantsWithText, getAvailableTranslations, getChildByShortTitle, getChildren, getFirstDescendantWithText, getFullTitle, getHasChildren, getHasStanzaNumbers, getId, getNumChildren, getNumLines, getNumWords, getNumWorkPartsTree, getParent, getPath, getPathTag, getPrimaryText, getRelFreq, getReportPhrase, getShortTitle, getTag, getTaggingData, getTranslations, getWork, getWorkOrdinal, isActive, removeChild, setActive, setFullTitle, setHasStanzaNumbers, setId, setNumLines, setNumWords, setPathTag, setPrimaryText, setShortTitle, setTag, setTaggingData, setWork, setWorkOrdinal |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.northwestern.at.wordhoard.model.grouping.GroupingObject |
|---|
getReportPhrase |
| Methods inherited from interface edu.northwestern.at.wordhoard.model.CanGetRelFreq |
|---|
getRelFreq |
| Methods inherited from interface edu.northwestern.at.wordhoard.model.HasTag |
|---|
getTag |
| Constructor Detail |
|---|
public Work()
| Method Detail |
|---|
public Corpus getCorpus()
public void setCorpus(Corpus corpus)
corpus - The corpus. public PubYearRange getPubDate()
public void setPubDate(PubYearRange pubDate)
pubDate - The publication date(s), or null if not known. public java.util.Set getAuthors()
public void addAuthor(Author author)
author - Author. public void removeAuthor(Author author)
author - Author. public void addAuthors(java.util.Collection authors)
authors - Authors. public void addAuthors(Author[] authors)
authors - Authors. public java.util.Set getSpeakers()
public void addSpeaker(Speaker speaker)
speaker - Speaker. public java.util.List getPartsWithText()
public java.util.List getParts()
public SearchCriterion getSearchDefault(java.lang.Class cls)
getSearchDefault in interface SearchDefaultsgetSearchDefault in class WorkPartcls - Model class of search criterion.
public java.lang.Class getJoinClass()
getJoinClass in interface SearchCriteriongetJoinClass in class WorkPartpublic java.lang.Class getLemmaJoinClass()
public java.lang.String getWhereClause()
getWhereClause in interface SearchCriteriongetWhereClause in class WorkPartpublic java.lang.String getLemmaWhereClause()
public void setArg(org.hibernate.Query q,
org.hibernate.Session session)
setArg in interface SearchCriterionsetArg in class WorkPartq - Hibernate query.session - Hibernate session.
public void appendDescription(TextLine line,
FontInfo romanFontInfo,
FontInfo[] fontInfo)
appendDescription in interface SearchCriterionappendDescription in class WorkPartline - Text line.romanFontInfo - Roman font info.fontInfo - Array of font info indexed by character
set. public Spelling getGroupingSpelling(int numHits)
getGroupingSpelling in interface GroupingObjectgetGroupingSpelling in class WorkPartnumHits - Number of hits.
public java.lang.String getFullTitleWithDate()
public java.lang.String getShortTitleWithDate()
public void getGroupingObjects(java.lang.Class groupBy,
java.util.List list)
groupBy - Grouping class.list - A list. The grouping objects are appended
to this list. public GroupingObject getGroupingObject(int groupingOption)
Returns the work, lemma, part of speech, or spelling, given a grouping option.
groupingOption - Grouping option.
public boolean equals(java.lang.Object obj)
The two works are equal if their tags are equal.
equals in interface GroupingObjectequals in class WorkPartobj - The other object.
public int hashCode()
hashCode in interface GroupingObjecthashCode in class WorkPartpublic java.lang.String toString()
toString in class WorkPart
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||