com.atlassian.jira.rest.client.api.domain
Class OperationHeader

java.lang.Object
  extended by com.atlassian.jira.rest.client.api.domain.OperationHeader
All Implemented Interfaces:
Operation

public class OperationHeader
extends java.lang.Object
implements Operation

Represents operations header

Since:
2.0

Constructor Summary
OperationHeader(java.lang.String id, java.lang.String label, java.lang.String title, java.lang.String iconClass)
           
 
Method Summary
<T> com.google.common.base.Optional<T>
accept(OperationVisitor<T> visitor)
          Traverse through operation elements to visit them.
 boolean equals(java.lang.Object o)
           
 java.lang.String getIconClass()
           
 java.lang.String getId()
           
 java.lang.String getLabel()
           
 java.lang.String getTitle()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationHeader

public OperationHeader(@Nullable
                       java.lang.String id,
                       java.lang.String label,
                       @Nullable
                       java.lang.String title,
                       @Nullable
                       java.lang.String iconClass)
Method Detail

getId

@Nullable
public java.lang.String getId()
Specified by:
getId in interface Operation
Returns:
Operation id. May be null.

accept

public <T> com.google.common.base.Optional<T> accept(OperationVisitor<T> visitor)
Description copied from interface: Operation
Traverse through operation elements to visit them. Traversal will stop on first non absent value returned from the visitor.

Specified by:
accept in interface Operation
Type Parameters:
T - Visiting result type
Parameters:
visitor - Visitor to visit operation element
Returns:
Value returned from the visitor.

getLabel

public java.lang.String getLabel()

getTitle

@Nullable
public java.lang.String getTitle()

getIconClass

@Nullable
public java.lang.String getIconClass()

toString

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

equals

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

hashCode

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


Copyright © 2014 Atlassian. All Rights Reserved.