com.atlassian.jira.issue.fields.rest.json.beans
Class CustomFieldOptionJsonBean

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.json.beans.CustomFieldOptionJsonBean

public class CustomFieldOptionJsonBean
extends Object

A JSON-convertable representation of a CustomFieldOption

Since:
v5.0

Constructor Summary
CustomFieldOptionJsonBean()
           
 
Method Summary
 CustomFieldOptionJsonBean getChild()
           
 Collection<CustomFieldOptionJsonBean> getChildren()
           
 String getId()
           
 String getSelf()
           
 String getValue()
           
 void setChild(CustomFieldOptionJsonBean child)
           
 void setChildren(Collection<CustomFieldOptionJsonBean> children)
           
 void setId(Long id)
           
 void setId(String id)
           
 void setSelf(String self)
           
 void setValue(String value)
           
static CustomFieldOptionJsonBean shortBean(Option option, JiraBaseUrls urls)
           
static CustomFieldOptionJsonBean shortBean(Option parent, Option child, JiraBaseUrls urls)
          Method for building a cascading option with a specific child.
static Collection<CustomFieldOptionJsonBean> shortBeans(Collection<Option> allowedValues, JiraBaseUrls baseUrls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFieldOptionJsonBean

public CustomFieldOptionJsonBean()
Method Detail

getSelf

public String getSelf()

setSelf

public void setSelf(String self)

getValue

public String getValue()

setValue

public void setValue(String value)

getId

public String getId()

setId

public void setId(Long id)

setId

public void setId(String id)

getChild

public CustomFieldOptionJsonBean getChild()

setChild

public void setChild(CustomFieldOptionJsonBean child)

getChildren

public Collection<CustomFieldOptionJsonBean> getChildren()

setChildren

public void setChildren(Collection<CustomFieldOptionJsonBean> children)

shortBean

public static CustomFieldOptionJsonBean shortBean(Option option,
                                                  JiraBaseUrls urls)
Returns:
null if the input is null

shortBean

public static CustomFieldOptionJsonBean shortBean(Option parent,
                                                  Option child,
                                                  JiraBaseUrls urls)
Method for building a cascading option with a specific child.

Returns:
null if the input is null

shortBeans

public static Collection<CustomFieldOptionJsonBean> shortBeans(Collection<Option> allowedValues,
                                                               JiraBaseUrls baseUrls)


Copyright © 2002-2012 Atlassian. All Rights Reserved.