|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.userdata.WorkSet
public class WorkSet
A work set.
A work set contains a list of works and/or work parts. Work sets are useful for creating collections of subparts of works. For example, a work set might contain all the prologues to Shakespeare plays. Another might contain just a single Canterbury Tale.
work part reference tags
.
Field Summary | |
---|---|
protected java.util.Date |
creationTime
Original creation date/time. |
protected java.lang.String |
description
Description of work set. |
protected java.lang.Long |
id
Unique persistence id (primary key). |
protected boolean |
isActive
True if work set is active (available for use). |
protected boolean |
isPublic
True if public work set (can be seen by other users), false if private work set. |
protected java.util.Date |
modificationTime
Last modification date/time. |
protected java.lang.String |
owner
Owner of this work set. |
protected java.lang.String |
query
The query properties to generate this word set's work part list. |
protected static long |
serialVersionUID
Serial version UID. |
protected java.lang.String |
title
The title of the work set. |
protected java.lang.String |
webPageURL
Web page URL. |
protected java.util.Collection |
workPartTags
Collection of reference tags of work parts belonging to this work set. |
Constructor Summary | |
---|---|
WorkSet()
Create an empty work set. |
|
WorkSet(org.w3c.dom.Node workSetNode,
java.lang.String owner)
Create a work set from a DOM document node. |
|
WorkSet(java.lang.String title,
java.lang.String description,
java.lang.String webPageURL,
java.lang.String owner,
boolean isPublic,
java.lang.String query,
java.util.Collection workParts)
Create work set. |
|
WorkSet(java.lang.String title,
java.lang.String description,
java.lang.String webPageURL,
java.lang.String owner,
boolean isPublic,
java.lang.String query,
java.lang.String[] workPartTags)
Create work set. |
|
WorkSet(java.lang.String title,
java.lang.String description,
java.lang.String webPageURL,
java.lang.String owner,
boolean isPublic,
java.lang.String query,
WorkPart[] workParts)
Create work set. |
Method Summary | |
---|---|
boolean |
addToDOMDocument(org.w3c.dom.Document document)
Add work set to DOM document. |
void |
addWorkPart(WorkPart workPart)
Adds a work part. |
void |
addWorkParts(java.util.Collection workPartCollection)
Adds work parts from a collection. |
void |
addWorkParts(WorkPart[] workPartArray)
Adds work parts from an array. |
void |
addWorkPartTags(java.lang.String[] workPartTagArray)
Adds work parts from an array of tags. |
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.Date |
getCreationTime()
Gets the creation date. |
java.lang.String |
getDescription()
Gets the description. |
Spelling |
getGroupingSpelling(int numHits)
Gets the spelling of the grouping object. |
java.lang.Long |
getId()
Gets the unique id. |
boolean |
getIsActive()
Get the active flag. |
boolean |
getIsPublic()
Get the public flag. |
java.lang.Class |
getJoinClass()
Gets the join class. |
java.util.Date |
getModificationTime()
Gets the modification date. |
java.lang.String |
getOwner()
Get the owner. |
java.lang.String |
getQuery()
Get the query. |
java.lang.String |
getReportPhrase()
Gets the report phrase. |
SearchCriterion |
getSearchDefault(java.lang.Class cls)
Gets a search criterion default value. |
java.lang.String |
getTitle()
Gets the title. |
java.lang.String |
getWebPageURL()
Gets the web page URL. |
java.lang.String |
getWhereClause()
Gets the Hibernate where clause. |
java.util.Collection |
getWorkPartTags()
Gets the work part tags. |
int |
hashCode()
Returns a hash code for the object. |
void |
readExternal(java.io.ObjectInput in)
Reads the work set from an object input stream (deserializes the object). |
void |
removeWorkPart(WorkPart workPart)
Removes a work part. |
void |
removeWorkParts()
Removes all the work parts. |
void |
setArg(org.hibernate.Query q,
org.hibernate.Session session)
Sets the Hibernate query argument. |
void |
setCreationTime(java.util.Date creationTime)
Sets the creation date. |
void |
setDescription(java.lang.String description)
Sets the description. |
boolean |
setFromDOMDocumentNode(org.w3c.dom.Node workSetNode)
Set values from DOM document node. |
void |
setIsActive(boolean isActive)
Set the active flag. |
void |
setIsPublic(boolean isPublic)
Set the public flag. |
void |
setModificationTime(java.util.Date modificationTime)
Sets the modification date. |
void |
setOwner(java.lang.String owner)
Set the owner. |
void |
setTitle(java.lang.String title)
Sets the title. |
void |
setWebPageURL(java.lang.String webPageURL)
Sets the web page URL. |
java.lang.String |
toString()
Gets a string representation of the work set. |
java.lang.String |
toStringDetailed()
Gets a detailed string representation of the work set. |
void |
writeExternal(java.io.ObjectOutput out)
Writes the work set to an object output stream (serializes the object). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final long serialVersionUID
protected java.lang.Long id
protected java.lang.String title
protected java.lang.String description
protected java.lang.String webPageURL
protected java.util.Date creationTime
protected java.util.Date modificationTime
protected java.lang.String owner
protected boolean isPublic
protected boolean isActive
protected java.lang.String query
protected java.util.Collection workPartTags
Constructor Detail |
---|
public WorkSet()
public WorkSet(java.lang.String title, java.lang.String description, java.lang.String webPageURL, java.lang.String owner, boolean isPublic, java.lang.String query, java.util.Collection workParts)
title
- The work set's title.description
- The work set's description.webPageURL
- The work set's web page.owner
- The work set's owner.isPublic
- True if the work set is public.query
- CQL Query which generated the work set.workParts
- The work parts in the work set as a list. public WorkSet(java.lang.String title, java.lang.String description, java.lang.String webPageURL, java.lang.String owner, boolean isPublic, java.lang.String query, WorkPart[] workParts)
title
- The work set's title.description
- The work set's description.webPageURL
- The work set's web page.owner
- The work set's owner.isPublic
- True if the work set is public.query
- CQL Query which generated the work set.workParts
- The work parts in the work set as an array. public WorkSet(java.lang.String title, java.lang.String description, java.lang.String webPageURL, java.lang.String owner, boolean isPublic, java.lang.String query, java.lang.String[] workPartTags)
title
- The work set's title.description
- The work set's description.webPageURL
- The work set's web page.owner
- The work set's owner.isPublic
- True if the work set is public.query
- CQL Query which generated the work set.
May be null.workPartTags
- The work part tags as a string array. public WorkSet(org.w3c.dom.Node workSetNode, java.lang.String owner)
workSetNode
- The root node for the work set.owner
- The work set's owner. Method Detail |
---|
public java.lang.Long getId()
getId
in interface PersistentObject
getId
in interface UserDataObject
public java.lang.String getTitle()
getTitle
in interface UserDataObject
public java.lang.String getDescription()
getDescription
in interface UserDataObject
public java.lang.String getWebPageURL()
getWebPageURL
in interface UserDataObject
public java.util.Date getCreationTime()
getCreationTime
in interface UserDataObject
public java.util.Date getModificationTime()
getModificationTime
in interface UserDataObject
public java.lang.String getOwner()
getOwner
in interface UserDataObject
public boolean getIsPublic()
getIsPublic
in interface UserDataObject
public boolean getIsActive()
getIsActive
in interface UserDataObject
public java.lang.String getQuery()
getQuery
in interface UserDataObject
public java.util.Collection getWorkPartTags()
public void setTitle(java.lang.String title)
setTitle
in interface UserDataObject
title
- The title. public void setDescription(java.lang.String description)
setDescription
in interface UserDataObject
description
- The description. public void setWebPageURL(java.lang.String webPageURL)
setWebPageURL
in interface UserDataObject
webPageURL
- The web page URL. public void setCreationTime(java.util.Date creationTime)
setCreationTime
in interface UserDataObject
creationTime
- The creation time. public void setModificationTime(java.util.Date modificationTime)
setModificationTime
in interface UserDataObject
modificationTime
- The modification time. public void setOwner(java.lang.String owner)
owner
- The owner. public void setIsPublic(boolean isPublic)
isPublic
- True if the work set is public, false if private. public void setIsActive(boolean isActive)
isActive
- True if the work set is active. public void addWorkPart(WorkPart workPart)
workPart
- The new work part. public void addWorkParts(WorkPart[] workPartArray)
workPartArray
- The new work parts as an array. public void addWorkParts(java.util.Collection workPartCollection)
workPartCollection
- The new work parts as a collection. public void addWorkPartTags(java.lang.String[] workPartTagArray)
workPartTagArray
- The new work part tags as an array. public void removeWorkPart(WorkPart workPart)
workPart
- The work part. public void removeWorkParts()
public boolean addToDOMDocument(org.w3c.dom.Document document)
addToDOMDocument
in interface UserDataObject
document
- DOM document to which to add work set.
Must not be null. In most cases,
this document should have a "wordhoard"
node as the root element.
public boolean setFromDOMDocumentNode(org.w3c.dom.Node workSetNode)
setFromDOMDocumentNode
in interface UserDataObject
workSetNode
- DOM document node with work set settings.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringDetailed()
public SearchCriterion getSearchDefault(java.lang.Class cls)
cls
- Model class of search criterion.
public java.lang.Class getJoinClass()
getJoinClass
in interface SearchCriterion
public java.lang.String getWhereClause()
getWhereClause
in interface SearchCriterion
public void setArg(org.hibernate.Query q, org.hibernate.Session session)
setArg
in interface SearchCriterion
q
- Hibernate query.session
- Hibernate session. public void appendDescription(TextLine line, FontInfo romanFontInfo, FontInfo[] fontInfo)
appendDescription
in interface SearchCriterion
line
- Text line.romanFontInfo
- Roman font info.fontInfo
- Array of font info indexed by character
set. public java.lang.String getReportPhrase()
public Spelling getGroupingSpelling(int numHits)
numHits
- Number of hits.
public boolean equals(java.lang.Object obj)
The two objects are equal if their ids are equal.
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- Object output stream.
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- Object input stream.
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |