com.atlassian.jira.issue
Class MockIssueConstant

java.lang.Object
  extended by com.atlassian.jira.issue.MockIssueConstant
All Implemented Interfaces:
IssueConstant, Comparable
Direct Known Subclasses:
MockIssueType, MockStatus

public class MockIssueConstant
extends Object
implements IssueConstant

Since:
v3.13

Constructor Summary
MockIssueConstant(org.ofbiz.core.entity.GenericValue genericValue)
           
MockIssueConstant(String id, String name)
           
 
Method Summary
 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 getDescription()
           
 String getDescTranslation()
           
 String getDescTranslation(I18nHelper i18n)
           
 String getDescTranslation(String locale)
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
           
 String getIconUrl()
           
 String getIconUrlHtml()
          Returns the HTML-escaped URL for this issue constant.
 String getId()
           
 String getName()
           
 String getNameTranslation()
           
 String getNameTranslation(I18nHelper i18n)
           
 String getNameTranslation(String locale)
           
 com.opensymphony.module.propertyset.PropertySet getPropertySet()
           
 Long getSequence()
           
 int hashCode()
           
 void setDescription(String description)
           
 void setIconUrl(String iconURL)
           
 void setName(String name)
           
 void setSequence(Long sequence)
           
 void setTranslation(String translatedName, String translatedDesc, String issueConstantPrefix, Locale locale)
           
 String toString()
           
 MockIssueConstant url(String url)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockIssueConstant

public MockIssueConstant(org.ofbiz.core.entity.GenericValue genericValue)

MockIssueConstant

public MockIssueConstant(String id,
                         String name)
Method Detail

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Specified by:
getGenericValue in interface IssueConstant

getId

public String getId()
Specified by:
getId in interface IssueConstant

getName

public String getName()
Specified by:
getName in interface IssueConstant

setName

public void setName(String name)
Specified by:
setName in interface IssueConstant

getDescription

public String getDescription()
Specified by:
getDescription in interface IssueConstant

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface IssueConstant

getSequence

public Long getSequence()
Specified by:
getSequence in interface IssueConstant

setSequence

public void setSequence(Long sequence)
Specified by:
setSequence in interface IssueConstant

getCompleteIconUrl

public String getCompleteIconUrl()
Description copied from interface: IssueConstant
Returns the url for the icon with the context path added if necessary.

Specified by:
getCompleteIconUrl in interface IssueConstant
Returns:
the url for the icon with the context path added if necessary. null will be returned if there is no icon URL.

getIconUrl

public String getIconUrl()
Specified by:
getIconUrl in interface IssueConstant

getIconUrlHtml

public String getIconUrlHtml()
Description copied from interface: IssueConstant
Returns the HTML-escaped URL for this issue constant.

Specified by:
getIconUrlHtml in interface IssueConstant
Returns:
a String containing an HTML-escaped icon URL
See Also:
IssueConstant.getIconUrl()

setIconUrl

public void setIconUrl(String iconURL)
Specified by:
setIconUrl in interface IssueConstant

url

public MockIssueConstant url(String url)

getNameTranslation

public String getNameTranslation()
Specified by:
getNameTranslation in interface IssueConstant

getDescTranslation

public String getDescTranslation()
Specified by:
getDescTranslation in interface IssueConstant

getNameTranslation

public String getNameTranslation(String locale)
Specified by:
getNameTranslation in interface IssueConstant

getDescTranslation

public String getDescTranslation(String locale)
Specified by:
getDescTranslation in interface IssueConstant

getNameTranslation

public String getNameTranslation(I18nHelper i18n)
Specified by:
getNameTranslation in interface IssueConstant

getDescTranslation

public String getDescTranslation(I18nHelper i18n)
Specified by:
getDescTranslation in interface IssueConstant

setTranslation

public void setTranslation(String translatedName,
                           String translatedDesc,
                           String issueConstantPrefix,
                           Locale locale)
Specified by:
setTranslation in interface IssueConstant

deleteTranslation

public void deleteTranslation(String issueConstantPrefix,
                              Locale locale)
Specified by:
deleteTranslation in interface IssueConstant

getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet()
Specified by:
getPropertySet in interface IssueConstant

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

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-2014 Atlassian. All Rights Reserved.