com.atlassian.jira.rest.client.api.domain
Class OperationHeader
java.lang.Object
com.atlassian.jira.rest.client.api.domain.OperationHeader
- All Implemented Interfaces:
- Operation
public class OperationHeader
- extends Object
- implements Operation
Represents operations header
- Since:
- 2.0
OperationHeader
public OperationHeader(@Nullable
String id,
String label,
@Nullable
String title,
@Nullable
String iconClass)
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.
getLabel
public String getLabel()
getTitle
@Nullable
public String getTitle()
getIconClass
@Nullable
public String getIconClass()
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2014 Atlassian. All Rights Reserved.