|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.Line
public class Line
A line.
Each line has the following attributes:
work part
in which the line occurs.
location
of the line in the text for the work part.
As an example from Shakespeare, in "The First Part of King Henry the Fourth", Act 1, Scene 3, line 22F, the full tag is "sha-1h4103022F", the integer line number is 22, and the label is "22F".
Constructor Summary | |
---|---|
Line()
Creates a new line. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
void |
export(TableExporterImporter exporterImporter)
Exports the object to a MySQL table exporter/importer. |
java.lang.Long |
getId()
Gets the unique id. |
java.lang.String |
getLabel()
Gets the label. |
TextRange |
getLocation()
Gets the line location. |
int |
getNumber()
Gets the line number. |
java.lang.String |
getStanzaLabel()
Gets the stanza label. |
java.lang.String |
getTag()
Gets the tag. |
WorkPart |
getWorkPart()
Gets the work part. |
int |
hashCode()
Returns a hash code for the object. |
void |
setId(java.lang.Long id)
Sets the unique id. |
void |
setLabel(java.lang.String label)
Sets the label. |
void |
setLocation(TextRange location)
Sets the line location. |
void |
setNumber(int number)
Sets the line number. |
void |
setStanzaLabel(java.lang.String stanzaLabel)
Sets the stanza label. |
void |
setTag(java.lang.String tag)
Sets the tag. |
void |
setWorkPart(WorkPart workPart)
Sets the work part. |
java.lang.String |
toString()
Gets a string representation of the line. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Line()
Method Detail |
---|
public java.lang.Long getId()
getId
in interface PersistentObject
public void setId(java.lang.Long id)
id
- The unique id. public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- The tag. public int getNumber()
public void setNumber(int number)
number
- The line number. public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- The label. public java.lang.String getStanzaLabel()
public void setStanzaLabel(java.lang.String stanzaLabel)
stanzaLabel
- The stanza label. public WorkPart getWorkPart()
public void setWorkPart(WorkPart workPart)
workPart
- The work part. public TextRange getLocation()
public void setLocation(TextRange location)
location
- The line location in the part text. public java.lang.String toString()
toString
in class java.lang.Object
public void export(TableExporterImporter exporterImporter)
exporterImporter
- MySQL table exporter/importer. public boolean equals(java.lang.Object obj)
The two lines are equal if their work parts and tags are equal.
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |