|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.functest.framework.changehistory.ChangeHistorySet
public class ChangeHistorySet
This represents a easier way to test change history. A ChangeHistorySet is a set of
ChangeHistoryField
objects by a specified user.
Constructor Summary | |
---|---|
ChangeHistorySet(ChangeHistoryList changeHistoryList,
String changedBy)
|
|
ChangeHistorySet(ChangeHistorySet changeHistorySet)
Constructs a new ChangeHistorySet based on an existing one. |
Method Summary | |
---|---|
ChangeHistorySet |
add(String fieldName,
String newValue)
A shortcut method to add change history field entries. |
ChangeHistorySet |
add(String fieldName,
String oldValue,
String newValue)
Adds a new ChangeHistoryField to the change history entry. |
boolean |
equals(Object o)
|
String |
getChangedBy()
|
ChangeHistoryList |
getContainingChangeHistoryList()
|
Set |
getFieldChanges()
|
int |
hashCode()
|
boolean |
isSuperSetOf(ChangeHistorySet that)
Returns true if that ChangeHistorySet has the same name and has zero of more fields that occur in this ChangeHistorySet |
Iterator |
iterator()
|
ChangeHistoryField |
lastOf(String fieldName)
Returns the last ChangeHistoryField with the specified field name. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChangeHistorySet(ChangeHistoryList changeHistoryList, String changedBy)
public ChangeHistorySet(ChangeHistorySet changeHistorySet)
changeHistorySet
- The existing ChangeHistorySet.Method Detail |
---|
public ChangeHistoryList getContainingChangeHistoryList()
public String getChangedBy()
public Set getFieldChanges()
public ChangeHistorySet add(String fieldName, String oldValue, String newValue)
ChangeHistoryField
to the change history entry. It is a complete field entry with old and new value
fieldName
- the name of the fieldoldValue
- the old valuenewValue
- the new value
public ChangeHistorySet add(String fieldName, String newValue)
ChangeHistoryList
and get the previous field values for the named field. It will then use the previous
"new value" as the "old value" in this new ChangeHistoryField
.
fieldName
- the name of the fieldnewValue
- the new value
public ChangeHistoryField lastOf(String fieldName)
ChangeHistoryField
with the specified field name. Does this by navigating back up
the enclosing ChangeHistoryList
fieldName
- the name of the field
public Iterator iterator()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean isSuperSetOf(ChangeHistorySet that)
that
- the other ChangeHistorySet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |