public class WsRelationship extends Object
Constructor and Description |
---|
WsRelationship()
Creates an empty WsRelationship object.
|
WsRelationship(WsItem fromItem,
WsItem toItem,
WsRelationshipType relationshipType,
String relationshipStatus,
String relationshipNote)
Creates a new WsRelationship object with the given "to" item, "from" item, type, status and note.
|
Modifier and Type | Method and Description |
---|---|
WsItem |
getFromItem()
Gets the "From" item in the relationship.
|
Long |
getId()
Gets the id of the relationship.
|
String |
getRelationshipNote()
Gets the note associated with the relationship.
|
String |
getRelationshipStatus()
Gets the relationship's status.
|
WsRelationshipType |
getRelationshipType()
Gets the relationship's type (Related To, Dependent On, etc...)
|
Boolean |
getSuspect() |
WsItem |
getToItem()
Gets the "To" item in the relationship.
|
void |
setFromItem(WsItem fromItem)
Sets the "From" item in the relationship.
|
void |
setId(Long id) |
void |
setRelationshipNote(String relationshipNote)
Sets the note associated with the relationship.
|
void |
setRelationshipStatus(String relationshipStatus)
Sets the relationship's status.
|
void |
setRelationshipType(WsRelationshipType relationshipType)
Sets the relationship's type (Related To, Dependent On, etc...)
|
void |
setSuspect(Boolean suspect) |
void |
setToItem(WsItem toItem)
Sets the "To" item in the relationship.
|
String |
toString()
Gets a string representation of this relationship.
|
public WsRelationship()
public WsRelationship(WsItem fromItem, WsItem toItem, WsRelationshipType relationshipType, String relationshipStatus, String relationshipNote)
fromItem
- the upstream itemtoItem
- the downstream itemrelationshipType
- relationship typerelationshipStatus
- relationship status (can be null)relationshipNote
- a note about the relationship (can be null)public Long getId()
public void setId(Long id)
public WsItem getFromItem()
public void setFromItem(WsItem fromItem)
fromItem
- the upstream itempublic WsItem getToItem()
public void setToItem(WsItem toItem)
toItem
- the downstream itempublic WsRelationshipType getRelationshipType()
public void setRelationshipType(WsRelationshipType relationshipType)
relationshipType
- the relationship's typepublic String getRelationshipStatus()
public void setRelationshipStatus(String relationshipStatus)
relationshipStatus
- the relationship's typepublic String getRelationshipNote()
public void setRelationshipNote(String relationshipNote)
relationshipNote
- relationship notepublic Boolean getSuspect()
public void setSuspect(Boolean suspect)
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.