com.atlassian.jira.rest.client.domain
Class CimFieldInfo

java.lang.Object
  extended by com.atlassian.jira.rest.client.domain.CimFieldInfo
All Implemented Interfaces:
IdentifiableEntity<java.lang.String>, NamedEntity

public class CimFieldInfo
extends java.lang.Object
implements NamedEntity, IdentifiableEntity<java.lang.String>

Contains information about field in IssueType.
The CIM prefix stands for CreateIssueMetadata as this class is used in output of IssueRestClient.getCreateIssueMetadata(GetCreateIssueMetadataOptions)

Since:
v1.0

Constructor Summary
CimFieldInfo(java.lang.String id, boolean required, java.lang.String name, com.atlassian.jira.rest.client.internal.json.FieldSchema schema, java.util.Set<com.atlassian.jira.rest.client.internal.json.StandardOperation> operations, java.lang.Iterable<java.lang.Object> allowedValues, java.net.URI autoCompleteUri)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Iterable<java.lang.Object> getAllowedValues()
          Returns list of values that are allowed to be used as value to this field.
 java.net.URI getAutoCompleteUri()
          Returns URI to Auto Complete feature for this field.
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.util.Set<com.atlassian.jira.rest.client.internal.json.StandardOperation> getOperations()
          Returns set of operations allowed for this field.
 com.atlassian.jira.rest.client.internal.json.FieldSchema getSchema()
          Returns schema of this field that describes type of that field and contained items type.
protected  com.google.common.base.Objects.ToStringHelper getToStringHelper()
          Returns ToStringHelper with all fields inserted.
 int hashCode()
           
 boolean isRequired()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CimFieldInfo

public CimFieldInfo(java.lang.String id,
                    boolean required,
                    @Nullable
                    java.lang.String name,
                    com.atlassian.jira.rest.client.internal.json.FieldSchema schema,
                    java.util.Set<com.atlassian.jira.rest.client.internal.json.StandardOperation> operations,
                    @Nullable
                    java.lang.Iterable<java.lang.Object> allowedValues,
                    @Nullable
                    java.net.URI autoCompleteUri)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface IdentifiableEntity<java.lang.String>

isRequired

public boolean isRequired()

getName

@Nullable
public java.lang.String getName()
Specified by:
getName in interface NamedEntity

getSchema

public com.atlassian.jira.rest.client.internal.json.FieldSchema getSchema()
Returns schema of this field that describes type of that field and contained items type.

Returns:
schema of this field.

getOperations

public java.util.Set<com.atlassian.jira.rest.client.internal.json.StandardOperation> getOperations()
Returns set of operations allowed for this field.

Returns:
set of operations allowed for this field.

getAllowedValues

@Nullable
public java.lang.Iterable<java.lang.Object> getAllowedValues()
Returns list of values that are allowed to be used as value to this field.

Returns:
list of allowed values.

getAutoCompleteUri

@Nullable
public java.net.URI getAutoCompleteUri()
Returns URI to Auto Complete feature for this field. To make use of it append searched text to returned address.
Example:
URI uriToGetResponseFrom = new URI(getAutoCompleteUri() + "typedLetters");

Returns:
URI to Auto Complete feature for this field

getToStringHelper

protected com.google.common.base.Objects.ToStringHelper getToStringHelper()
Returns ToStringHelper with all fields inserted. Override this method to insert additional fields.

Returns:
ToStringHelper

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.