com.atlassian.jira.issue.issuetype
Class MockIssueType

java.lang.Object
  extended by com.atlassian.jira.issue.MockIssueConstant
      extended by com.atlassian.jira.issue.issuetype.MockIssueType
All Implemented Interfaces:
IssueConstant, IssueType, Comparable

public class MockIssueType
extends MockIssueConstant
implements IssueType

Since:
v3.13

Constructor Summary
MockIssueType(long id, String name)
          Constructs a non subtask IssueType with the given id and name.
MockIssueType(String id, String name)
          Constructs a non subtask IssueType with the given id and name.
MockIssueType(String id, String name, boolean subTask)
           
MockIssueType(String id, String name, boolean subTask, Avatar avatar)
           
 
Method Summary
 Avatar getAvatar()
          Get avatar assigned to this IssueType.
 boolean isSubTask()
           
 
Methods inherited from class com.atlassian.jira.issue.MockIssueConstant
compareTo, deleteTranslation, equals, getCompleteIconUrl, getDescription, getDescTranslation, getDescTranslation, getDescTranslation, getGenericValue, getIconUrl, getIconUrlHtml, getId, getName, getNameTranslation, getNameTranslation, getNameTranslation, getPropertySet, getSequence, hashCode, setDescription, setIconUrl, setName, setSequence, setTranslatedName, setTranslation, toString, url
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.IssueConstant
deleteTranslation, getCompleteIconUrl, getDescription, getDescTranslation, getDescTranslation, getDescTranslation, getGenericValue, getIconUrl, getIconUrlHtml, getId, getName, getNameTranslation, getNameTranslation, getNameTranslation, getPropertySet, getSequence, setDescription, setIconUrl, setName, setSequence, setTranslation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

MockIssueType

public MockIssueType(String id,
                     String name)
Constructs a non subtask IssueType with the given id and name.

Parameters:
id - the id.
name - the name.

MockIssueType

public MockIssueType(long id,
                     String name)
Constructs a non subtask IssueType with the given id and name.

Parameters:
id - the id.
name - the name.

MockIssueType

public MockIssueType(String id,
                     String name,
                     boolean subTask)

MockIssueType

public MockIssueType(String id,
                     String name,
                     boolean subTask,
                     Avatar avatar)
Method Detail

isSubTask

public boolean isSubTask()
Specified by:
isSubTask in interface IssueType

getAvatar

public Avatar getAvatar()
Description copied from interface: IssueType
Get avatar assigned to this IssueType. Link to avatar will be automatically assigned to property iconUrl.

When all issue constants will have avatars it should be moved into IssueConstant.

Specified by:
getAvatar in interface IssueType
Returns:
avatar or null if this item has no avatar assigned.


Copyright © 2002-2014 Atlassian. All Rights Reserved.