|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiscovery.model.NarrativeModel
public class NarrativeModel
This class represents a Narrative. It has attributes relating to all of the fields in a narrative card, and also has a unique ID number, and stores the ID number of the task that it corresponds to.
Field Summary | |
---|---|
static int |
ACTOR
|
static int |
DISPATCH
|
static int |
EXCEPTION
|
static int |
OBJECT
|
Constructor Summary | |
---|---|
NarrativeModel()
This is the empty constructor, which gives the narrative a unique ID number, but leaves all other attributes empty. |
|
NarrativeModel(java.lang.Integer id,
java.lang.Integer task,
java.lang.String author,
java.lang.String date,
java.lang.String version,
java.lang.String purpose,
java.lang.String actors,
java.lang.String objects,
java.lang.String precons,
java.lang.String postcons,
java.lang.String desc,
java.lang.String exceptions,
java.lang.String concerns)
This constructor supplies all of the narrative's attributes, including the ID number. |
Method Summary | |
---|---|
java.lang.String |
getActors()
Accessor method to get the actors for this narrative. |
java.lang.String |
getAuthor()
Accessor method to get the author for this narrative. |
java.lang.String |
getConcerns()
Accessor method to get the concerns for this narrative. |
java.lang.String |
getDate()
Accessor method to get the date for this narrative. |
java.lang.String |
getDescription()
Accessor method to get the description for this narrative. |
java.lang.String |
getExceptions()
Accessor method to get the exceptions for this narrative. |
java.lang.Integer |
getID()
Accessor method to get the ID number for this narrative. |
java.lang.String |
getObjects()
Accessor method to get the objects for this narrative. |
java.lang.String |
getPostconditions()
Accessor method to get the postconditions for this narrative. |
java.lang.String |
getPreconditions()
Accessor method to get the preconditions for this narrative. |
java.lang.String |
getPurpose()
Accessor method to get the purpose for this narrative. |
java.lang.Integer |
getTask()
Accessor method to get the associated task's ID number for this narrative. |
java.lang.String |
getVersion()
Accessor method to get the version of this narrative. |
void |
removeContent(java.lang.String content,
int type)
Mutator method to remove some automatically generated content from the narrative. |
void |
setActors(java.lang.String act)
Mutator method to set the list of actors for this narrative. |
void |
setAuthor(java.lang.String a)
Mutator method to set the author of this narrative. |
void |
setConcerns(java.lang.String c)
Mutator method to set the concerns field for this narrative. |
void |
setDate(java.lang.String d)
Mutator method to set the date field for this narrative. |
void |
setDescription(java.lang.String des)
Mutator method to set the description field for this narrative. |
void |
setExceptions(java.lang.String e)
Mutator method to set the exceptions field for this narrative. |
void |
setObjects(java.lang.String obj)
Mutator method to set the list of objects for this narrative. |
void |
setPostconditions(java.lang.String post)
Mutator method to set the postconditions field for this narrative. |
void |
setPreconditions(java.lang.String pre)
Mutator method to set the preconditions field for this narrative. |
void |
setPurpose(java.lang.String p)
Mutator method to set the purpose field for this narrative. |
void |
setTask(java.lang.Integer t)
Mutator method to set the task that this narrative is associated with. |
void |
setVersion(java.lang.String v)
Mutator method to set the version of this narrative. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DISPATCH
public static int EXCEPTION
public static int ACTOR
public static int OBJECT
Constructor Detail |
---|
public NarrativeModel()
public NarrativeModel(java.lang.Integer id, java.lang.Integer task, java.lang.String author, java.lang.String date, java.lang.String version, java.lang.String purpose, java.lang.String actors, java.lang.String objects, java.lang.String precons, java.lang.String postcons, java.lang.String desc, java.lang.String exceptions, java.lang.String concerns)
id
- the narrative's ID numbertask
- the ID number of the component that this narrative is associated withauthor
- the author of the narrativedate
- the date when the narrative was createdversion
- the version of this narrativepurpose
- the purpose of this narrativeactors
- the actors associated with this narrativeobjects
- the objects associated with this narrativeprecons
- the preconditions for this narrativepostcons
- the postconditions for this narrativedesc
- the description for this narrativeexceptions
- the exceptions for this narrativeconcerns
- the concerns for this narrativeMethod Detail |
---|
public void setTask(java.lang.Integer t)
t
- the ID number of the associated taskpublic void setAuthor(java.lang.String a)
a
- the authorpublic void setVersion(java.lang.String v)
v
- the versionpublic void setPurpose(java.lang.String p)
p
- the purpose for this narrativepublic void setPreconditions(java.lang.String pre)
pre
- the preconditions for this narrativepublic void setPostconditions(java.lang.String post)
post
- the postconditions for this narrativepublic void setDescription(java.lang.String des)
des
- the description for this narrativepublic void setExceptions(java.lang.String e)
e
- the exceptions for this narrativepublic void setConcerns(java.lang.String c)
c
- the concerns for this narrativepublic void setActors(java.lang.String act)
act
- the actors for this narrativepublic void setObjects(java.lang.String obj)
obj
- the objects for this narrativepublic void setDate(java.lang.String d)
d
- the date for this narrativepublic java.lang.Integer getID()
public java.lang.Integer getTask()
public java.lang.String getAuthor()
public java.lang.String getVersion()
public java.lang.String getPurpose()
public java.lang.String getPreconditions()
public java.lang.String getPostconditions()
public java.lang.String getDescription()
public java.lang.String getExceptions()
public java.lang.String getConcerns()
public java.lang.String getActors()
public java.lang.String getObjects()
public java.lang.String getDate()
public void removeContent(java.lang.String content, int type)
content
- the string to be removedtype
- the type of content that is to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |