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 Object
implements Operation

Represents operations link

Since:
2.0

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

Constructor Detail

OperationLink

public OperationLink(@Nullable
                     String id,
                     @Nullable
                     String styleClass,
                     String label,
                     @Nullable
                     String title,
                     String href,
                     @Nullable
                     Integer weight,
                     @Nullable
                     String iconClass)
Method Detail

getId

@Nullable
public 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 String getStyleClass()

getLabel

public String getLabel()

getTitle

@Nullable
public String getTitle()

getHref

public String getHref()

getWeight

@Nullable
public Integer getWeight()

getIconClass

@Nullable
public String getIconClass()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Atlassian. All Rights Reserved.