edu.northwestern.at.wordhoard.model.tconview
Class TconCategory

java.lang.Object
  extended by edu.northwestern.at.wordhoard.model.tconview.TconCategory

public class TconCategory
extends java.lang.Object

A corpus table of contents category.

A category is used to group together works in a table of contents view for a corpus. For example, in the Shakespeare "By Genre" view, "Comedies" is a category.

Each category has a title and an ordered list of work tags for the works in the category.


Constructor Summary
TconCategory()
          Creates a new table of contents category.
 
Method Summary
 void addWorkTag(java.lang.String workTag)
          Adds a work tag.
 java.lang.Long getId()
          Gets the unique id.
 java.lang.String getTitle()
          Gets the category title.
 java.util.List getWorkTags()
          Gets the list of work tags.
 void setTitle(java.lang.String title)
          Sets the category title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TconCategory

public TconCategory()
Creates a new table of contents category.

Method Detail

getId

public java.lang.Long getId()
Gets the unique id.

Returns:
The unique id.

getTitle

public java.lang.String getTitle()
Gets the category title.

Returns:
The category title.

setTitle

public void setTitle(java.lang.String title)
Sets the category title.

Parameters:
title - The category title.

getWorkTags

public java.util.List getWorkTags()
Gets the list of work tags.

Returns:
The list of work tags as an unmodifiable list.

addWorkTag

public void addWorkTag(java.lang.String workTag)
Adds a work tag.

The new work tag is added to the end of the ordered list of work tags.

Parameters:
workTag - Work tag.