com.atlassian.jira.functest.framework.labels
Class Labels

java.lang.Object
  extended by com.atlassian.jira.functest.framework.labels.Labels

public class Labels
extends Object

Class that represents the state of labels - linked, lozenged, editable and the actual labels them selves.

Since:
v4.2

Constructor Summary
Labels(boolean editable, boolean linked, boolean lozenges, Set<String> labelValues)
           
Labels(boolean editable, boolean linked, boolean lozenges, String... labelValues)
           
 
Method Summary
 boolean equals(Object o)
           
 Set<String> getLabelValues()
           
 int hashCode()
           
 boolean isEditable()
           
 boolean isLinked()
           
 boolean isLozenges()
           
static Labels parseLabels(net.sourceforge.jwebunit.WebTester tester, String issueId, String fieldId)
          Factory method for parsing the current page for the labels and returning the current state.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Labels

public Labels(boolean editable,
              boolean linked,
              boolean lozenges,
              String... labelValues)

Labels

public Labels(boolean editable,
              boolean linked,
              boolean lozenges,
              Set<String> labelValues)
Method Detail

parseLabels

public static Labels parseLabels(net.sourceforge.jwebunit.WebTester tester,
                                 String issueId,
                                 String fieldId)
Factory method for parsing the current page for the labels and returning the current state.

Parameters:
tester - the webtester
issueId - The id of the issue you want to get the labels for
fieldId - The id of the field you want to get labels for. Use 'labels' for system field.
Returns:
The labels representing the current state of paly for teh given issue and field

isEditable

public boolean isEditable()

isLinked

public boolean isLinked()

isLozenges

public boolean isLozenges()

getLabelValues

public Set<String> getLabelValues()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.