public class

MockIssueConstant

extends Object
implements IssueConstant
java.lang.Object
   ↳ com.atlassian.jira.issue.MockIssueConstant
Known Direct Subclasses

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.util.Named
Public Constructors
MockIssueConstant(GenericValue genericValue)
MockIssueConstant(String id, String name)
Public Methods
int compareTo(Object o)
void deleteTranslation(String issueConstantPrefix, Locale locale)
boolean equals(Object o)
String getCompleteIconUrl()
Returns the url for the icon with the context path added if necessary.
String getDescTranslation()
String getDescTranslation(I18nHelper i18n)
String getDescTranslation(String locale)
String getDescription()
GenericValue getGenericValue()
String getIconUrl()
String getIconUrlHtml()
Returns the HTML-escaped URL for this issue constant.
String getId()
String getName()
String getNameTranslation(String locale)
String getNameTranslation()
String getNameTranslation(I18nHelper i18n)
PropertySet getPropertySet()
Long getSequence()
int hashCode()
void setDescription(String description)
void setIconUrl(String iconURL)
void setName(String name)
void setSequence(Long sequence)
MockIssueConstant setTranslatedName(String translatedName)
void setTranslation(String translatedName, String translatedDesc, String issueConstantPrefix, Locale locale)
String toString()
MockIssueConstant url(String url)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.IssueConstant
From interface com.atlassian.jira.util.Named
From interface com.atlassian.jira.util.NamedWithDescription
From interface java.lang.Comparable

Public Constructors

public MockIssueConstant (GenericValue genericValue)

public MockIssueConstant (String id, String name)

Public Methods

public int compareTo (Object o)

public void deleteTranslation (String issueConstantPrefix, Locale locale)

public boolean equals (Object o)

public String getCompleteIconUrl ()

Returns the url for the icon with the context path added if necessary.

Returns
  • the url for the icon with the context path added if necessary. null will be returned if there is no icon URL.

public String getDescTranslation ()

public String getDescTranslation (I18nHelper i18n)

public String getDescTranslation (String locale)

public String getDescription ()

public GenericValue getGenericValue ()

public String getIconUrl ()

public String getIconUrlHtml ()

Returns the HTML-escaped URL for this issue constant.

Returns
  • a String containing an HTML-escaped icon URL

public String getId ()

public String getName ()

public String getNameTranslation (String locale)

public String getNameTranslation ()

public String getNameTranslation (I18nHelper i18n)

public PropertySet getPropertySet ()

public Long getSequence ()

public int hashCode ()

public void setDescription (String description)

public void setIconUrl (String iconURL)

public void setName (String name)

public void setSequence (Long sequence)

public MockIssueConstant setTranslatedName (String translatedName)

public void setTranslation (String translatedName, String translatedDesc, String issueConstantPrefix, Locale locale)

public String toString ()

public MockIssueConstant url (String url)