|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.domain.requirement.RequirementLibraryNode<RequirementVersion>
org.squashtest.csp.tm.domain.requirement.Requirement
@Entity public class Requirement
Entity requirement Note that much of its setters will throw an IllegalRequirementModificationException if a modification is attempted while the status does not allow it.
| Constructor Summary | |
|---|---|
protected |
Requirement()
|
|
Requirement(RequirementVersion version)
Creates a new requirement which "latest version" is the given RequirementVersion |
| Method Summary | |
|---|---|
void |
accept(RequirementLibraryNodeVisitor visitor)
Implementors should ask the visitor to visit this object. |
Requirement |
createPastableCopy()
Creates a copy usable in a copy / paste operation. |
AttachmentList |
getAttachmentList()
Should return the container for this object's attachments. |
RequirementCriticality |
getCriticality()
|
String |
getDescription()
|
RequirementVersion |
getLatestVersion()
|
String |
getName()
|
String |
getReference()
|
RequirementVersion |
getResource()
|
RequirementStatus |
getStatus()
|
boolean |
isLinkable()
|
boolean |
isModifiable()
Tells if this requirement's "intrinsic" properties can be modified. |
void |
setCriticality(RequirementCriticality criticality)
Set the requirement criticality |
void |
setDescription(String description)
|
void |
setName(String name)
|
void |
setReference(String reference)
Set the requirement reference |
void |
setStatus(RequirementStatus status)
|
| Methods inherited from class org.squashtest.csp.tm.domain.requirement.RequirementLibraryNode |
|---|
getId, getProject, notifyAssociatedWithProject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Requirement()
public Requirement(@NotNull
RequirementVersion version)
RequirementVersion
version - | Method Detail |
|---|
public void setName(String name)
setName in interface LibraryNodename - The name of this node. Should not be blank or null.public void setDescription(String description)
setDescription in interface LibraryNodedescription - the new node descriptionpublic void accept(RequirementLibraryNodeVisitor visitor)
RequirementLibraryNode
accept in class RequirementLibraryNode<RequirementVersion>public AttachmentList getAttachmentList()
AttachmentHoldernull.
getAttachmentList in interface AttachmentHolderAttachmentList of this object.public String getReference()
public void setReference(String reference)
reference - public Requirement createPastableCopy()
createPastableCopy in interface LibraryNodecreatePastableCopy in class RequirementLibraryNode<RequirementVersion>public RequirementCriticality getCriticality()
public void setCriticality(RequirementCriticality criticality)
criticality - public void setStatus(RequirementStatus status)
public RequirementStatus getStatus()
public boolean isLinkable()
true if this requirement can be (un)linked by new verifying testcasespublic boolean isModifiable()
#verifyingTestCases are governed by the isLinkable() state,
#status is governed by itself.
true if this requirement's properties can be modified.public String getName()
getName in interface LibraryNodepublic String getDescription()
getDescription in interface LibraryNodepublic RequirementVersion getLatestVersion()
public RequirementVersion getResource()
getResource in class RequirementLibraryNode<RequirementVersion>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||