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

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

public class OperationLink
extends java.lang.Object
implements Operation

Represents operations link

Since:
2.0

Constructor Summary
OperationLink(java.lang.String id, java.lang.String styleClass, java.lang.String label, java.lang.String title, java.lang.String href, java.lang.Integer weight, 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 getHref()
           
 java.lang.String getIconClass()
           
 java.lang.String getId()
           
 java.lang.String getLabel()
           
 java.lang.String getStyleClass()
           
 java.lang.String getTitle()
           
 java.lang.Integer getWeight()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationLink

public OperationLink(@Nullable
                     java.lang.String id,
                     @Nullable
                     java.lang.String styleClass,
                     java.lang.String label,
                     @Nullable
                     java.lang.String title,
                     java.lang.String href,
                     @Nullable
                     java.lang.Integer weight,
                     @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.

getStyleClass

@Nullable
public java.lang.String getStyleClass()

getLabel

public java.lang.String getLabel()

getTitle

@Nullable
public java.lang.String getTitle()

getHref

public java.lang.String getHref()

getWeight

@Nullable
public java.lang.Integer getWeight()

getIconClass

@Nullable
public java.lang.String getIconClass()

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

toString

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


Copyright © 2015 Atlassian. All Rights Reserved.